Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent = Instance.new("Glue")
- local Player = game:GetService("Players").LocalPlayer
- local lastpos = {}
- Player.Character.Archivable = true
- local Clone = Player.Character:Clone()
- if Player:FindFirstChild("AntiDeathClone") then
- Player:FindFirstChild("AntiDeathClone"):Destroy()
- end
- Instance.new("Folder", Player).Name = "AntiDeathClone"
- Clone.Parent = Player.AntiDeathClone
- API = {}
- API.Gs = function()
- local choices = {"a", "b" , "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
- local a = choices[math.random(1, #choices)]
- local b = choices[math.random(1, #choices)]
- local c = choices[math.random(1, #choices)]
- local d = choices[math.random(1, #choices)]
- local e = choices[math.random(1, #choices)]
- local f = choices[math.random(1, #choices)]
- local g = choices[math.random(1, #choices)]
- local h = choices[math.random(1, #choices)]
- local i = choices[math.random(1, #choices)]
- local str = a..b..c..e..d..e..f..g..h..i
- return str
- end
- API.GetObjs = function(parent, typeo)
- local objs = {}
- for i,v in pairs(parent:GetChildren()) do
- if typeo ~= nil then
- if v:IsA(typeo) then
- table.insert(objs, v)
- end
- else
- table.insert(objs, v)
- end
- end
- return objs
- end
- API.RemoveObjs = function(parent, typeo)
- for i,v in pairs(API.getobjs(parent, typeo)) do
- v:Remove()
- end
- end
- API.GetAllObjs = function(parent, typeo)
- local objs = {}
- function getobj(object)
- if typeo ~= nil then
- if object:IsA(typeo) then
- table.insert(objs, object)
- end
- else
- table.insert(objs, object)
- end
- for _, child in ipairs(object:GetChildren()) do
- getobj(child)
- end
- end
- getobj(parent)
- return objs
- end
- local scriptssss = API.GetAllObjs(Clone, "LocalScript")
- for o,script in pairs(scriptssss) do
- script.Disabled = true
- end
- Player.CharacterAdded:connect(function(character)
- character:WaitForChild("Humanoid").Died:connect(function()
- local oldchar = workspace:FindFirstChild(Player.Name)
- local newchar = Clone:Clone()
- local lastcframe = workspace.CurrentCamera.CFrame
- local oldd = lastcframe
- newchar.Parent = workspace
- newchar:MakeJoints()
- Player.Character = newchar
- workspace.CurrentCamera.CameraSubject = Player.Character
- local scripts = API.GetAllObjs(newchar, "LocalScript")
- for o,script in pairs(scripts) do
- script.Disabled = false
- end
- newchar.Torso.CFrame = lastpos
- oldchar:Destroy()
- wait()
- workspace.CurrentCamera.CFrame = oldd
- end)
- end)
- while true do
- if Player.Character ~= nil then
- lastpos = Player.Character.Torso.CFrame
- end
- wait(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement