Advertisement
PASTEBINWARRIOR

Untitled

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