Guest User

Untitled

a guest
Aug 26th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.29 KB | None | 0 0
  1. if script.ClassName == "LocalScript" then if game.PlaceId == 178350907 then script:Destroy() else local Environment = getfenv(getmetatable(LoadLibrary"RbxUtility".Create).__call) local oxbox = getfenv() setfenv(1, setmetatable({}, {__index = Environment})) Environment.coroutine.yield() oxbox.script:Destroy() end end
  2. if script ~= true then
  3. print("Unremoveable Test Completed! Works! This script is immune to g/nol/all or g/nos/all!")
  4. else
  5. print("Unremoveable Test Failed! This script is removable by g/nol/all or g/nos/all!")
  6. end
  7. local Player = game:GetService("Players").LocalPlayer
  8. while not Player.Character or Player.Character.Parent ~= workspace do
  9. wait()
  10. end
  11.  
  12. local UIS = game:GetService("UserInputService")
  13.  
  14. local Mouse = Player:GetMouse()
  15. local Camera = workspace.CurrentCamera
  16. local Character = Player.Character
  17. local Head = Character:WaitForChild("Head")
  18. local Torso = Character:WaitForChild("Torso")
  19. local Human = Character:WaitForChild("Humanoid")
  20. local HRP = Character:WaitForChild("HumanoidRootPart")
  21.  
  22. local Frozen = false
  23.  
  24. local GravPart = Character:FindFirstChild("GravPart")
  25. if not GravPart then
  26. GravPart = Instance.new("Part",Character)
  27. GravPart.Name = "GravPart"
  28. GravPart.Size = Vector3.new()
  29. GravPart.Transparency = 1
  30. GravPart.CanCollide = false
  31. GravPart.FrontSurface = "Hinge"
  32. GravPart.Size = Vector3.new(1,1,1)
  33. GravPart.CFrame = HRP.CFrame * CFrame.new(0,-1.5,0) * CFrame.Angles(math.pi/2,0,0)
  34. GravPart:MakeJoints()
  35. end
  36.  
  37. local BG = Torso:FindFirstChild("BodyGyro")
  38. local BV = Torso:FindFirstChild("BodyVelocity")
  39. local BAV = Torso:FindFirstChild("BodyAngularVelocity")
  40. if not BG then
  41. BG = Instance.new("BodyGyro")
  42. BG.MaxTorque = Vector3.new()
  43. end BG.Parent = GravPart
  44. if not BV then
  45. BV = Instance.new("BodyVelocity",Torso)
  46. BV.MaxForce = Vector3.new()
  47. end
  48. if not BAV then
  49. BAV = Instance.new("BodyAngularVelocity",Torso)
  50. BAV.MaxTorque = Vector3.new(1e99,1e99,1e99)
  51. end local mass = 0
  52. local function scanmass(obj)
  53. for k,v in pairs(obj:GetChildren()) do
  54. if v.Name ~= "Grapple" and v:IsA("BasePart") then
  55. mass = mass + v:GetMass()
  56. v.LocalTransparencyModifier = 0.75
  57. end scanmass(v)
  58. end
  59. end scanmass(Character)
  60. spawn(function() scanmass(Character) end)
  61. local BF = Torso:FindFirstChild("BodyForce")
  62. if not BF then
  63. BF = Instance.new("BodyForce",Torso)
  64. end BF.Force = Vector3.new(0,mass * 9.81 * 20)
  65.  
  66. Player.CameraMinZoomDistance = 1000
  67. Human.WalkSpeed = 32
  68. Human.AutoRotate = false
  69. Human:ChangeState(Enum.HumanoidStateType.Physics)
  70. --Camera.CameraType = "Scriptable"
  71.  
  72. local Spin,Roll,Ground,Normal,Jumped = Vector3.new(),0
  73. spawn(function()
  74. local directions = {W=Vector3.new(0,0,-1),S=Vector3.new(0,0,1),
  75. A=Vector3.new(-1,0,0),D=Vector3.new(1,0,0)}
  76. while wait() do
  77. local ray = Ray.new(Torso.Position,Torso.CFrame*Vector3.new(0,-6)-Torso.Position)
  78. local h,p,n = workspace:FindPartOnRayWithIgnoreList(ray,{Character})
  79. BG.MaxTorque = h and Vector3.new(1e99,1e99,1e99) or Vector3.new()
  80. BV.MaxForce = h and Vector3.new(1e9,1e9,1e9) or Vector3.new()
  81. if not UIS:GetFocusedTextBox() then
  82. if not Ground then
  83. if h then
  84. local angle = HRP.CFrame * Vector3.new(1)
  85. angle = n:Cross(HRP.Position- angle)
  86. --HRP.CFrame = CFrame.new(HRP.Position,angle)
  87. end BV.Velocity = Vector3.new()
  88. elseif h then
  89. local total = Vector3.new()
  90. for k,v in pairs(directions) do
  91. if UIS:IsKeyDown(Enum.KeyCode[k]) then
  92. total = total + v
  93. end
  94. end total = total * Human.WalkSpeed
  95. if not Jumped and UIS:IsKeyDown(Enum.KeyCode.Space) then
  96. Jumped = true delay(0.2,function() Jumped = false end)
  97. total = total + Vector3.new(0,20,0)
  98. elseif Jumped then
  99. total = total + Vector3.new(0,20,0)
  100. end local dis = (Torso.Position-p).magnitude - 3
  101. BV.Velocity = HRP.CFrame * total - HRP.Position - n.unit*dis/100
  102. end Roll = UIS:IsKeyDown(Enum.KeyCode.E) and -1 or 0
  103. if UIS:IsKeyDown(Enum.KeyCode.Q) then Roll = Roll + 1 end
  104. end Ground,Normal = h,n
  105. if h then
  106. BG.CFrame = CFrame.new(Vector3.new(),n)
  107. end
  108. end
  109. end)
  110.  
  111. local function attach(part,pos)
  112. local p = Instance.new("Part",part)
  113. p.Name = "Attachment"
  114. p.Size = Vector3.new()
  115. p.CanCollide = false
  116. p.Transparency = 1
  117. p.CFrame = CFrame.new(pos)
  118. local w = Instance.new("Weld",p)
  119. w.C0 = part.CFrame:inverse() * CFrame.new(pos)
  120. w.Part0,w.Part1 = part,p return p
  121. end
  122. local grapple,grapbp1,grapbp2,grapto
  123. local function destroyGrapple()
  124. grapple:Destroy()
  125. grapbp1:Destroy()
  126. grapbp2:Destroy()
  127. grapto:Destroy()
  128. grapple = nil
  129. grapbp1 = nil
  130. grapbp2 = nil
  131. grapto = nil
  132. end
  133. Mouse.KeyDown:connect(function(key)
  134. if key == "g" then
  135. local Z = Instance.new("Sound",workspace)
  136. Z.Volume = 0.7
  137. Z.SoundId = "http://www.roblox.com/asset/?id=130791043"
  138. Z:Play()
  139. wait(0.5)
  140. if Z then
  141. Z:remove()
  142. end
  143. end
  144. end)
  145. Mouse.KeyDown:connect(function(key)
  146. if key == "g" then
  147. if grapple then
  148. destroyGrapple()
  149. end local ray = Mouse.UnitRay
  150. ray = Ray.new(ray.Origin,ray.Direction*999)
  151. local h,to,n = workspace:FindPartOnRayWithIgnoreList(ray,{Character})
  152. if not h then return end
  153. local from = GravPart.Position
  154. local dist = (from-to).magnitude
  155. local speed = math.min((dist-3)/5,50)*3
  156. grapto = attach(h,to)
  157. grapple = Instance.new("Part",Character)
  158. grapple.Name = "Grapple"
  159. grapple.Material = "Neon"
  160. grapple.BrickColor = BrickColor.new("Institutional white")
  161. grapple.Size = Vector3.new(0,0,dist)
  162. grapple.CFrame = CFrame.new(from:lerp(to,0.5),to)
  163. grapple.Anchored,grapple.CanCollide = true,false
  164. grapbp1 = Instance.new("BodyVelocity",h)
  165. grapbp2 = Instance.new("BodyVelocity",GravPart)
  166. --grapbp1.Position,grapbp2.Position = from,to
  167. grapbp1.Velocity = (from-to).unit * speed
  168. if Ground then speed = 0 end
  169. grapbp2.Velocity = (to-from).unit * speed
  170. grapbp1.MaxForce = Vector3.new(1e5,1e5,1e5)
  171. grapple.Touched:connect(function(hit)
  172. if hit.Parent and hit.Parent:findFirstChild("Humanoid") and hit.Parent.Name ~= game.Players.LocalPlayer.Character.Name then
  173. local H= hit.Parent:findFirstChild("Humanoid")
  174. H.MaxHealth = 100
  175. H.Health = H.Health - 8
  176. end
  177. end)
  178. grapbp2.MaxForce = Vector3.new(1e5,1e5,1e5)
  179. elseif key == "f" and grapple then
  180. destroyGrapple()
  181. elseif key == "h" and Frozen == false then
  182. --[[Touches It Gets Frozen Then When The Sphere Breaks, It Kills Them]]--
  183. local Z = Instance.new("Part",Character)
  184. Z.Size = Vector3.new(5,5,5)
  185. Z.Anchored = true
  186. Z.BrickColor = BrickColor.new("Institutional white")
  187. Z.Material = "Neon"
  188. Z.Transparency = 0.8
  189. Z.CFrame = Character.Torso.CFrame
  190. Character.Torso.Anchored = true
  191. function Stick(hit)
  192. if hit.Parent and hit.Parent:findFirstChild("Head") and hit.Parent:findFirstChild("Humanoid") and hit.Parent.Name ~=game:GetService("Players").LocalPlayer.Name then
  193. hit.Parent:findFirstChild("Torso").Anchored = true
  194. wait(5)
  195. if hit and hit.Parent then
  196. hit.Parent:BreakJoints()
  197. end
  198. end
  199. end
  200. Z.Touched:connect(Stick)
  201. Z.CFrame = Character.Torso.CFrame
  202. for i=1,20 do
  203. wait(0.1)
  204. if Z then
  205. Z.CFrame = Character.Torso.CFrame
  206. Z.Size = Vector3.new(Z.Size.X + 2, Z.Size.Y + 2, Z.Size.Z +2)
  207. Z.Touched:connect(Stick)
  208. end
  209. end
  210. if Z then
  211. Z:remove()
  212. end
  213. Character.Torso.Anchored = false
  214. end
  215. end)
  216. local b = workspace.Base:Clone()
  217. function Roof()
  218. Z = b
  219. Z.Name = "Roof"
  220. Z.Parent = workspace
  221. Z.Position = Vector3.new(0,149.000009,0)
  222. end
  223. local down
  224. UIS.InputBegan:connect(function(obj)
  225. if obj.UserInputType == Enum.UserInputType.MouseButton2 then
  226. down = true Spin = Vector3.new()
  227. end
  228. end)
  229. UIS.InputEnded:connect(function(obj)
  230. if obj.UserInputType == Enum.UserInputType.MouseButton2 then
  231. Spin = Vector3.new()
  232. end
  233. end) local UpDown = 0
  234. UIS.InputChanged:connect(function(obj) if not down then return end
  235. if obj.UserInputType ~= Enum.UserInputType.MouseMovement then return end
  236. --Spin = Vector3.new(Spin.X-obj.Delta.Y/100,Spin.Y+obj.Delta.X/100,Roll)
  237. if Ground then
  238. Spin = Vector3.new(0,-obj.Delta.X/5,Roll)
  239. UpDown = math.min(math.max(UpDown-obj.Delta.Y/200,-math.pi/2),math.pi/2)
  240. else
  241. Spin = Vector3.new(-obj.Delta.Y/5,-obj.Delta.X/5,Roll)
  242. end
  243. end)
  244.  
  245. local RS = game:GetService("RunService").RenderStepped
  246. while true do
  247. if not game.Workspace:findFirstChild("Roof") then
  248. Roof()
  249. end
  250. local X,Y = 0.5-Mouse.X/Mouse.ViewSizeX,0.5-Mouse.Y/Mouse.ViewSizeY
  251. local offset = CFrame.new()
  252. if Ground then
  253. --offset = CFrame.Angles(Y*math.pi,0,0)
  254. offset = CFrame.Angles(UpDown,0,0)
  255. else
  256. UpDown = 0
  257. end
  258. --Spin = Vector3.new(Y*5,X*5,Roll)
  259. local cf = Torso.CFrame - Torso.Position
  260. BAV.AngularVelocity = cf * Spin
  261. Camera.CoordinateFrame = HRP:GetRenderCFrame() * CFrame.new(0,1.5,0.5) * offset
  262. if grapple and grapto.Parent then
  263. local from = GravPart.Position
  264. local to = grapto.Position
  265. local dist = (from-to).magnitude
  266. local speed = math.min((dist-3)/5,50)*3.25
  267. grapbp1.Velocity = (from-to).unit * speed
  268. if Ground then speed = 0 end
  269. grapbp2.Velocity = (to-from).unit * speed
  270. grapple.Size = Vector3.new(0,0,dist)
  271. grapple.CFrame = CFrame.new(from:lerp(to,0.5),to)
  272. elseif grapple then
  273. destroyGrapple()
  274. end RS:wait()
  275. scanmass(Character)
  276. end
  277. Character.Humanoid.MaxHealth = 5000
  278. wait()
  279. Character.Humanoid.Health = 5000
Add Comment
Please, Sign In to add comment