So I'm having a problem where I want ONLY the person who touched a pad to see a GUI, the problem is that I think the i,v in pairs is taking all players, even despite me using the PlayerGui. How can I get around this? LocalScript:
local debounce = false
local function popup()
if not debounce then
debounce = true
game.Workspace.BackroomsSound:Stop()
for i,v in pairs (game.Players:GetPlayers()) do
local Frame = v.PlayerGui.LevelChanges.PipeDreams
local Text = Frame.text
Frame.Visible = true
wait(5)
while true do
script.Parent.BackgroundTransparency = script.Parent.BackgroundTransparency + 0.05
wait(0.05)
if script.Parent.BackgroundTransparency >= 1 then
break
end
end
script.Parent.text.TextTransparency = 1
game.Workspace.BackroomsSound:Play()
wait(1)
debounce = false
end
end
end
game.Workspace.pad1.Touched:Connect(popup)
