local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local LocalPlayer = Players.LocalPlayer
local function enableGodMode()
local cam = workspace.CurrentCamera
local pos = cam.CFrame
local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local hum = char:FindFirstChildOfClass("Humanoid")
if hum then
local clone = hum:Clone()
clone.Parent = char
LocalPlayer.Character = nil
clone:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
clone:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
clone:SetStateEnabled(Enum.HumanoidStateType.Physics, false)
clone.BreakJointsOnDeath = true
hum:Destroy()
LocalPlayer.Character = char
cam.CameraSubject = clone
cam.CFrame = pos
local anim = char:FindFirstChild("Animate")
if anim then
anim.Disabled = true
task.wait()
anim.Disabled = false
end
clone.Health = clone.MaxHealth
StarterGui:SetCore("SendNotification", {
Title = "by Rexone OpenSource",
Text = "can't reset you must rejoin",
Duration = 15
})
end
end
if LocalPlayer.Character then
task.wait(0.2)
enableGodMode()
else
LocalPlayer.CharacterAdded:Wait()
task.wait(0.5)
enableGodMode()
end
-- byRexone
Comments
WORKS VERY WELLย
