OS_scripts

ah yes

Jun 12th, 2022 (edited)
679
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.37 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3.     local env = getfenv(func)
  4.     local newenv = setmetatable({},{
  5.         __index = function(self,k)
  6.             if k=="script" then
  7.                 return var
  8.             else
  9.                 return env[k]
  10.             end
  11.         end,
  12.     })
  13.     setfenv(func,newenv)
  14.     return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Part0 = Instance.new("Part")
  19. Script1 = Instance.new("Script")
  20. SurfaceGui2 = Instance.new("SurfaceGui")
  21. TextLabel3 = Instance.new("TextBox")
  22. TextLabel4 = Instance.new("TextBox")
  23. TextLabel5 = Instance.new("TextBox")
  24. TextLabel6 = Instance.new("TextBox")
  25. TextLabel7 = Instance.new("TextBox")
  26. TextLabel8 = Instance.new("TextBox")
  27. TextLabel9 = Instance.new("TextBox")
  28. TextLabel10 = Instance.new("TextBox")
  29. TextLabel11 = Instance.new("TextBox")
  30. TextLabel3.TextEditable = false
  31. TextLabel4.TextEditable = false
  32. TextLabel5.TextEditable = false
  33. TextLabel6.TextEditable = false
  34. TextLabel7.TextEditable = false
  35. TextLabel8.TextEditable = false
  36. TextLabel9.TextEditable = false
  37. TextLabel10.TextEditable = false
  38. TextLabel11.TextEditable = false
  39. Part0.Name = "Hey"
  40. Part0.Parent = mas
  41. Part0.CFrame = CFrame.new(-1.00000024, 10.5, -32.0699997, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  42. Part0.Position = Vector3.new(-1.000000238418579, 10.5, -32.06999969482422)
  43. Part0.Color = Color3.new(0.105882, 0.164706, 0.207843)
  44. Part0.Size = Vector3.new(6, 3, 0.14000001549720764)
  45. Part0.Anchored = true
  46. Part0.BottomSurface = Enum.SurfaceType.Smooth
  47. Part0.BrickColor = BrickColor.new("Black")
  48. Part0.CanCollide = false
  49. Part0.Material = Enum.Material.Glass
  50. Part0.TopSurface = Enum.SurfaceType.Smooth
  51. Part0.brickColor = BrickColor.new("Black")
  52. Script1.Parent = Part0
  53. table.insert(cors,sandbox(Script1,function()
  54. local parent = script.Parent
  55. local surface = parent.ScreenGui
  56. local hb = surface.hb
  57. local step = surface.stepped
  58. local tw = surface.tw
  59. local w = surface.wait
  60.  
  61. if not owner.Character then
  62.     pcall(function()
  63.         game:service"Debris":AddItem(parent, 0)
  64.     end)
  65.     return
  66. end
  67.  
  68. local function update()
  69.     coroutine.resume(coroutine.create(function()
  70.         if hb then
  71.             hb.Value.Text = string.format("(%s)", math.floor(1/game:service"RunService".Heartbeat:Wait()))
  72.         end
  73.     end))
  74.     coroutine.resume(coroutine.create(function()
  75.         if step then
  76.             local connect
  77.             connect = game:service"RunService".Stepped:Connect(function(time,dt)
  78.                 if not parent then connect:Disconnect() return end
  79.                 connect:Disconnect()
  80.                 pcall(function() step.Value.Text = string.format("(%s)", math.floor(1/dt)) end)
  81.             end)
  82.         end
  83.     end))
  84.     coroutine.resume(coroutine.create(function()
  85.         if tw then
  86.             tw.Value.Text = string.format("(%s)", math.floor(1/task.wait()))
  87.         end
  88.     end))
  89.     coroutine.resume(coroutine.create(function()
  90.         if w then
  91.             w.Value.Text = string.format("(%s)", math.floor(1/wait()))
  92.         end
  93.     end))
  94. end
  95.  
  96. task.spawn(function()
  97.     local connect
  98.     local oldchar = owner.Character
  99.     connect = workspace.ChildRemoved:Connect(function(child)
  100.         if child == oldchar then
  101.             connect:Disconnect()
  102.             pcall(function()
  103.                 game:service"Debris":AddItem(parent, 0)
  104.             end)
  105.         end
  106.     end)
  107.     while parent and oldchar and oldchar:IsDescendantOf(workspace) do task.wait()
  108.         local rootpart = owner.Character:FindFirstChild("HumanoidRootPart") or owner.Character:FindFirstChild("Torso")
  109.         if rootpart then
  110.             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)
  111.         end
  112.     end
  113. end)
  114.  
  115. task.spawn(function()
  116.     while parent do task.wait()
  117.         update()
  118.     end
  119. end)
  120. end))
  121. SurfaceGui2.Name = "ScreenGui"
  122. SurfaceGui2.Parent = Part0
  123. TextLabel3.Name = "hb"
  124. TextLabel3.Parent = SurfaceGui2
  125. TextLabel3.Position = UDim2.new(-0.000246826559, 0, -3.7252903e-08, 0)
  126. TextLabel3.Size = UDim2.new(0, 120, 0, 50)
  127. TextLabel3.BackgroundColor = BrickColor.new("Institutional white")
  128. TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
  129. TextLabel3.BackgroundTransparency = 1
  130. TextLabel3.Font = Enum.Font.SourceSans
  131. TextLabel3.FontSize = Enum.FontSize.Size60
  132. TextLabel3.Text = "Heartbeat:"
  133. TextLabel3.TextColor = BrickColor.new("Institutional white")
  134. TextLabel3.TextColor3 = Color3.new(1, 1, 1)
  135. TextLabel3.TextSize = 50
  136. TextLabel3.TextXAlignment = Enum.TextXAlignment.Left
  137. TextLabel4.Name = "Value"
  138. TextLabel4.Parent = TextLabel3
  139. TextLabel4.Position = UDim2.new(0.800000012, 0, 0.980000019, 0)
  140. TextLabel4.Size = UDim2.new(0, 200, 0, 50)
  141. TextLabel4.BackgroundColor = BrickColor.new("Institutional white")
  142. TextLabel4.BackgroundColor3 = Color3.new(1, 1, 1)
  143. TextLabel4.BackgroundTransparency = 1
  144. TextLabel4.Font = Enum.Font.SourceSans
  145. TextLabel4.FontSize = Enum.FontSize.Size60
  146. TextLabel4.Text = "(N/A)"
  147. TextLabel4.TextColor = BrickColor.new("Institutional white")
  148. TextLabel4.TextColor3 = Color3.new(1, 1, 1)
  149. TextLabel4.TextSize = 60
  150. TextLabel4.TextXAlignment = Enum.TextXAlignment.Left
  151. TextLabel5.Name = "stepped"
  152. TextLabel5.Parent = SurfaceGui2
  153. TextLabel5.Position = UDim2.new(-0.000246826559, 0, 0.214711696, 0)
  154. TextLabel5.Size = UDim2.new(0, 120, 0, 50)
  155. TextLabel5.BackgroundColor = BrickColor.new("Institutional white")
  156. TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
  157. TextLabel5.BackgroundTransparency = 1
  158. TextLabel5.Font = Enum.Font.SourceSans
  159. TextLabel5.FontSize = Enum.FontSize.Size60
  160. TextLabel5.Text = "Stepped:"
  161. TextLabel5.TextColor = BrickColor.new("Institutional white")
  162. TextLabel5.TextColor3 = Color3.new(1, 1, 1)
  163. TextLabel5.TextSize = 50
  164. TextLabel5.TextXAlignment = Enum.TextXAlignment.Left
  165. TextLabel6.Name = "Value"
  166. TextLabel6.Parent = TextLabel5
  167. TextLabel6.Position = UDim2.new(0.800000012, 0, 0.980000019, 0)
  168. TextLabel6.Size = UDim2.new(0, 200, 0, 50)
  169. TextLabel6.BackgroundColor = BrickColor.new("Institutional white")
  170. TextLabel6.BackgroundColor3 = Color3.new(1, 1, 1)
  171. TextLabel6.BackgroundTransparency = 1
  172. TextLabel6.Font = Enum.Font.SourceSans
  173. TextLabel6.FontSize = Enum.FontSize.Size60
  174. TextLabel6.Text = "(N/A)"
  175. TextLabel6.TextColor = BrickColor.new("Institutional white")
  176. TextLabel6.TextColor3 = Color3.new(1, 1, 1)
  177. TextLabel6.TextSize = 60
  178. TextLabel6.TextXAlignment = Enum.TextXAlignment.Left
  179. TextLabel7.Name = "tw"
  180. TextLabel7.Parent = SurfaceGui2
  181. TextLabel7.Position = UDim2.new(-0.000246826559, 0, 0.435387641, 0)
  182. TextLabel7.Size = UDim2.new(0, 120, 0, 50)
  183. TextLabel7.BackgroundColor = BrickColor.new("Institutional white")
  184. TextLabel7.BackgroundColor3 = Color3.new(1, 1, 1)
  185. TextLabel7.BackgroundTransparency = 1
  186. TextLabel7.Font = Enum.Font.SourceSans
  187. TextLabel7.FontSize = Enum.FontSize.Size60
  188. TextLabel7.Text = "task.wait:"
  189. TextLabel7.TextColor = BrickColor.new("Institutional white")
  190. TextLabel7.TextColor3 = Color3.new(1, 1, 1)
  191. TextLabel7.TextSize = 50
  192. TextLabel7.TextXAlignment = Enum.TextXAlignment.Left
  193. TextLabel8.Name = "Value"
  194. TextLabel8.Parent = TextLabel7
  195. TextLabel8.Position = UDim2.new(0.800000012, 0, 0.980000019, 0)
  196. TextLabel8.Size = UDim2.new(0, 200, 0, 50)
  197. TextLabel8.BackgroundColor = BrickColor.new("Institutional white")
  198. TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1)
  199. TextLabel8.BackgroundTransparency = 1
  200. TextLabel8.Font = Enum.Font.SourceSans
  201. TextLabel8.FontSize = Enum.FontSize.Size60
  202. TextLabel8.Text = "(N/A)"
  203. TextLabel8.TextColor = BrickColor.new("Institutional white")
  204. TextLabel8.TextColor3 = Color3.new(1, 1, 1)
  205. TextLabel8.TextSize = 60
  206. TextLabel8.TextXAlignment = Enum.TextXAlignment.Left
  207. TextLabel9.Name = "wait"
  208. TextLabel9.Parent = SurfaceGui2
  209. TextLabel9.Position = UDim2.new(-0.000246826559, 0, 0.64612323, 0)
  210. TextLabel9.Size = UDim2.new(0, 120, 0, 50)
  211. TextLabel9.BackgroundColor = BrickColor.new("Institutional white")
  212. TextLabel9.BackgroundColor3 = Color3.new(1, 1, 1)
  213. TextLabel9.BackgroundTransparency = 1
  214. TextLabel9.Font = Enum.Font.SourceSans
  215. TextLabel9.FontSize = Enum.FontSize.Size60
  216. TextLabel9.Text = "wait:"
  217. TextLabel9.TextColor = BrickColor.new("Institutional white")
  218. TextLabel9.TextColor3 = Color3.new(1, 1, 1)
  219. TextLabel9.TextSize = 50
  220. TextLabel9.TextXAlignment = Enum.TextXAlignment.Left
  221. TextLabel10.Name = "Value"
  222. TextLabel10.Parent = TextLabel9
  223. TextLabel10.Position = UDim2.new(0.800000012, 0, 0.980000019, 0)
  224. TextLabel10.Size = UDim2.new(0, 200, 0, 50)
  225. TextLabel10.BackgroundColor = BrickColor.new("Institutional white")
  226. TextLabel10.BackgroundColor3 = Color3.new(1, 1, 1)
  227. TextLabel10.BackgroundTransparency = 1
  228. TextLabel10.Font = Enum.Font.SourceSans
  229. TextLabel10.FontSize = Enum.FontSize.Size60
  230. TextLabel10.Text = "(N/A)"
  231. TextLabel10.TextColor = BrickColor.new("Institutional white")
  232. TextLabel10.TextColor3 = Color3.new(1, 1, 1)
  233. TextLabel10.TextSize = 60
  234. TextLabel10.TextXAlignment = Enum.TextXAlignment.Left
  235. TextLabel11.Name = "updatetime"
  236. TextLabel11.Parent = SurfaceGui2
  237. TextLabel11.Position = UDim2.new(0.714999974, 0, 0.00600000005, 0)
  238. TextLabel11.Size = UDim2.new(0, 206, 0, 47)
  239. TextLabel11.BackgroundColor = BrickColor.new("Institutional white")
  240. TextLabel11.BackgroundColor3 = Color3.new(1, 1, 1)
  241. TextLabel11.BackgroundTransparency = 1
  242. TextLabel11.Font = Enum.Font.SourceSans
  243. TextLabel11.FontSize = Enum.FontSize.Size32
  244. TextLabel11.Text = "Update Every frame"
  245. TextLabel11.TextColor = BrickColor.new("Institutional white")
  246. TextLabel11.TextColor3 = Color3.new(1, 1, 1)
  247. TextLabel11.TextSize = 30
  248. TextLabel11.TextXAlignment = Enum.TextXAlignment.Left
  249. for i,v in pairs(mas:GetChildren()) do
  250.     v.Parent = owner.Character
  251.     pcall(function() v:MakeJoints() end)
  252. end
  253. mas:Destroy()
  254. for i,v in pairs(cors) do
  255.     spawn(function()
  256.         pcall(v)
  257.     end)
  258. end
  259.  
Add Comment
Please, Sign In to add comment