#UNSOLVED: GuiPopup triggers server-side instead of local
1 messages · Page 1 of 1 (latest)
for i, v in workspace.AreaNotifiers:GetChildren() do
if v:IsA("BasePart") then
v.Touched:Connect(function(hit)
if not hit.Parent:FindFirstChild("Humanoid") then return end
if debounce then return end
debounce = true
areaName.Position = UDim2.fromScale(.5, -.1)
areaName.Text = v.Name
areaName.Visible = true
timeLabel.Text = getFormattedTime() -- Set the time text
timeLabel.Visible = true
-- Fade in time text and stroke
timeLabel.TextTransparency = 1
if timeStroke then timeStroke.Transparency = 1 end -- Ensure the stroke exists
local fadeInTimeText = tweenService:Create(timeLabel, info, {TextTransparency = 0})
local fadeInTimeStroke = timeStroke and tweenService:Create(timeStroke, info, {Transparency = 0})
tweenService:Create(areaName, info, {Position = UDim2.fromScale(.5, .08)}):Play()
task.wait(0.5)
description.TextTransparency = 1
description.UIStroke.Transparency = 1
tweenService:Create(description, info, {TextTransparency = 0}):Play()
tweenService:Create(description.UIStroke, info, {Transparency = 0}):Play()
-- Play fade-in effect for time label
fadeInTimeText:Play()
if fadeInTimeStroke then fadeInTimeStroke:Play() end
typeWriterEffect(description, v.Description.Value, .03)
task.wait(5)
-- Fade out effect
local fadeOutTimeText = tweenService:Create(timeLabel, info, {TextTransparency = 1})
local fadeOutTimeStroke = timeStroke and tweenService:Create(timeStroke, info, {Transparency = 1})
tweenService:Create(areaName, info, {Position = UDim2.fromScale(.5, -.1)}):Play()
tweenService:Create(description, info, {TextTransparency = 1}):Play()
tweenService:Create(description.UIStroke, info, {Transparency = 1}):Play()
-- Play fade-out effect for time label
fadeOutTimeText:Play()
if fadeOutTimeStroke then fadeOutTimeStroke:Play() end
task.wait(2)
timeLabel.Visible = false -- Hide the time label
timeLabel.TextTransparency = 0 -- Reset transparency for next time
if timeStroke then timeStroke.Transparency = 0 end
debounce = false
end)
end
end
Help appreciated
U made me think that was in my script 😂
is this server script or localscript?
Localscript in startergui
local function formatYourCode() return "this" end
print(formatYourCode())```
why is it in startergui...
that's not-- nevermind. just add if hit.Parent==game.Players.LocalPlayer.Character then return end at the top like the humanoid one
Is there a better way to format it?
oh its in a screen gui phew 😮💨
Yes
Lmaoo
just set all your localscripts as nilinstances
format? no i meant when you paste code in discord use ```lua (newline)
code here```
Ohh
How would i do that
step 1, don't do that
bruh
** You are now Level 45! **
How do i fix it?/
just add if hit.Parent==game.Players.LocalPlayer.Character then return end at the top like the humanoid one
⬆️
wait that'll make it show for everyone except the local player, you want the opposite
hit.Parent ~= game.Players.LocalPlayer.Character then return end
coz sometimes touch can trigger on one client for another player's character touching a part
depends a bit on the part you cut out
for i, v in workspace.AreaNotifiers:GetChildren() do
if v:IsA("BasePart") then
v.Touched:Connect(function(hit)
if not hit.Parent:FindFirstChild("Humanoid") then return end
if debounce then return end
debounce = true
Is it in that space
yea but whERe dO i PUt tHAt? 
yea the humanoid verify gate is in that space
humanoiud verify gate: if not hit.Parent:FindFirstChild("Humanoid") then return end
And replace that with your line
i saying make another one that verify-gate's the localplayer's character
well i mean you can replace if you really want to
So should i just add your line after that
i mean
if you wanted to hire somebody
then you should maybe offer fair pay
but if you didn't want to hire somebody
then maybe dont phrase every question as a "should i", because i might just answer yes to every single one just to mess with you 
replace "i" with "any fair person reading this thread" and same same nothing change? 🤷
Okay well i just came here to try and fix a bug, i'm no scripter
don't ask 'should i...' questions, it makes me nervous
Sure, were you reccomending me to put this line:
hit.Parent ~= game.Players.LocalPlayer.Character then return end
After this one?:
if not hit.Parent:FindFirstChild("Humanoid") then return end
was just an idea, idk if it works. have you tried if it works? on the subject of trying things if they works, maybe try add prints and make sure no errors in output window? bruh i can't hold your hand every step of the way 🙏
It didn't work, all i want to change is it to trigger only for the local player who touched it, somewhere there is a problem of it triggering for everybody, that i have no clue how to fix
and all i want is for someone to clean my toilet for free but somewhere between the work and paying them i have no clue how to fix either bruh, we are the same 
?
we both have a job we want and need done but wont pay for it 
This isn't a hiring post, i'm simply asking for some scripting assistance by fixing a bug
i decided to pay for it brb calling them now and simply sorting this out
What are you talking about?
i'm talking about how i paid for someone to clean my toilet and it's all sorted now, and you refuse to pay for someone to clean your local popup thing and it is not sorted yet now 🤷 idk if i'm talking bakkagammons but i have belief in you'll pull through and make a game out of yourself
i belief in you!
.
Not a hiring post, if you want to keep inserting yourself into threads asking for money go to #💵︱hiring
UNSOLVED: GuiPopup triggers server-side instead of local
if you looking for someone worth their salt in the weight of their code, go to #👷︱for-hire 