So i made this script for a GUI and now the script is inside a Part / Union in Workspace.
How can i find the Player and make it a variable?
game > Workspace > Teleporter > Script
plr = HOW TO DEFINE THE PLR?
Spot = game.Workspace.HangOutSpawn.Position
script.Parent.Touched:connect(function()
plr.PlayerGui.Load.Frame.Visible = true
wait(3)
plr.Character:FindFirstChild("Torso").CFrame = CFrame.new(Spot)
plr.PlayerGui.Load.Frame.Visible = false
end)
Turns out there is an error in line 5 as well if you could help me with that as well.

3 comments
Which player? The player whose Character touched
script.Parent?I think I've seen you ask questions similar to this. Are you sure you can't figure this out?
We need more info....