So. How do i turn this script into so i can load the playergui with a normal gui i dont wanna load a playername i just wanna load a gui if you touch a brick and that script dosent work with a localscript so i would need some help with this.
Here's the current script.
local debounce = false
function Shop(hit)
if not debounce then
if hit.Parent:FindFirstChild("Humanoid") then
if game.Players.PlayerGui.Job.JobActive == false then
local clone = game.ServerStorage.JobGuis:FindFirstChild("CableMan"):Clone()
clone.Parent = game.Players:FindFirstChild(hit.Parent.Name).PlayerGui
debounce = true
wait(5)
debounce = false
end
end
end
end
script.Parent.Touched:connect(Shop)

2 comments
Use a remote event to edit the gui
i dont know how to use remote events.