local Brick = Instance.new("Part",game.Workspace) local lp = game:GetService("Players").LocalPlayer local p = game:GetService("Players") Brick.Name = "SpawnPoint" local m = lp:GetMouse() local spawnP = true or false Brick.CanCollide = false Brick.Anchored = true Brick.Color = Color3.new(0, 255, 0) m.KeyDown:connect(function(k) if k == "k" then game:GetService("StarterGui"):SetCore("SendNotification", { Title = "[Set!]"; Text = "Spawn Point set to this location"; }) Brick.CFrame = lp.Character.HumanoidRootPart.CFrame spawnP = true if spawnP == true then repeat wait() if lp.Character.Humanoid.Health == 0 then wait(5.5) lp.Character.HumanoidRootPart.CFrame = Brick.CFrame elseif lp.Character.Humanoid.Health > 0 then print("Waiting on Char") end until spawnP == false end end end)