How do i clone a GUI from serverstorage to playerGui on the touch of a brick? Thanks!
script.Parent.Touched:connect(function(p)
local humanoid = p.Parent:findFirstChild("Humanoid")
if (humanoid ~= nil) then
humanoid.Torso.CFrame = CFrame.new(-116.49,0.9,-7.73)
-------------------
local plr = p.Parent:findFirstChild("Player")
script.Parent.Parent.Parent.ServerStorage.LeaveButton.Exit.Clone().Parent = plr
end
end)

1 comment
PlayerGui not just player