Ad
Log in to vote
0

How do i make not deletable script in players character?

Asked by 19 days 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 18 days ago

you put the script in starterplayerscrips

0
no, the script is gamepass only TemaTechYT 2 — 18d
Ad
Log in to vote
0
Answered by 18 days 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