I am trying to make a character be locked to a part in workspace but when they click spawn it doesn't get locked anymore here is the script I tried I put it as a script in workspace
local plr = script.Players.LocalPlayer if plr:LoadCharecter() == false then game.StarterPlayer.CameraMode.Classic = false game.plr.CamerMode = game.Workspace.Camera end if plr:LoadCharacter() == true then game.StarterPlayer.CameraMode.Classic = true end
and my spawn is this
script.Parent.MouseButton1Click:connect(function() script.Parent.Parent.Visible = false end)
when I click spawn it just deletes the gui if you can help me combine those both I am really thankful