Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oldparent = owner.Character.Parent
- oldcf = owner.Character.HumanoidRootPart.CFrame
- script.Parent = game.Workspace
- task.wait()
- owner.Character.Parent = script
- local billboard = Instance.new("BillboardGui", owner.Character.Head)
- billboard.Adornee = owner.Character.Head
- billboard.StudsOffset = Vector3.new(-1, 2.5, 0)
- billboard.Size = UDim2.new(2,0,1,0)
- billboard.Name = "chat"
- local text = Instance.new("TextBox", billboard)
- text.BackgroundTransparency = 1
- text.TextStrokeTransparency = 0
- text.TextSize = 25
- text.TextStrokeColor3 = Color3.fromRGB(0,0,0)
- text.Size = billboard.Size
- text.Font = "SpecialElite"
- text.TextColor3 = owner.Character.Torso.Color
- text.Text = owner.Name.." / "..owner.Character.Humanoid.DisplayName.." Is AFK"
- owner.Character.HumanoidRootPart.Anchored = true
- local me = {}
- owner.Character.Archivable = true
- table.insert(me,owner.Character:Clone())
- local replicating = false
- replicate = function()
- replicating = true
- script:ClearAllChildren()
- local clone = me[1]
- clone.Parent = script
- replicating = false
- end
- script.ChildRemoved:connect(function(a)
- if replicating == false then
- replicate()
- end
- end
- )
- wait()
- replicate()
- wait()
- owner.Character.Parent = nil
- owner.Chatted:Connect(function(msg)
- if string.lower(msg) == "-reset" then
- wait()
- owner:LoadCharacter()
- owner.Character.HumanoidRootPart.CFrame = oldcf
- owner.Character.HumanoidRootPart.Anchored = false
- wait()
- script:Destroy()
- end
- end)
- local screengui2 = Instance.new("ScreenGui", owner:findFirstChildOfClass("PlayerGui"))
- screengui2.ResetOnSpawn = true
- screengui2.Name = "youfailed2"
- local tl3 = Instance.new("TextLabel", screengui2)
- tl3.Size = UDim2.new(1,0,1,0)
- tl3.AnchorPoint = Vector2.new(1, 1)
- tl3.Position = UDim2.new(1, 0, 1, 0)
- tl3.Text = "Do -reset to respawn"
- tl3.BackgroundTransparency = 1
- tl3.TextTransparency = 0
- tl3.TextColor3 = Color3.new(0.5, 0.5, 0.5)
- tl3.TextSize = 50
Add Comment
Please, Sign In to add comment