Advertisement
SetsunaElysia

KFM Alien

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