Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make not deletable script in players character?

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

2 answers

you put the script in starterplayerscrips

1 comment

0

no, the script is gamepass only

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.