ManOhMan

Untitled

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