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

How do i make not deletable script in players character?

Asked by 3 years ago

How do i make not deletable script in players character? So, when character dies, the script not deletes.

2 answers

Log in to vote
0
Answered by 3 years ago

you put the script in starterplayerscrips

0
no, the script is gamepass only TemaTechYT 2 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

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)

Answer this question