so im making a text label that should be only visible for player who touched a brick. this is what i have done so far:
script for the brick:
local part = script.Parent
part.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
local plr = game.Players:FindFirstChild(hum.Parent.Name)
if plr.GreenDirt.Value == false then
hum.WalkSpeed = 0
hum.JumpPower = 0
plr.GreenDirt.Value = true
script.Text.Disabled = true
end
end
end)
and heres the script that is supposed to show the guis:
local gui = game.Players.LocalPlayer.PlayerGui:WaitForChild("TFlaniganDialogue")
wait(1)
gui.d1.Visible = true
is there something i did wrong? i would appreciate any help.

1 comment
Are the script that's shows up the GUI was LocalScript, or there any errors occurred there?