Dark_EccentricYT

Untitled

May 24th, 2018
844
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.59 KB | None | 0 0
  1. ply = game.Players.LocalPlayer
  2. char = ply.Character
  3. torso = char.Torso
  4. attacking = false
  5. track = false
  6. curcam = Workspace.CurrentCamera
  7. name = 'KFM'
  8.  
  9. pcall(function() char:FindFirstChild("legetony"):Remove() char:FindFirstChild("Belt"):Remove() end)
  10. m = Instance.new("Model",char) m.Name = "legetony"
  11.  
  12. cfn,ang = CFrame.new,CFrame.Angles
  13. v3n = Vector3.new
  14.  
  15. rs = torso["Right Shoulder"]
  16. ls = torso["Left Shoulder"]
  17. rh = torso["Right Hip"]
  18. lh = torso["Right Hip"]
  19. neck = torso["Neck"]
  20. rw,lw = nil,nil
  21. rhw,lhw = nil,nil
  22. local orgc1 = rs.C1
  23.  
  24. rarm = char["Right Arm"]
  25. larm = char["Left Arm"]
  26. rleg = char["Right Leg"]
  27. lleg = char["Left Leg"]
  28.  
  29. normposr = cfn(1.5,.5,0)
  30. normposl = cfn(-1.5,.5,0)
  31. normposr2 = cfn(-.5,-1.5,0)
  32. normposl2 = cfn(.5,-1.5,0)
  33. normposn = CFrame.new(0,1,0,-1,-0,-0,0,0,1,0,1,0)
  34.  
  35. holdpos = normposr*ang(math.pi/2,0,0)
  36. holdpos2 = normposl*ang(math.pi/2,0,0)
  37.  
  38. lock = {["R"] =
  39. function(a)
  40. if a == 1 then
  41. rabrick = T.P(1,1,1,"White",1,false,false)
  42. rw = T.W(rabrick,torso,1.5,.5,0,0,0,0)
  43. T.W(rarm,rabrick,0,-.5,0,0,0,0)
  44. elseif a == 2 then
  45. rlbrick = T.P(1,1,1,"White",1,false,false)
  46. rhw = T.W(rlbrick,torso,-.5,-1.5,0,0,0,0)
  47. T.W(rleg,rlbrick,0,-.5,0,0,0,0)
  48. elseif a == 0 then
  49. rs.Parent = torso
  50. rw.Parent = nil
  51. rabrick:Destroy() rabrick = nil
  52. elseif a == -1 then
  53. rhw.Parent = nil
  54. rh.Parent = torso
  55. rlbrick:Destroy() rlbrick = nil
  56. end
  57. end
  58. , ["L"] = function(a)
  59. if a == 1 then
  60. labrick = T.P(1,1,1,"White",1,false,false)
  61. lw = T.W(labrick,torso,-1.5,.5,0,0,0,0)
  62. T.W(larm,labrick,0,-.5,0,0,0,0)
  63. elseif a == 2 then
  64. llbrick = T.P(1,1,1,"White",1,false,false)
  65. lhw = T.W(llbrick,torso,.5,-1.5,0,0,0,0)
  66. T.W(lleg,llbrick,0,-.5,0,0,0,0)
  67. elseif a == 0 then
  68. ls.Parent = torso
  69. lw.Parent = nil
  70. labrick:Destroy() labrick = nil
  71. elseif a == -1 then
  72. lhw.Parent = nil
  73. lh.Parent = torso
  74. llbrick:Destroy() llbrick = nil
  75. end
  76. end}
  77.  
  78. ------TOOOOOLS------
  79. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  80. if typee ~= nil then
  81. c = Instance.new("WedgePart",m)
  82. else
  83. c = Instance.new("Part",m)
  84. end
  85. c.TopSurface,c.BottomSurface = 0,0
  86. c.formFactor = "Custom"
  87. c.Size = Vector3.new(x,y,z)
  88. if color ~= "random" then
  89. c.BrickColor = BrickColor.new(color)
  90. else c.BrickColor = BrickColor:random() end
  91. c.Transparency = transparency
  92. c.CanCollide = cancollide
  93. if anchored ~= nil then c.Anchored = anchored end
  94. if parent ~= nil then c.Parent = parent end
  95. return c
  96.  
  97. end
  98. ,
  99. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  100. ,
  101. ["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
  102. w = Instance.new("Motor",m)
  103. if parent ~= nil then w.Parent = parent end
  104. w.Part0,w.Part1 = part0,part1
  105. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  106. return w
  107. end
  108. ,
  109. ["BG"] = function(parent)
  110. local c = Instance.new("BodyGyro",parent)
  111. c.P = 20e+003
  112. c.cframe = parent.CFrame
  113. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  114. return c
  115. end
  116. ,
  117. ["BP"] = function(parent,position)
  118. local bp = Instance.new("BodyPosition",parent)
  119. bp.maxForce = Vector3.new()*math.huge
  120. bp.position = position
  121. return bp
  122. end
  123. ,
  124. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  125. f = Instance.new("Fire",parent)
  126. f.Size = size
  127. f.Heat = heat
  128. if enabled ~= nil then f.Enabled = enabled end
  129. if color ~= nil then f.Color = BrickColor.new(color).Color end
  130. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  131. return f
  132. end
  133. ,
  134. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  135. if meshid == "cylinder" then
  136. mesh = Instance.new("CylinderMesh",parent)
  137. mesh.Scale = Vector3.new(x,y,z)
  138. return mesh
  139. else
  140. mesh = Instance.new("SpecialMesh",parent)
  141.  
  142. if meshid ~= "sphere" then
  143. if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
  144. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  145. end
  146.  
  147. else mesh.MeshType = 3 end
  148.  
  149. mesh.Scale = Vector3.new(x,y,z)
  150.  
  151. if meshtexture ~= nil then
  152. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  153. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  154.  
  155. end
  156.  
  157. return mesh
  158. end
  159. end
  160. ,
  161. ["Track"] = function(obj,s,t,lt,color,fade)
  162. coroutine.resume(coroutine.create(function()
  163. while track do
  164. old = obj.Position
  165. wait()
  166. new = obj.Position
  167.  
  168. mag = (old-new).magnitude
  169. dist = (old+new)/2
  170.  
  171. local ray = T.P(s,mag+.2,s,obj.Color,t,false,true)
  172. Instance.new("CylinderMesh",ray)
  173. ray.CFrame = CFrame.new(dist,old)*ang(math.pi/2,0,0)
  174. if fade ~= nil then
  175. delay(lt,function()
  176. for i = t,1,fade do wait() ray.Transparency = i end ray:Remove() end)
  177. else
  178. game:GetService("Debris"):AddItem(ray,lt)
  179. end
  180. if color ~= nil then ray.BrickColor = BrickColor.new(color) end
  181.  
  182. end
  183. end)) end
  184. }
  185. --------------------------------------------------
  186. ----------------DAMAGE FUNCTION--------------------
  187. function damage(hit,amount,show,del,poikkeus)
  188. for i,v in pairs(hit:GetChildren()) do
  189. if v:IsA("Humanoid") and v.Parent ~= char then
  190.  
  191. amo = 0
  192. function showa(p)
  193. if show == true then
  194. for i,o in pairs(p:GetChildren()) do
  195. if o:IsA("BillboardGui") and o.Name == "satuttava" then
  196. amo = amo+1
  197. end end
  198.  
  199.  
  200. local bbg = Instance.new("BillboardGui",p)
  201. bbg.Adornee = p.Torso
  202. bbg.Name = "satuttava"
  203. bbg.Size = UDim2.new(2,0,2,0)
  204. bbg.StudsOffset = Vector3.new(0,6+amo*2,0)
  205.  
  206. local box = Instance.new("TextLabel",bbg)
  207. box.Size = UDim2.new(1,0,1,0)
  208. box.BackgroundColor = BrickColor.new("White")
  209. box.Text = amount
  210. box.BackgroundTransparency = .5
  211. if amount == 0 then box.Text = "K.O" end
  212. box.Position = UDim2.new(0,0,0,0)
  213. box.TextScaled = true
  214. game:GetService("Debris"):AddItem(bbg,.5)
  215. end
  216. end
  217.  
  218. function dame(q)
  219. if poikkeus ~= nil then
  220. for _,u in pairs(poikkeus) do
  221. if q.Parent.Name ~= u then
  222. showa(q)
  223. if amount == 0 then q.Parent:BreakJoints() end
  224. q.Health = q.Health - amount
  225. end
  226. end
  227. elseif poikkeus == nil then
  228. if amount == 0 then q.Parent:BreakJoints() end
  229. q.Health = q.Health - amount
  230. showa(q)
  231. end
  232. end
  233.  
  234. if del ~= nil then
  235. local find = v.Parent:FindFirstChild("hitted")
  236. if find == nil then
  237. dame(v)
  238. val = Instance.new("BoolValue",v.Parent)val.Name="hitted"
  239. game:GetService("Debris"):AddItem(val,del)
  240. end
  241. elseif del == nil then
  242. dame(v)
  243.  
  244. end
  245.  
  246. end
  247. end
  248. end
  249. -----------------------------------------------------------------
  250.  
  251. ------MESHIDS---
  252. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  253. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  254. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  255. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  256. ["ramen"] = 19380188}---some meshids
  257. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
  258. -----------------
  259.  
  260. ---MATH SHORTENINGS---
  261. M = {["R"] = function(a,b) return math.random(a,b) end,
  262. ["Cos"] = function(a) return math.cos(a) end,
  263. ["Sin"] = function(a) return math.sin(a) end,
  264. ["D"] = function(a) return math.rad(a) end
  265. }
  266.  
  267. for i,v in pairs(char:GetChildren()) do
  268. if v:IsA("Clothing") or v:IsA("Hat") then v:Remove()
  269. end end
  270.  
  271. col = char:FindFirstChild("Body Colors")
  272. if col == nil then col = Instance.new("BodyColors",char) end
  273. collist = {
  274. {'LeftLegColor',"Deep blue"},
  275. {'RightLegColor',"Deep blue"},
  276. {'TorsoColor',"Cool yellow"},
  277. {'LeftArmColor',"Cool yellow"},
  278. {'RightArmColor',"Cool yellow"},
  279. }
  280. for i,v in pairs(collist) do
  281. col[v[1]] = BrickColor.new(v[2])
  282. end
  283.  
  284. bracs = Instance.new("Model",m)
  285. for i,v in pairs({rarm,larm}) do
  286. b1 = T.P(1.1,.3,1.1,'Brown',0,false,false,bracs)
  287. b1.Material = 'DiamondPlate' b1.Name = 'a'
  288. T.W(b1,v,0,-.5,0,0,0,0)
  289. p = T.P(.3,.4,.3,'Cyan',0,false,false,bracs) T.W(p,b1,0,0,.55,0,0,0)
  290. p = T.P(.3,.4,.3,'Cyan',0,false,false,bracs) T.W(p,b1,0,0,-.55,0,0,0)
  291. p = T.P(.3,.4,.3,'Cyan',0,false,false,bracs) T.W(p,b1,.55,0,0,0,math.pi/2,0)
  292. p = T.P(.3,.4,.3,'Cyan',0,false,false,bracs) T.W(p,b1,-.55,0,0,0,math.pi/2,0)
  293. for i,v in pairs(bracs:children()) do if v.Name ~= 'a' then v.Material = 'Ice' end end
  294. end
  295.  
  296. --------MAKING--------------------
  297. h1 = T.P(1.5,1.5,1.5,'Cool yellow',0,false,false)
  298. T.FM(h1,'sphere',1,1,1)
  299. T.W(h1,char.Head,0,0,0,0,0,0)
  300.  
  301. e1 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e1,'sphere',1,1,1)
  302. e2 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e2,'sphere',1,1,1)
  303. e1w=T.W(e1,h1,.35,0,-.55,0,0,0) T.W(e2,h1,-.35,0,-.55,0,0,0)
  304.  
  305. dec = Instance.new("Decal")
  306. dec.Face = 'Front'
  307. dec.Texture = "http://www.roblox.com/asset/?id=58535182"
  308.  
  309. b2 = T.P(2.1,.5,1.1,'White',0,false,false)
  310. T.W(b2,torso,0,-1,0,0,0,0)
  311.  
  312. char.Head.Transparency = 1
  313. -----------------------------------
  314.  
  315. function colorslide(obj,prop,scol,ecol,timme,override)
  316. if scol == 'cur' then scol3 = obj.BrickColor.Color else
  317. scol3 = BrickColor.new(scol).Color
  318. end
  319. ecol3 = BrickColor.new(ecol).Color
  320.  
  321. for i = 0,1,timme do
  322. wait()
  323. pos = v3n(scol3.r,scol3.g,scol3.b):Lerp(v3n(ecol3.r,ecol3.g,ecol3.b),i)
  324. obj[prop] = Color3.new(pos.x,pos.y,pos.z)
  325. end
  326.  
  327. end
  328.  
  329. function checkplayers(pos,radius,what)
  330. tab = {}
  331. for i,v in pairs(Workspace:GetChildren()) do
  332. if v:IsA("Model") and v ~= char then
  333. for _,q in pairs(v:GetChildren()) do
  334. if q:IsA("Humanoid") then
  335. if (q.Torso.Position-pos).magnitude <= radius then
  336. if what == 'char' then table.insert(tab,q.Parent)
  337. elseif what == 'humanoid' then table.insert(tab,q)
  338. end
  339. end end end end end
  340. return tab
  341. end
  342.  
  343. function rage()
  344. tyu = cfn(0,.2,-.5)
  345. lock.R(1) lock.L(1)
  346. neck.C0 = normposn
  347. for i = 0,140,10 do
  348. wait()
  349. rw.C1 = (normposr*tyu)*ang(M.D(i),0,M.D(i/(140/-50)))
  350. lw.C1 = (normposl*tyu)*ang(M.D(i),0,M.D(i/(140/50)))
  351. neck.C0 = normposn*ang(M.D(i/(140/30)),0,0)
  352. end
  353.  
  354. wait(1)
  355.  
  356. for i = 140,50,-20 do
  357. wait()
  358. rw.C1 = (normposr)*ang(M.D(-i),0,M.D(i))
  359. lw.C1 = (normposl)*ang(M.D(-i),0,M.D(-i))
  360. end
  361. neck.C0 = normposn*ang(M.D(-30),0,0)
  362.  
  363. fire = T.F(torso,30,30,'Bright red','Magenta')
  364.  
  365. ef = T.P(1,1,1,'Black',0,false,false)
  366. ew = T.W(ef,torso,0,0,0,0,0,0,ef)
  367. msh = T.FM(ef,'sphere',1,1,1)
  368. for i = 0,20 do wait() ef.Transparency = i/20 msh.Scale = v3n(i,i,i)
  369. T.C(function()
  370. tabb = checkplayers(ef.Position,20,'char')
  371. if #tabb > 0 then
  372. for i,v in pairs(tabb) do damage(v,10,true,.2) end
  373. end
  374. end)
  375. end
  376. msh:Remove()
  377.  
  378. for i = 30,8,-1 do
  379. wait() fire.Size = i
  380. end
  381. colorslide(fire,'Color','Bright red','Deep blue',.05)
  382.  
  383. lock.R(0) lock.L(0) neck.C0 = normposn
  384.  
  385. end
  386.  
  387. hop = Instance.new("HopperBin",ply.Backpack)
  388. hop.Name = name
  389.  
  390. holdpos = normposr*ang(math.pi/2,0,0)
  391. port,port2,bol,boltime = nil,nil,false,1
  392.  
  393. function hide()
  394. if char.Parent ~= curcam then
  395. char.Parent = curcam
  396. hop.Name = name..'(h)'
  397. else char.Parent = Workspace
  398. hop.Name = name
  399. end
  400. end
  401.  
  402. function makeport1()
  403. if not port then --- Blue portal
  404. circle()
  405. port = Instance.new("Model",Workspace)
  406. port.Name = 'omakotikullankallis'
  407. ring = T.P(1,1,1,'Deep blue',0,false,true,port) T.FM(ring,'ring',4,4,1)
  408. ring.CFrame = torso.CFrame * cfn(0,0,-4)
  409. mir = T.P(3.5,.1,3.5,ring.BrickColor.Name,.5,false,true,port) T.FM(mir,'cylinder',1,1,1)
  410. mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
  411. mir.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
  412. if hum ~= nil and hum.Parent == char and port2 and not bol then bol = true
  413. hit.Parent:MoveTo(mir2.Position) wait(boltime) bol = false
  414. end end) ---- On touch event for blue portal
  415.  
  416. elseif port then ring.CFrame = torso.CFrame * cfn(0,0,-4)
  417. mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
  418.  
  419. end
  420. end
  421.  
  422. function makeport2()
  423. if not port2 then
  424. circle()
  425. port2 = Instance.new("Model",Workspace)
  426. port2.Name = 'omakotikullankallis'
  427. ring2 = T.P(1,1,1,'Neon orange',0,false,true,port2) T.FM(ring2,'ring',4,4,1)
  428. ring2.CFrame = torso.CFrame * cfn(0,0,-4)
  429. mir2 = T.P(3.5,.1,3.5,ring2.BrickColor.Name,.5,false,true,port2) T.FM(mir2,'cylinder',1,1,1)
  430. mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
  431.  
  432. mir2.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
  433. if hum ~= nil and hum.Parent == char and port and not bol then bol = true
  434. hit.Parent:MoveTo(mir.Position) wait(boltime) bol = false
  435. end end) ---- On touch event for orange portal
  436.  
  437. elseif port2 then ring2.CFrame = torso.CFrame * cfn(0,0,-4)
  438. mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
  439. end
  440. end
  441. holdpos2 = normposl*ang(math.pi/2,0,0)
  442. function punch()
  443. fires = {}
  444. lock.R(1) lock.L(1)
  445. for i,v in pairs(bracs:children()) do
  446. if v.Name ~= 'a' then table.insert(fires,T.F(v,.5,.5,'Cyan','Black')) end
  447. end
  448. sticks = Instance.new("Model",m)
  449.  
  450. rr = .5
  451. for _,v in pairs({rarm,larm}) do
  452. for _,pos in pairs({ {0,-rr}, {0,rr}, {rr,0}, {-rr,0} }) do
  453. stick = T.P(.3,.3,2.5,'Cyan',.5,false,false,sticks)
  454. stick.Touched:connect(function(hit) damage(hit.Parent,10,true,.05) end)
  455. T.W(stick,v,pos[1],-.6,pos[2],-math.pi/2,0,0)
  456. end end
  457. for i = 1,10 do
  458. rw.C1 = holdpos*cfn(0,.5,0)
  459. lw.C1 = (holdpos2*cfn(0,-.5,0))*ang(0,0,M.D(30))
  460. wait(.05)
  461. rw.C1 = (holdpos*cfn(0,-.5,0))*ang(0,0,M.D(-30))
  462. lw.C1 = holdpos2*cfn(0,.5,0)
  463. wait(.05)
  464. end
  465. sticks:Remove() for _,v in pairs(fires) do v:Remove() end
  466. lock.R(0) lock.L(0)
  467. end
  468.  
  469. Workspace.ChildRemoved:connect(function(child)
  470. if child == port then port = nil
  471. elseif child == port2 then port2 = nil
  472. end end)
  473.  
  474. function removeports()
  475. if port then port:Remove() port = nil end
  476. if port2 then port2:Remove() port2 = nil end
  477. for i,v in pairs(Workspace:GetChildren()) do if v.Name == 'omakotikullankallis' then v:Remove() end end
  478. end
  479.  
  480. function circle()
  481. r = .5
  482. lock.R(1)
  483. for i = 0,90,10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
  484.  
  485. for i = 0,360,25 do
  486. wait()
  487. rw.C1 = holdpos*ang(M.Cos(M.D(-i))*r,0,M.Sin(M.D(-i))*r)
  488. end
  489.  
  490. for i = 90,0,-10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
  491. lock.R(0)
  492.  
  493. end
  494. Workspace.ChildRemoved:connect(function(child) if child == port then port = nil elseif child == port2 then port2 = nil end end) --- Nill's portals if they dont exist
  495.  
  496. function bowl(mouse)
  497. colorslide(e1,'Color','cur','Earth green',.05)
  498. dec.Parent = e1
  499. light = T.P(1,2,1,'Earth green',.8,false,false)
  500. light.Touched:connect(function(hit) damage(hit.Parent,80,false,1) end)
  501. T.FM(light,'spike',.5,2,.5)
  502. T.W(light,e1,0,0,-1,math.pi/2,0,0)
  503. holding = true
  504. posa = e1.Position
  505. while holding do
  506. wait()
  507.  
  508. lv = char.Head.CFrame.lookVector
  509. pos3 = ((posa-mouse.hit.p).unit):Cross(lv)
  510. e1w.C1 = cfn(.35,0,-.55)*ang(0,pos3.Y,0)
  511. end
  512. light:Remove()
  513. colorslide(e1,'Color','cur','White',.05) e1w.C1 = cfn(.35,0,-.55)
  514. dec.Parent = nil
  515. end
  516.  
  517. sitbp = nil
  518. function sit()
  519. if sitbp == nil then
  520. lock.R(2) lock.L(2)
  521. sitbp = T.BP(torso,torso.Position)
  522. for i = 1,90,5 do
  523. wait()
  524. rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
  525. lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
  526. sitbp.position = torso.Position - v3n(0,i/(90),0)
  527. end
  528. elseif sitbp ~= nil then
  529. for i = 90,1,-5 do
  530. wait()
  531. rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
  532. lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
  533. sitbp.position = torso.Position + v3n(0,i/(90),0)
  534. end
  535. lock.R(-1) lock.L(-1)
  536. sitbp:Remove() sitbp = nil
  537. end
  538. end
  539.  
  540. function freemyself()
  541. for i,v in pairs(char:GetChildren()) do
  542. for _,o in pairs(v:GetChildren()) do
  543. for _,q in pairs({'BodyPosition','BodyForce','BodyVelocity','BodyGyro'}) do
  544. if o:IsA(q) then o:Remove() end
  545. end
  546. if o:IsA("Part") then
  547. o.Anchored = false end
  548. end
  549. end
  550. sk = T.P(1,1,1,'New Yeller',0,false,false)
  551. T.W(sk,torso,0,0,0,0,0,0,sk)
  552. msh = T.FM(sk,'skull',3,3,3)
  553. for i = 0,1,.05 do wait() sk.Transparency = i end sk:Remove()
  554. end
  555.  
  556. function breake()
  557. welds = {}
  558. bps = {}
  559. possa = torso.Position
  560. for i,v in pairs(torso:children()) do
  561. if v:IsA("Motor6D") then table.insert(welds,v) v.Parent = nil
  562. end
  563. end
  564.  
  565. for _,v in pairs(char:children()) do
  566. if v:IsA("BasePart") then v.CanCollide = true end
  567. end
  568.  
  569. local hum = char.Humanoid
  570. hum.Parent = nil
  571.  
  572. holding = true
  573.  
  574. while holding do wait() end
  575.  
  576. for i,v in pairs(welds) do
  577. v.Parent = torso
  578. v.Part1 = v.Part1
  579. end
  580. hum.Parent = char
  581. end
  582.  
  583. klist = {
  584. {'f',function() rage() end},
  585. {'q',function() makeport1() end},
  586. {'e',function() makeport2() end},
  587. {'r',function() removeports() end},
  588. {'c',function(a) punch(a) end},
  589. {'x',function() sit() end},
  590. {'z',function() freemyself() end},
  591. {'v',function() hide() end},
  592. {'g',function() breake() end,''}
  593. }
  594.  
  595. hop.Deselected:connect(function() lock.R(0) lock.L(0) end)
  596. hop.Selected:connect(function(mouse)
  597. mouse.Button1Up:connect(function() holding = false end)
  598. mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end end)
  599. mouse.KeyDown:connect(function(key) if attacking then return end
  600. for i,v in pairs(klist) do
  601. if key == v[1] then attacking = true v[2](mouse) attacking = false end
  602. end
  603. end)
  604.  
  605. mouse.Button1Down:connect(function() if attacking then return end attacking = true bowl(mouse) attacking = false end)
  606. end)
Add Comment
Please, Sign In to add comment