local oGUI = script:FindFirstChild("ScreenGui")
script.Parent.Touched:Connect(function(toucher)
local player = game:GetService("Players"):FindFirstChild(toucher.Parent)
if player then
print("Hi!")
local GUI = oGUI:Clone()
GUI.Parent = player.PlayerGUI
wait(1)
GUI:Destroy()
end
end)
I'm trying to create a thing where if you touch it a custom GUI pops up , for some reason nothing happens at all PS: This is a server script

1 comment
Do you get any errors?