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

How would I regen a character? Not respawn but regen.

local Sand = game.Workspace:WaitForChild("Sand")
local Debounce = false
 Sand.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
    if Debounce == false then Debounce = true
         game.ReplicatedStorage.GravityController:Destroy()
         print("Module successfully destroyed")
    	end
    end
end)

if game.ReplicatedStorage.GravityController:Destroy() then
	workspace:FindFirstChild("Humanoid")  -- this is where I want to regen the character
end

2 comments

0

Do you mean regen as in health

0

no as in reloading the character

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.