NOOB-WHO-SAY-FUCK

POTATOS

Jun 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.54 KB | None | 0 0
  1. ply = game.Players.LocalPlayer
  2. char = ply.Character
  3. ------TOOOOOLS------
  4. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent)
  5. c = Instance.new("Part",m)
  6. c.TopSurface,c.BottomSurface = 0,0
  7. c.formFactor = "Custom"
  8. c.Size = Vector3.new(x,y,z)
  9. c.BrickColor = BrickColor.new(color)
  10. c.Transparency = transparency
  11. c.CanCollide = cancollide
  12. if anchored ~= nil then c.Anchored = anchored end
  13. if parent ~= nil then c.Parent = parent end
  14. return c
  15. end
  16. ,
  17. ["R"] = function(part,x,y,z)
  18. if part == "lleg" then
  19. legw[1].C1 = CFrame.new(.5,-1.5,0)*ang(x,y,z)
  20. elseif part == "rleg" then
  21. legw[2].C1 = CFrame.new(-.5,-1.5,0)*ang(x,y,z)
  22. elseif part == "larm" then
  23. armw[1].C1 = CFrame.new(1.5,.5,0)*ang(x,y,z)
  24. elseif part == "rarm" then
  25. armw[2].C1 = CFrame.new(-1.5,.5,0)*ang(x,y,z)
  26. end
  27. end
  28. ,
  29. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  30. ,
  31. ["W"] = function(part0,part1,x,y,z,rx,ry,rz)
  32. w = Instance.new("Weld",m)
  33. w.Part0,w.Part1 = part0,part1
  34. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  35. return w
  36. end
  37. ,
  38. ["BG"] = function(parent)
  39. local c = Instance.new("BodyGyro",parent)
  40. c.P = 20e+003
  41. c.cframe = parent.CFrame
  42. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  43. return c
  44. end
  45. ,
  46. ["BP"] = function(parent,position)
  47. local bp = Instance.new("BodyPosition",parent)
  48. bp.maxForce = Vector3.new()*math.huge
  49. bp.position = position
  50. return bp
  51. end
  52. ,
  53. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  54. f = Instance.new("Fire",parent)
  55. f.Size = size
  56. f.Heat = heat
  57. if enabled ~= nil then f.Enabled = enabled end
  58. if color ~= nil then f.Color = BrickColor.new(color).Color end
  59. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  60. return f
  61. end
  62. ,
  63. ["Track"] = function(obj,s,t,lt)
  64. coroutine.resume(coroutine.create(function()
  65. while track do
  66. old = obj.Position
  67. wait()
  68. new = obj.Position
  69. mag = (old-new).magnitude
  70. dist = (old+new)/2
  71. ray = T.P(s,mag+.2,s,obj.Color,t,false,true)
  72. Instance.new("CylinderMesh",ray)
  73. ray.CFrame = CFrame.new(dist,old)*ang(math.pi/2,0,0)
  74. game:GetService("Debris"):AddItem(ray,lt)
  75. end
  76. end)) end,
  77. ["D"] = function(hit) if hit.Parent:findFirstChild("Humanoid") then h=hit.Parent.Humanoid h.Health = h.Health -dmg end end
  78. ,
  79. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  80. if meshid == "cylinder" then
  81. mesh = Instance.new("CylinderMesh",parent)
  82. mesh.Scale = Vector3.new(x,y,z)
  83. return mesh
  84. else
  85. mesh = Instance.new("SpecialMesh",parent)
  86. if meshid ~= "sphere" then
  87. if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
  88. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  89. end
  90. else mesh.MeshType = 3 end
  91. mesh.Scale = Vector3.new(x,y,z)
  92. if meshtexture ~= nil then
  93. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  94. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  95. end
  96. return mesh
  97. end
  98. end
  99. }
  100. --------------------------------------------------
  101. meshids = {["blast"] = 20329976, ["penguin"] = 15853464, ["ring"] = 3270017,
  102. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  103. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  104. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,
  105. ["fish"] = 31221717, ["coffee"] = 15929962}---some meshids
  106. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,
  107. ["monster"] = 33366441}
  108. cfn,ang = CFrame.new,CFrame.Angles
  109. v3n = Vector3.new
  110. ---MATH SHORTENINGS---
  111. M = {["R"] = function(a,b) return math.random(a,b) end,
  112. ["Cos"] = function(a) return math.cos(a) end,
  113. ["Sin"] = function(a) return math.sin(a) end,
  114. ["D"] = function(a) return math.rad(a) end
  115. }
  116. pcall(function() char:FindFirstChild("DFFG"):Remove() end)
  117. m = Instance.new("Model",char)
  118. m.Name = "DFFG"
  119. torso = char.Torso
  120. local body = {}
  121. body.A = {["L"] = char["Left Arm"],["R"] = char["Right Arm"]}
  122. body.L = {["L"] = char["Left Leg"],["R"] = char["Right Leg"]}
  123. body.S = {["L"] = torso["Left Shoulder"],["R"] = torso["Right Shoulder"]}
  124. body.H = {["L"] = torso["Left Hip"],["R"] = torso["Right Hip"]}
  125. body.Head = char.Head
  126. pp = T.P(.5,1,.5,"Grime",0,false,false)
  127. T.W(pp,torso,0,.5,1,math.pi/2,0,0)
  128. p = T.P(.5,2,.5,"Grime",0,false,false)
  129. T.FM(p,"cylinder",1,1,1)
  130. T.W(p,pp,0,.5,0,math.pi/2,0,0)
  131. b1 = T.P(.5,.5,.5,"Alder",0,false,false)
  132. T.FM(b1,"sphere",1,1,1)
  133. T.W(b1,p,0,1,0,0,0,0)
  134. b2 = T.P(.5,.5,.5,"Alder",0,false,false)
  135. T.FM(b2,"sphere",1,1,1)
  136. T.W(b2,p,0,-1,0,0,0,0)
  137. fire = T.F(b1,5,10,"New Yeller","White",false)
  138. --------WINGS-------
  139. p2 = T.P(.2,2,.2,"Dusty Rose",0,false,false)
  140. T.W(p2,b1,-1,.1,0,0,0,math.pi/2,0)
  141. b2 = T.P(.5,.5,.5,"New Yeller",0,false,false)
  142. T.FM(b2,"sphere",1,1,1)
  143. T.W(b2,p2,0,1,0,0,0,-math.pi/2)
  144. fire1 = T.F(b2,1,20,"Alder","White",false)
  145. p3 = T.P(.2,2,.2,"Dusty Rose",0,false,false)
  146. T.W(p3,p2,-1.2,1,0,0,0,math.pi/2,0)
  147. p4 = T.P(.2,2,.2,"Dusty Rose",0,false,false)
  148. T.W(p4,p3,-1,1,0,0,0,math.pi/2,0)
  149. b2 = T.P(.5,.5,.5,"Alder",0,false,false)
  150. T.FM(b2,"sphere",1,1,1)
  151. T.W(b2,p4,0,-1,0,0,0,0)
  152. p2 = T.P(.2,2,.2,"Dusty Rose",0,false,false)
  153. T.W(p2,b1,1,.1,0,0,0,math.pi/2,0)
  154. b2 = T.P(.5,.5,.5,"New Yeller",0,false,false)
  155. T.FM(b2,"sphere",1,1,1)
  156. T.W(b2,p2,0,-1,0,0,0,-math.pi/2)
  157. fire2 = T.F(b2,1,20,"Alder","White",false)
  158. p3 = T.P(.2,2,.2,"Dusty Rose",0,false,false)
  159. T.W(p3,p2,-1.2,-1,0,0,0,math.pi/2,0)
  160. p4 = T.P(.2,2,.2,"Dusty Rose",0,false,false)
  161. T.W(p4,p3,1,1,0,0,0,math.pi/2,0)
  162. b2 = T.P(.5,.5,.5,"Alder",0,false,false)
  163. T.FM(b2,"sphere",1,1,1)
  164. T.W(b2,p4,0,1,0,0,0,0)
  165. ----------------------------
  166. hop = Instance.new("HopperBin",ply.Backpack)
  167. hop.Name = "Fly"
  168. bp = nil
  169. bg = nil
  170. sparkling = false
  171. T.C(function()
  172. while true do
  173. wait()
  174. if sparkling then
  175. local c = T.P(1,1,1,"White",1,true,false)
  176. c.CFrame = cfn(b1.Position) c:BreakJoints()
  177. c.Velocity = v3n(M.R(0,100),M.R(0,100),M.R(0,100))
  178. Instance.new("Sparkles",c)
  179. box = Instance.new("SelectionBox",c)
  180. box.Adornee = c
  181. box.Color = BrickColor.new("White")
  182. game:GetService("Debris"):AddItem(c,.5)
  183. end
  184. end
  185. end)
  186. function sidefires(a)
  187. if a == 1 then
  188. fire1.Enabled,fire2.Enabled = true,true
  189. elseif a == 0 then
  190. fire1.Enabled,fire2.Enabled = false,false
  191. end
  192. end
  193. jails = {}
  194. function jail(a)
  195. r = 3
  196. local tor = a.Parent:FindFirstChild("Torso")
  197. if tor ~= nil then
  198. local bp =T.BP(tor,tor.Position)
  199. local cf = a.Parent.Torso.CFrame
  200. local modl = Instance.new("Model",m)
  201. for i = 1,360,20 do
  202. wait()
  203. c = T.P(2,6,2,"Black",.5,true,true,modl)
  204. T.FM(c,"cylinder",1,1,1)
  205. c.CFrame = cf + v3n(M.Cos(M.D(i))*r,0,M.Sin(M.D(i))*r)
  206. end
  207. for i = 1,180,10 do
  208. wait()
  209. p = T.P(1,1,9,"Nougat",.5,true,true,modl)
  210. p.CFrame = (cf * cfn(0,3,0))*ang(0,M.D(i),0)
  211. end
  212. table.insert(jails,modl)
  213. game:GetService("Debris"):AddItem(modl,math.huge)
  214. bp:Remove()
  215. end
  216. end
  217. function unjail()
  218. for i,v in pairs(jails) do v:Remove() table.Remove(jails,i) end
  219. end
  220. function trip(a)
  221. local tor = a.Parent:FindFirstChild("Torso")
  222. if tor ~= nil then
  223. local bg2 = T.BG(tor)
  224. bg2.cframe = bg2.cframe * ang(math.pi,0,0)
  225. local bp2 = T.BP(tor,tor.Position + Vector3.new(0,5,0))
  226. for i = 1,2 do
  227. for i = -10,10 do
  228. wait()
  229. bg2.cframe = bg2.cframe * ang(0,0,M.D(i))
  230. p = T.P(1,.3,1,"New Yeller",true,false)
  231. T.FM(p,"cylinder",1,1,1)
  232. p.CFrame = tor.CFrame * cfn(0,2,0)
  233. game:GetService("Debris"):AddItem(p,1)
  234. end
  235. for i = 10,-10,-1 do
  236. wait()
  237. bg2.cframe = bg2.cframe * ang(0,0,M.D(i))
  238. p = T.P(1,.3,1,"New Yeller",true,false)
  239. T.FM(p,"cylinder",1,1,1)
  240. p.CFrame = tor.CFrame * cfn(0,2,0)
  241. game:GetService("Debris"):AddItem(p,1)
  242. end
  243. end
  244. bp2:Remove() bg2:Remove()
  245. end
  246. end
  247. hop.Selected:connect(function(mouse)
  248. mouse.Button1Up:connect(function() holding = false end)
  249. mouse.KeyDown:connect(function(key)
  250. if key == "f" then
  251. if bp == nil then
  252. sidefires(1)
  253. bp = T.BP(torso,torso.Position)
  254. bg = T.BG(torso)
  255. bg.Parent = nil
  256. elseif bp ~= nil then
  257. sidefires(0)
  258. bp:Remove() bp = nil
  259. bg:Remove() bg = nil
  260. end
  261. elseif key == "g" then jail(mouse.Target)
  262. elseif key == "r" then trip(mouse.Target)
  263. elseif key == "t" then unjail()
  264. end
  265. end)
  266. mouse.Button1Down:connect(function()
  267. if bp ~= nil then
  268. holding = true
  269. bg.Parent = torso
  270. char.Animate.Disabled = true
  271. for i,v in pairs(body.S) do v.DesiredAngle = 0 end
  272. for i,v in pairs(body.H) do v.DesiredAngle = 0 end
  273. body.S.R.DesiredAngle = math.pi
  274. sidefires(0)
  275. fire.Enabled = true
  276. sparkling = true
  277. while holding == true do
  278. wait()
  279. unit = (torso.Position-mouse.hit.p).unit
  280. bp.position = torso.Position + unit*-30
  281. bg.cframe = cfn(torso.Position,mouse.hit.p)*ang(-math.pi/2,0,0)
  282. end
  283. sparkling = false
  284. sidefires(1)
  285. bg.Parent = nil
  286. fire.Enabled = false
  287. char.Animate.Disabled = false
  288. end
  289. end)
  290. end)
Add Comment
Please, Sign In to add comment