ManOhMan

Untitled

Sep 29th, 2019
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.15 KB | None | 0 0
  1. --Created with PenguinAnonymous's compiler
  2. --PenguinAnonymous is not responsible for damages caused to your game
  3. --This plugin does not remove things
  4. --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
  5. --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
  6. --Thank you for using my plugin and enjoy :)
  7. --It is free to use
  8. --If you use this plugin to create your own, please give me credit
  9. --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
  10. --Errors:
  11. local runDummyScript = function(f,scri)
  12. local oldenv = getfenv(f)
  13. local newenv = setmetatable({}, {
  14. __index = function(_, k)
  15. if k:lower() == 'script' then
  16. return scri
  17. else
  18. return oldenv[k]
  19. end
  20. end
  21. })
  22. setfenv(f, newenv)
  23. ypcall(function() f() end)
  24. end
  25. cors = {}
  26. mas = Instance.new("Model",game:GetService("Lighting"))
  27. mas.Name = "CompiledModel"
  28. o1 = Instance.new("Tool")
  29. o2 = Instance.new("Part")
  30. o3 = Instance.new("SpecialMesh")
  31. o4 = Instance.new("Sound")
  32. o5 = Instance.new("Script")
  33. o6 = Instance.new("Tool")
  34. o7 = Instance.new("LocalScript")
  35. o8 = Instance.new("Part")
  36. o9 = Instance.new("Sound")
  37. o10 = Instance.new("SpecialMesh")
  38. o11 = Instance.new("Script")
  39. o1.Name = "GravityCoil"
  40. o1.Parent = mas
  41. o1.TextureId = "http://www.roblox.com/asset/?id=16619617"
  42. o1.GripForward = Vector3.new(0, -0, 1)
  43. o1.GripPos = Vector3.new(0, 0, 1)
  44. o1.GripRight = Vector3.new(-1, 0, 0)
  45. o2.Name = "Handle"
  46. o2.Parent = o1
  47. o2.BrickColor = BrickColor.new("Bright yellow")
  48. o2.Position = Vector3.new(-443, 1.6908021, -66)
  49. o2.Rotation = Vector3.new(90, 90, 0)
  50. o2.RotVelocity = Vector3.new(8.56810884e-18, 4.25496731e-20, 4.36816917e-18)
  51. o2.Velocity = Vector3.new(-2.53640294e-18, -0.00776814995, 4.04920626e-18)
  52. o2.Size = Vector3.new(1, 2, 2)
  53. o2.CFrame = CFrame.new(-443, 1.6908021, -66, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  54. o2.BottomSurface = Enum.SurfaceType.Smooth
  55. o2.TopSurface = Enum.SurfaceType.Smooth
  56. o2.Color = Color3.new(0.960784, 0.803922, 0.188235)
  57. o2.Position = Vector3.new(-443, 1.6908021, -66)
  58. o2.Velocity = Vector3.new(-2.53640294e-18, -0.00776814995, 4.04920626e-18)
  59. o3.Parent = o2
  60. o3.MeshId = "http://www.roblox.com/asset/?id=16606212"
  61. o3.Scale = Vector3.new(0.699999988, 0.699999988, 0.699999988)
  62. o3.TextureId = "http://www.roblox.com/asset/?id=16606141"
  63. o3.MeshType = Enum.MeshType.FileMesh
  64. o4.Name = "CoilSound"
  65. o4.Parent = o2
  66. o4.SoundId = "http://www.roblox.com/asset/?id=16619553"
  67. o4.Volume = 1
  68. o5.Name = "GravityCoilScript"
  69. o5.Parent = o1
  70. table.insert(cors,coroutine.create(function()
  71. wait()
  72. runDummyScript(function()
  73. -------- OMG HAX
  74.  
  75. r = game:service("RunService")
  76.  
  77.  
  78. Tool = script.Parent
  79.  
  80. local equalizingForce = 236 / 1.2 -- amount of force required to levitate a mass
  81. local gravity = .9999999999999999 -- things float at > 1
  82.  
  83. local ghostEffect = nil
  84. local massCon1 = nil
  85. local massCon2 = nil
  86.  
  87. function recursiveGetLift(node)
  88. local m = 0
  89. local c = node:GetChildren()
  90. for i=1,#c do
  91. if c[i].className == "Part" then
  92. if c[i].Name == "Handle" then
  93. m = m + (c[i]:GetMass() * equalizingForce * 1) -- hack that makes hats weightless, so different hats don't change your jump height
  94. else
  95. m = m + (c[i]:GetMass() * equalizingForce * gravity)
  96. end
  97. end
  98. m = m + recursiveGetLift(c[i])
  99. end
  100. return m
  101. end
  102.  
  103.  
  104. function onMassChanged(child, char)
  105. print("Mass changed:" .. child.Name .. " " .. char.Name)
  106. if (ghostEffect ~= nil) then
  107. ghostEffect.force = Vector3.new(0, recursiveGetLift(char) ,0)
  108. end
  109. end
  110.  
  111.  
  112.  
  113. function UpdateGhostState(isUnequipping)
  114.  
  115. if isUnequipping == true then
  116. ghostEffect:Remove()
  117. ghostEffect = nil
  118. massCon1:disconnect()
  119. massCon2:disconnect()
  120. else
  121. if ghostEffect == nil then
  122. local char = Tool.Parent
  123. if char == nil then return end
  124. ghostEffect = Instance.new("BodyForce")
  125. ghostEffect.Name = "GravityCoilEffect"
  126. ghostEffect.force = Vector3.new(0, recursiveGetLift(char) ,0)
  127. ghostEffect.Parent = char.Head
  128. ghostChar = char
  129. massCon1 = char.ChildAdded:connect(function(child) onMassChanged(child, char) end)
  130. massCon2 = char.ChildRemoved:connect(function(child) onMassChanged(child, char) end)
  131. end
  132. end
  133.  
  134.  
  135. end
  136.  
  137.  
  138.  
  139. function onEquipped()
  140. Tool.Handle.CoilSound:Play()
  141. UpdateGhostState(false)
  142. end
  143.  
  144. function onUnequipped()
  145. UpdateGhostState(true)
  146. end
  147.  
  148.  
  149. script.Parent.Equipped:connect(onEquipped)
  150. script.Parent.Unequipped:connect(onUnequipped)
  151.  
  152.  
  153.  
  154.  
  155.  
  156. end,o5)
  157. end))
  158. o6.Name = "SpeedCoil"
  159. o6.Parent = mas
  160. o6.TextureId = "http://www.roblox.com/asset/?id=99170415"
  161. o6.GripForward = Vector3.new(-1.16108947e-15, -1.16108926e-15, -1)
  162. o6.GripPos = Vector3.new(-3.39994735e-08, 3.39994877e-08, -0.99999994)
  163. o6.GripRight = Vector3.new(-0.707106709, 0.707106829, 0)
  164. o6.GripUp = Vector3.new(-0.707106829, -0.707106709, -1.64202843e-15)
  165. o7.Parent = o6
  166. table.insert(cors,coroutine.create(function()
  167. wait()
  168. runDummyScript(function()
  169. --Made by Stickmasterluke
  170.  
  171.  
  172. sp=script.Parent
  173.  
  174.  
  175. function waitfor(a,b)
  176. while a:FindFirstChild(b)==nil do
  177. a.ChildAdded:wait()
  178. end
  179. return a:FindFirstChild(b)
  180. end
  181.  
  182. speedboostscript=waitfor(sp,"SpeedBoostScript")
  183.  
  184. function Equipped()
  185. if sp.Parent:FindFirstChild("SpeedBoostScript")==nil then
  186. local s=speedboostscript:clone()
  187. local tooltag=Instance.new("ObjectValue")
  188. tooltag.Name="ToolTag"
  189. tooltag.Value=sp
  190. tooltag.Parent=s
  191. s.Parent=sp.Parent
  192. s.Disabled=false
  193. local sound=sp.Handle:FindFirstChild("CoilSound")
  194. if sound~=nil then
  195. sound:Play()
  196. end
  197. end
  198. end
  199.  
  200. sp.Equipped:connect(Equipped)
  201.  
  202. end,o7)
  203. end))
  204. o8.Name = "Handle"
  205. o8.Parent = o6
  206. o8.BrickColor = BrickColor.new("Bright red")
  207. o8.Position = Vector3.new(147.670013, 47.4419022, 122.68)
  208. o8.Rotation = Vector3.new(0, 0, 90)
  209. o8.Locked = true
  210. o8.FormFactor = Enum.FormFactor.Custom
  211. o8.Size = Vector3.new(1.29999995, 1.29999995, 2.4000001)
  212. o8.CFrame = CFrame.new(147.670013, 47.4419022, 122.68, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  213. o8.BottomSurface = Enum.SurfaceType.Smooth
  214. o8.TopSurface = Enum.SurfaceType.Smooth
  215. o8.Color = Color3.new(0.768628, 0.156863, 0.109804)
  216. o8.Position = Vector3.new(147.670013, 47.4419022, 122.68)
  217. o9.Name = "CoilSound"
  218. o9.Parent = o8
  219. o9.SoundId = "http://www.roblox.com/asset/?id=99173388"
  220. o9.Volume = 1
  221. o10.Parent = o8
  222. o10.MeshId = "http://www.roblox.com/asset/?id=16606212"
  223. o10.Scale = Vector3.new(0.699999988, 0.699999988, 0.699999988)
  224. o10.TextureId = "http://www.roblox.com/asset/?id=99170547"
  225. o10.MeshType = Enum.MeshType.FileMesh
  226. o11.Name = "SpeedBoostScript"
  227. o11.Parent = o6
  228. o11.Disabled = true
  229. table.insert(cors,coroutine.create(function()
  230. wait()
  231. runDummyScript(function()
  232. --Made by Stickmasterluke
  233.  
  234.  
  235. sp=script.Parent
  236.  
  237. speedboost=1 --100% speed bonus
  238. speedforsmoke=10 --smoke apears when character running >= 10 studs/second.
  239.  
  240. function waitfor(a,b,c)
  241. local c=c or 5*60
  242. local d=tick()+c
  243. while a:FindFirstChild(b)==nil and tick()<=d do
  244. wait()
  245. end
  246. return a:FindFirstChild(b)
  247. end
  248.  
  249. local tooltag=waitfor(script,"ToolTag",2)
  250. if tooltag~=nil then
  251. local tool=tooltag.Value
  252. local h=sp:FindFirstChild("Humanoid")
  253. if h~=nil then
  254. h.WalkSpeed=16+16*speedboost
  255. local t=sp:FindFirstChild("Torso")
  256. if t~=nil then
  257. smokepart=Instance.new("Part")
  258. smokepart.FormFactor="Custom"
  259. smokepart.Size=Vector3.new(0,0,0)
  260. smokepart.TopSurface="Smooth"
  261. smokepart.BottomSurface="Smooth"
  262. smokepart.CanCollide=false
  263. smokepart.Transparency=1
  264. local weld=Instance.new("Weld")
  265. weld.Name="SmokePartWeld"
  266. weld.Part0=t
  267. weld.Part1=smokepart
  268. weld.C0=CFrame.new(0,-3.5,0)*CFrame.Angles(math.pi/4,0,0)
  269. weld.Parent=smokepart
  270. smokepart.Parent=sp
  271. smoke=Instance.new("Smoke")
  272. smoke.Enabled=t.Velocity.magnitude>speedforsmoke
  273. smoke.RiseVelocity=2
  274. smoke.Opacity=.25
  275. smoke.Size=.5
  276. smoke.Parent=smokepart
  277. h.Running:connect(function(speed)
  278. if smoke and smoke~=nil then
  279. smoke.Enabled=speed>speedforsmoke
  280. end
  281. end)
  282. end
  283. end
  284. while tool~=nil and tool.Parent==sp and h~=nil do
  285. sp.ChildRemoved:wait()
  286. end
  287. local h=sp:FindFirstChild("Humanoid")
  288. if h~=nil then
  289. h.WalkSpeed=16
  290. end
  291. end
  292.  
  293. if smokepart~=nil then
  294. smokepart:remove()
  295. end
  296. script:remove()
  297.  
  298.  
  299.  
  300. end,o11)
  301. end))
  302. mas.Parent = workspace
  303. mas:MakeJoints()
  304. local mas1 = mas:GetChildren()
  305. for i=1,#mas1 do
  306. mas1[i].Parent = workspace
  307. ypcall(function() mas1[i]:MakeJoints() end)
  308. end
  309. mas:Destroy()
  310. for i=1,#cors do
  311. coroutine.resume(cors[i])
  312. end
  313.  
  314. game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
  315. game:GetService("Lighting").Brightness = 2
  316. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  317. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  318. game:GetService("Lighting").GlobalShadows = true
  319. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.501961, 0.501961, 0.501961)
  320. game:GetService("Lighting").Outlines = false
  321. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  322. game:GetService("Lighting").TimeOfDay = "14:00:00"
  323. game:GetService("Lighting").FogColor = Color3.new(0.752941, 0.752941, 0.752941)
  324. game:GetService("Lighting").FogEnd = 100000
  325. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment