Still have questions? Join our Discord server and get real time help.
0

# How do i make a "Jump to respawn" script when i die? [closed]

Edited by M39a9am3R 2 months ago
mouse = game.Players.LocalPlayer:GetMouse()
local player = game.Players.LocalPlayer
repeat wait() until player.Character

mouse.KeyDown:connect(function(key)
if tostring(key) == "r" then
end
end)


0
Edited for code block. M39a9am3R 3166 — 2mo
0
LoadCharacter doesn't work in localscripts, if you want a player to respawn after they jump, right after they die, you don't use keydown, you use .Died:Connect(function() and you use LoadCharacter() from server, which means you have to recode everything for it to be server-sided, enjoy my brief explanation, I hope this comment helped. greatneil80 1287 — 2mo
0
im very new to coding, sorry snowythebunny129AL -5 — 2mo

### Closed as Non-Descriptive by BashCaster

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.