Advertisement
GiovanniWi

Untitled

Jun 24th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. print("edit by GiovanniWiyanto")
  2. wait(1)
  3. tooth = Instance.new("Tool", game.Workspace)
  4. tooth.Name = "Time Freeze"
  5. wait(1)
  6. tooth.Parent = game.Workspace.GiovanniWiyanto ---Change to your name
  7. Sphere = Instance.new("SpecialMesh",tooth)
  8. Sphere.Name = "SphereMesh"
  9. Sphere.MeshId = "http://www.roblox.com/asset/?id=94736101"
  10. Bandle = Instance.new("Part",tooth)
  11. Bandle.Name = "Handle"
  12. Round = Instance.new("Sound",Bandle)
  13. Round.Name = "Sound"
  14. Round.SoundId = "rbxassetid://1636723480"
  15. LimeResume = Instance.new("Sound",Bandle)
  16. LimeResume.Name = "TimeResume"
  17. LimeResume.SoundId = "rbxassetid://864569342"
  18. Bessage = Instance.new("Message",tooth)
  19.  
  20. --nothing to see here
  21.  
  22. freez = true
  23. players = game:GetService("Players")
  24. local froze = {}
  25. function VisualEffect(part)
  26. local EffectLength = 1.5
  27. local StartSphereScale = Vector3.new(.1,.1,.1)
  28. local EndSphereScale = Vector3.new(40,40,40)
  29.  
  30. local sphere = Instance.new('Part')
  31. sphere.CanCollide = false
  32. sphere.Anchored = true
  33. sphere.Transparency = 0.5
  34. sphere.Reflectance = 99
  35. sphere.FormFactor = Enum.FormFactor.Custom
  36. sphere.Shape = Enum.PartType.Ball
  37. sphere.Size = Vector3.new(0.2, 0.2, 0.2)
  38. sphere.CFrame = CFrame.new(part.CFrame.p)
  39. sphere.TopSurface = Enum.SurfaceType.Smooth
  40. sphere.BottomSurface = Enum.SurfaceType.Smooth
  41. sphere.Name = 'water' --LOL-CANO
  42. sphere.BrickColor=BrickColor.Gray()
  43. sphere.Transparency = 0.1
  44.  
  45. -- Add 0.2 for the wait below
  46. game.Debris:AddItem(sphere, EffectLength + 1)
  47. sphere.Parent = game.Workspace
  48.  
  49. local sphereMesh = Sphere:Clone()
  50. sphereMesh.VertexColor=Vector3.new(1,1,1)
  51. sphereMesh.Scale = Vector3.new(.1,.1,.1)
  52. sphereMesh.Parent = sphere
  53.  
  54.  
  55.  
  56. sphere.Transparency = 0
  57. local startTime=time()
  58. while time()-startTime<EffectLength do
  59. sphere.CFrame = CFrame.new(part.CFrame.p)
  60. sphereMesh.Scale=StartSphereScale:Lerp(EndSphereScale,(time()-startTime)/EffectLength)+Vector3.new(math.random(),math.random(),math.random())
  61. sphere.Transparency=(time()-startTime)/EffectLength
  62. wait()
  63. end
  64. end
  65. local function freeze(p)
  66. if p:IsA("BasePart") and p.Anchored == false then
  67. p.Anchored = true
  68. table.insert(froze,p)
  69. end
  70. for key, value in pairs(game.Players:GetChildren()) do
  71. rl = value.Character:FindFirstChild("Right Leg") -- If you use Game.* I will be mad
  72. ll = value.Character:FindFirstChild("Left Leg")
  73. ra = value.Character:FindFirstChild("Right Arm")
  74. la = value.Character:FindFirstChild("Left Arm")
  75. t = value.Character:FindFirstChild("Torso")
  76.  
  77. rl.Anchored = true
  78. ll.Anchored = true
  79. ra.Anchored = true
  80. la.Anchored = true
  81. t.Anchored = true
  82. local Tool = tooth
  83. local character = Tool.Parent
  84. local player = game.Players.LocalPlayer
  85. local Torso = character:FindFirstChild("Torso")
  86. local RightArm = character:FindFirstChild("Right Arm")
  87. local LeftArm = character:FindFirstChild("Left Arm")
  88. local RightLeg = character:FindFirstChild("Right Leg")
  89. local LeftLeg = character:FindFirstChild("Left Leg")
  90. local Head = character:FindFirstChild("Head")
  91. if script.Parent.Parent.Name == "Backpack" then
  92. Torso = script.Parent.Parent.Parent.Character:FindFirstChild("Torso")
  93. RightArm = script.Parent.Parent.Parent.Character:FindFirstChild("Right Arm")
  94. LeftArm = script.Parent.Parent.Parent.Character:FindFirstChild("Left Arm")
  95. RightLeg = script.Parent.Parent.Parent.Character:FindFirstChild("Right Leg")
  96. LeftLeg = script.Parent.Parent.Parent.Character:FindFirstChild("Left Leg")
  97. Head = script.Parent.Parent.Parent.Character:FindFirstChild("Head")
  98. end
  99. if Torso ~= nil then
  100.  
  101. Torso.Anchored = false
  102. Head.Anchored = false
  103. RightArm.Anchored = false
  104. LeftArm.Anchored = false
  105. RightLeg.Anchored = false
  106. LeftLeg.Anchored = false
  107. end
  108. end
  109. if not game.Players:GetPlayerFromCharacter(p) then
  110. for _,v in pairs(p:GetChildren())do
  111. freeze(v)
  112. end
  113. end
  114. end
  115. local function unfreeze()
  116. for key, value in pairs(game.Players:GetChildren()) do
  117. rl = value.Character:FindFirstChild("Right Leg") -- If you use Game.* I will be mad
  118. ll = value.Character:FindFirstChild("Left Leg")
  119. ra = value.Character:FindFirstChild("Right Arm")
  120. la = value.Character:FindFirstChild("Left Arm")
  121. t = value.Character:FindFirstChild("Torso")
  122.  
  123. rl.Anchored = false
  124. ll.Anchored = false
  125. ra.Anchored = false
  126. la.Anchored = false
  127. t.Anchored = false
  128.  
  129. end
  130. for _,v in pairs(froze)do
  131. v.Anchored = false
  132. end
  133. froze = {}
  134. end
  135. tooth.Activated:connect(function()
  136. if freez == true then
  137. freez = false
  138. Bessage.Text = "Time Stops!" ---Broke
  139. Bandle.Transparency = 1
  140. Round:Play()
  141. wait(1.55)
  142. VisualEffect(Bandle)
  143. Bessage.Parent = nil
  144. freeze(workspace)
  145. wait(1.63)
  146. local amount = 0
  147. while amount <= 300 do
  148. freeze(workspace)
  149. amount = amount + 1
  150. wait(0.03)
  151. end
  152. local texty = Instance.new("Message",game.Workspace)
  153. LimeResume:Play()
  154. texty.Text = "Time Flows Again!" ---Broke
  155. wait(2.429)
  156. Bandle.Transparency = 0
  157. texty:remove()
  158. unfreeze()
  159. wait(.1)
  160. freez = true
  161. else return end
  162. end)
  163.  
  164. tooth.Parent.Humanoid.Died:connect(function()
  165. unfreeze()
  166. script.Disabled = true
  167. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement