Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

When a player dies my script breaks?

Asked by 2 years ago

My script is local plr = script.Parent.Parent.Parent.Parent.Parent local char = plr.Character

script.Parent.MouseButton1Click:Connect(function() char.HumanoidRootPart.CFrame = workspace.Spawn1.CFrame end)

it works perfect when no one dies but when some one dies it breaks and I dont know how to fix this ive searched alot and nothing close to fix my problem, It teleports me fine when i dont die but when i do it breaks if anyone knows how to fix this please tell me how to fix this problem.

0
may i ask what it the script do (for ex. is it a gui where is kill the player) SUPERKID8713 14 — 2y

1 answer

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
2 years ago

Set your GUI ResetOnSpawn property false. No script are needed.

0
Thats the thing that is breaking my script I want it to be off but when i turn it off and die it breaks but when I put ResetOnSpawn True It fixes it but I hate every single time it comes up my friends and players dont like it so I dont know how to fix this its just so annoying :( Ultralalalaaa2010 5 — 2y
0
Can we work together I saw your profile obbist fun fact Im making a practice game for wallhops ladder flicking clips like flat wall clip dance clips laugh clip truss clip and wraparound walkarounds and alot of obby stuff I love dcos not escape the something The only kind of obbys I like is difficulty charts lol Ultralalalaaa2010 5 — 2y
0
your game is amazing please teach me your ways Im trying to make a practice game too Ultralalalaaa2010 5 — 2y
0
okay Xapelize 2658 — 2y
Ad

Answer this question