I wanted to make when you die it shows a GUI and it shows the map after you click respawn the camera subject was supposed to change to your character’s humanoid. Instead, it shows where I died
Script:
script.Parent.play.MouseButton1Click:Connect(function()
if game.Players.LocalPlayer.Status.RespawnTime.Value >= 0 then
else
respawnEvent:FireServer()
script.Parent.Parent.GameUI.Visible = true
script.Parent.Visible = false
script.Parent.Parent.GameUI.Crosshair.Visible = true
--cam.CameraType = Enum.CameraType.Custom
wait(1)
cam.CameraSubject = hum
end
end)
game.Players.LocalPlayer:WaitForChild("Status"):WaitForChild("RespawnTime"):GetPropertyChangedSignal("Value"):Connect(function()
if game.Players.LocalPlayer.Status.RespawnTime.Value >= 0 then
script.Parent.time.Visible = true
script.Parent.time.Text = "RESPAWN AVAILABLE IN: " .. game.Players.LocalPlayer.Status.RespawnTime.Value .. " seconds."
if game.Workspace:FindFirstChild("Map") then
--[[
repeat wait()
cam.CameraType = Enum.CameraType.Scriptable
until cam.CameraType == Enum.CameraType.Scriptable
cam.CFrame = game.Workspace.Map.SkyWatch.CFrame
]]
cam.CameraSubject = game.Workspace.Map.SkyWatch
end
else
script.Parent.time.Text = "READY TO RESPAWN"
end
end)
Video: - YouTube
If you can help me that would be wonderful!