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
Check this out: https://developer.roblox.com/en-us/api-reference/function/Player/LoadCharacter
It essentially just re-creates the player model.
If this is a direct answer to your question make this an accepted answer.