How can i Reset the Checkpoint?

wait()
local dum = game.Workspace.CellatBaba
local players = game:GetService("Players")
local lead = game.Players:WaitForChild("leaderstats", 1)

game.Workspace.CellatBaba.Hitbox.Touched:Connect(function(hit)
	local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
	if game.Players:GetPlayerFromCharacter(hit.Parent) then
		game.Workspace.CellatBaba:SetPrimaryPartCFrame(CFrame.new(0,0,0))
		hit.Parent.Humanoid.Health = 0 
		Player.leaderstats.Checkpoint.Value = 0
		
	end 	    
end)	

its a local script in StarterGui maybe this code cause that problem

Okay the reason it is going down to 0 is this line. Delete it. :laughing:

But the main purpose of cellat that is when cellat catchs you your all checkpoints are resets

Go to your Checkpoints folder and look at the parts. If there are some scripts under them, show me off.

No nothing in the parts only in folder have 1 script and that is TouchHandler

What is written in it? Can you please show it?

local Checkpoints = script.Parent


for i,v in pairs(Checkpoints:GetChildren()) do
   if v:IsA("BasePart") then
   	v.Touched:Connect(function(hit)
   		if hit.Parent:FindFirstChild("HumanoidRootPart") then
   			local player = game.Players:GetPlayerFromCharacter(hit.Parent)
   			if player then
   				if player.leaderstats.Checkpoint.Value < tonumber(v.Name) then
   					player.leaderstats.Checkpoint.Value = tonumber(v.Name)
   				end	
   			end	
   		end	
   	end)	
   end
end

just that

openthoseparts
open those parts and look inside them. Is anything there?

I checked they just welded nothing more

localscript1

What is written in that LocalScript?

LocalScript is npc movement script Teleport Script is this




wait()
local dum = game.Workspace.CellatBaba
local players = game:GetService("Players")
local lead = game.Players:WaitForChild("leaderstats", 1)

game.Workspace.CellatBaba.Hitbox.Touched:Connect(function(hit)
	local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
	if game.Players:GetPlayerFromCharacter(hit.Parent) then
		game.Workspace.CellatBaba:SetPrimaryPartCFrame(CFrame.new(0,0,0))
		hit.Parent.Humanoid.Health = 0 
		Player.leaderstats.Checkpoint.Value = 0
		
	end 	    
end)	








We are just in the endless pit xd both of us are not very good at script. Fun Fact no one reply this topic except for you and me thats kinda weird.

I am actually an advanced scripter but couldn’t figure out where you are having that issue. I’m sorry for not helping you. :disappointed:

if you are advanced scripter and you couldnt find the right answer what im gonna do :neutral_face:

I’m sure this was the accurate script.

If you don’t believe me, try this in another game because I don’t know your entire scripts.

i dont know man trying another game maybe i can do that but i need to sleep sooner i didnt sleep for 2 days rn