Simple, step on a brick and a GUI clones into your PlayerGui from Replicated Storage.
For some reason it always says that on line 7 the attempt to index a local "human" is nil? How? I'm missing something pretty simple here and I cant figure out what it is. I've tried multiple workarounds all of them have issues finding the PlayerGui.
local t = false
script.Parent.Touched:connect(function(hit)
if t == false then
t = true
wait(1)
local human = game.Players:FindFirstChild(hit.Parent.Name)
local jo = game.ReplicatedStorage.JOBS.Cashier:Clone(human.PlayerGui)
script.Parent.Transparency = 1
script.Parent.CanCollide = false
t = false
wait(600)
script.Parent.Transparency = 0
script.Parent.CanCollide = true
end
end)
Any help is greatly appreciated this is getting to me.

1 comment
have you tried doing print(hit.Parent.Name) Make sure that is returning the correct player name.