Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Part0 = Instance.new("Part")
- Script1 = Instance.new("Script")
- SurfaceGui2 = Instance.new("SurfaceGui")
- TextLabel3 = Instance.new("TextBox")
- TextLabel4 = Instance.new("TextBox")
- TextLabel5 = Instance.new("TextBox")
- TextLabel6 = Instance.new("TextBox")
- TextLabel7 = Instance.new("TextBox")
- TextLabel8 = Instance.new("TextBox")
- TextLabel9 = Instance.new("TextBox")
- TextLabel10 = Instance.new("TextBox")
- TextLabel11 = Instance.new("TextBox")
- TextLabel3.TextEditable = false
- TextLabel4.TextEditable = false
- TextLabel5.TextEditable = false
- TextLabel6.TextEditable = false
- TextLabel7.TextEditable = false
- TextLabel8.TextEditable = false
- TextLabel9.TextEditable = false
- TextLabel10.TextEditable = false
- TextLabel11.TextEditable = false
- Part0.Name = "Hey"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(-1.00000024, 10.5, -32.0699997, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(-1.000000238418579, 10.5, -32.06999969482422)
- Part0.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part0.Size = Vector3.new(6, 3, 0.14000001549720764)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.BrickColor = BrickColor.new("Black")
- Part0.CanCollide = false
- Part0.Material = Enum.Material.Glass
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.brickColor = BrickColor.new("Black")
- Script1.Parent = Part0
- table.insert(cors,sandbox(Script1,function()
- local parent = script.Parent
- local surface = parent.ScreenGui
- local hb = surface.hb
- local step = surface.stepped
- local tw = surface.tw
- local w = surface.wait
- if not owner.Character then
- pcall(function()
- game:service"Debris":AddItem(parent, 0)
- end)
- return
- end
- local function update()
- coroutine.resume(coroutine.create(function()
- if hb then
- hb.Value.Text = string.format("(%s)", math.floor(1/game:service"RunService".Heartbeat:Wait()))
- end
- end))
- coroutine.resume(coroutine.create(function()
- if step then
- local connect
- connect = game:service"RunService".Stepped:Connect(function(time,dt)
- if not parent then connect:Disconnect() return end
- connect:Disconnect()
- pcall(function() step.Value.Text = string.format("(%s)", math.floor(1/dt)) end)
- end)
- end
- end))
- coroutine.resume(coroutine.create(function()
- if tw then
- tw.Value.Text = string.format("(%s)", math.floor(1/task.wait()))
- end
- end))
- coroutine.resume(coroutine.create(function()
- if w then
- w.Value.Text = string.format("(%s)", math.floor(1/wait()))
- end
- end))
- end
- task.spawn(function()
- local connect
- local oldchar = owner.Character
- connect = workspace.ChildRemoved:Connect(function(child)
- if child == oldchar then
- connect:Disconnect()
- pcall(function()
- game:service"Debris":AddItem(parent, 0)
- end)
- end
- end)
- while parent and oldchar and oldchar:IsDescendantOf(workspace) do task.wait()
- local rootpart = owner.Character:FindFirstChild("HumanoidRootPart") or owner.Character:FindFirstChild("Torso")
- if rootpart then
- parent.CFrame = parent.CFrame:Lerp(rootpart.CFrame * CFrame.new(0,3,-2.5) * CFrame.Angles(math.rad(30),math.rad(180),math.rad(math.sin(tick()*2))), 1)
- end
- end
- end)
- task.spawn(function()
- while parent do task.wait()
- update()
- end
- end)
- end))
- SurfaceGui2.Name = "ScreenGui"
- SurfaceGui2.Parent = Part0
- TextLabel3.Name = "hb"
- TextLabel3.Parent = SurfaceGui2
- TextLabel3.Position = UDim2.new(-0.000246826559, 0, -3.7252903e-08, 0)
- TextLabel3.Size = UDim2.new(0, 120, 0, 50)
- TextLabel3.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel3.BackgroundTransparency = 1
- TextLabel3.Font = Enum.Font.SourceSans
- TextLabel3.FontSize = Enum.FontSize.Size60
- TextLabel3.Text = "Heartbeat:"
- TextLabel3.TextColor = BrickColor.new("Institutional white")
- TextLabel3.TextColor3 = Color3.new(1, 1, 1)
- TextLabel3.TextSize = 50
- TextLabel3.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel4.Name = "Value"
- TextLabel4.Parent = TextLabel3
- TextLabel4.Position = UDim2.new(0.800000012, 0, 0.980000019, 0)
- TextLabel4.Size = UDim2.new(0, 200, 0, 50)
- TextLabel4.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel4.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel4.BackgroundTransparency = 1
- TextLabel4.Font = Enum.Font.SourceSans
- TextLabel4.FontSize = Enum.FontSize.Size60
- TextLabel4.Text = "(N/A)"
- TextLabel4.TextColor = BrickColor.new("Institutional white")
- TextLabel4.TextColor3 = Color3.new(1, 1, 1)
- TextLabel4.TextSize = 60
- TextLabel4.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel5.Name = "stepped"
- TextLabel5.Parent = SurfaceGui2
- TextLabel5.Position = UDim2.new(-0.000246826559, 0, 0.214711696, 0)
- TextLabel5.Size = UDim2.new(0, 120, 0, 50)
- TextLabel5.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel5.BackgroundTransparency = 1
- TextLabel5.Font = Enum.Font.SourceSans
- TextLabel5.FontSize = Enum.FontSize.Size60
- TextLabel5.Text = "Stepped:"
- TextLabel5.TextColor = BrickColor.new("Institutional white")
- TextLabel5.TextColor3 = Color3.new(1, 1, 1)
- TextLabel5.TextSize = 50
- TextLabel5.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel6.Name = "Value"
- TextLabel6.Parent = TextLabel5
- TextLabel6.Position = UDim2.new(0.800000012, 0, 0.980000019, 0)
- TextLabel6.Size = UDim2.new(0, 200, 0, 50)
- TextLabel6.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel6.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel6.BackgroundTransparency = 1
- TextLabel6.Font = Enum.Font.SourceSans
- TextLabel6.FontSize = Enum.FontSize.Size60
- TextLabel6.Text = "(N/A)"
- TextLabel6.TextColor = BrickColor.new("Institutional white")
- TextLabel6.TextColor3 = Color3.new(1, 1, 1)
- TextLabel6.TextSize = 60
- TextLabel6.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel7.Name = "tw"
- TextLabel7.Parent = SurfaceGui2
- TextLabel7.Position = UDim2.new(-0.000246826559, 0, 0.435387641, 0)
- TextLabel7.Size = UDim2.new(0, 120, 0, 50)
- TextLabel7.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel7.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel7.BackgroundTransparency = 1
- TextLabel7.Font = Enum.Font.SourceSans
- TextLabel7.FontSize = Enum.FontSize.Size60
- TextLabel7.Text = "task.wait:"
- TextLabel7.TextColor = BrickColor.new("Institutional white")
- TextLabel7.TextColor3 = Color3.new(1, 1, 1)
- TextLabel7.TextSize = 50
- TextLabel7.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel8.Name = "Value"
- TextLabel8.Parent = TextLabel7
- TextLabel8.Position = UDim2.new(0.800000012, 0, 0.980000019, 0)
- TextLabel8.Size = UDim2.new(0, 200, 0, 50)
- TextLabel8.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel8.BackgroundTransparency = 1
- TextLabel8.Font = Enum.Font.SourceSans
- TextLabel8.FontSize = Enum.FontSize.Size60
- TextLabel8.Text = "(N/A)"
- TextLabel8.TextColor = BrickColor.new("Institutional white")
- TextLabel8.TextColor3 = Color3.new(1, 1, 1)
- TextLabel8.TextSize = 60
- TextLabel8.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel9.Name = "wait"
- TextLabel9.Parent = SurfaceGui2
- TextLabel9.Position = UDim2.new(-0.000246826559, 0, 0.64612323, 0)
- TextLabel9.Size = UDim2.new(0, 120, 0, 50)
- TextLabel9.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel9.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel9.BackgroundTransparency = 1
- TextLabel9.Font = Enum.Font.SourceSans
- TextLabel9.FontSize = Enum.FontSize.Size60
- TextLabel9.Text = "wait:"
- TextLabel9.TextColor = BrickColor.new("Institutional white")
- TextLabel9.TextColor3 = Color3.new(1, 1, 1)
- TextLabel9.TextSize = 50
- TextLabel9.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel10.Name = "Value"
- TextLabel10.Parent = TextLabel9
- TextLabel10.Position = UDim2.new(0.800000012, 0, 0.980000019, 0)
- TextLabel10.Size = UDim2.new(0, 200, 0, 50)
- TextLabel10.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel10.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel10.BackgroundTransparency = 1
- TextLabel10.Font = Enum.Font.SourceSans
- TextLabel10.FontSize = Enum.FontSize.Size60
- TextLabel10.Text = "(N/A)"
- TextLabel10.TextColor = BrickColor.new("Institutional white")
- TextLabel10.TextColor3 = Color3.new(1, 1, 1)
- TextLabel10.TextSize = 60
- TextLabel10.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel11.Name = "updatetime"
- TextLabel11.Parent = SurfaceGui2
- TextLabel11.Position = UDim2.new(0.714999974, 0, 0.00600000005, 0)
- TextLabel11.Size = UDim2.new(0, 206, 0, 47)
- TextLabel11.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel11.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel11.BackgroundTransparency = 1
- TextLabel11.Font = Enum.Font.SourceSans
- TextLabel11.FontSize = Enum.FontSize.Size32
- TextLabel11.Text = "Update Every frame"
- TextLabel11.TextColor = BrickColor.new("Institutional white")
- TextLabel11.TextColor3 = Color3.new(1, 1, 1)
- TextLabel11.TextSize = 30
- TextLabel11.TextXAlignment = Enum.TextXAlignment.Left
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = owner.Character
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment