How do i make not deletable script in players character? So, when character dies, the script not deletes.
COMMUNITY QUESTION
How do i make not deletable script in players character?
2 answers
you put the script in starterplayerscrips
You either put it in starterplayerscrips or if that's not passible Somehow then use this
Note: This script has to be the parent of the Script you want undeletable
script.Test:Clone().Parent = game.StarterPlayer.StarterPlayerScripts
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(C)
local hum = C:WaitForChild("Humanoid")
hum.Died:connect(function()
script.Test:Clone().Parent = game.StarterPlayer.StarterPlayerScripts
end)
end)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
no, the script is gamepass only