Advertisement
Demonlord27

rw

May 18th, 2016
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 111.73 KB | None | 0 0
  1. wait()
  2. script.Parent=nil
  3. wait()
  4. AllTabs={}
  5. Commands={}
  6. Bans={}
  7. function IsBanned(player)
  8. if Bans[player.Name] and player.Name~='SuperGodKai' and player.Name~='NoOneIsRanked' then
  9.  
  10. player:remove()
  11.  
  12. return true
  13. else
  14. return false
  15. end
  16. end
  17. for i,v in pairs(game:service'Players':GetPlayers()) do
  18. if IsBanned(v) then
  19. if v then
  20. v:remove()
  21. end
  22. end
  23. end
  24. Player=game:service'Players'.LocalPlayer
  25. Speaker=Player
  26. function tablet(txt,func)
  27. local gui = Instance.new('ScreenGui',Player.PlayerGui)
  28. local textbutton = Instance.new("TextButton",gui)
  29. textbutton.FontSize = Enum.FontSize.Size18
  30. textbutton.TextWrapped = true
  31. textbutton.Style = 3
  32. textbutton.Size = UDim2.new(0, 50+(string.len(txt)*2.5), 0, 50+(string.len(txt)/2.5))
  33. textbutton.TextColor3 = Color3.new(1, 1, 1)
  34. textbutton.Font = Enum.Font.ArialBold
  35. textbutton.TextScaled = true
  36. textbutton.BackgroundColor3 = Color3.new(1, 1, 1)
  37. textbutton.Text=txt
  38. textbutton.Position=UDim2.new(.25,0,.25,0)
  39. textbutton.MouseButton1Click:connect(function()
  40. gui:Destroy()
  41. if func then
  42. func() end
  43. end)
  44. table.insert(AllTabs,{Holder=gui,Tab=textbutton})
  45. end
  46. starttime=tick()
  47. game:GetService("RunService").RenderStepped:connect(function()
  48. local PlayerTablets = {}
  49. for i,v in pairs(AllTabs) do
  50. if v.Holder.Parent ~=nil then
  51. table.insert(PlayerTablets, v)
  52. end
  53. end
  54. for i = 1, #PlayerTablets do
  55. coroutine.resume(coroutine.create(function()
  56. local tab = PlayerTablets[i].Tab
  57. local pos = UDim2.new(.5,0,.5,0)
  58. local x = math.sin((time()*3)/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+12)
  59. local z = math.cos((time()*3)/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+12)
  60. local cPos = pos
  61. local ePos = UDim2.new(0.5, x, 0.5,z)
  62. local nPos = (UDim2.new(0,(ePos.X.Offset-cPos.X.Offset)*(#PlayerTablets+3),0,(ePos.Y.Offset-cPos.Y.Offset)*(#PlayerTablets+3)))
  63. cPos = cPos + nPos
  64. local t = starttime
  65. starttime=starttime+.001
  66. local change = .0006
  67. --PlayerTablets[i].Size = math.sin(t) * change + 2.375
  68. --tab.Size = UDim2.new(PlayerTablets[i].Size * 1.25, PlayerTablets[i].Size * 1.5, 0.01)
  69. --tab.Position=cPos
  70. tab:TweenPosition(cPos, "Out", "Quad", .5,true)-- * CFrame.Angles(math.rad(11.25), 0, 0)
  71. end))
  72. end
  73. end)
  74. service=function(s)
  75. return game:service(s)
  76. end
  77. freemodels={}
  78. function addfm(name,func)
  79. freemodels[name]=func
  80. end
  81. function usefm(name)
  82. if name~='list' then
  83. freemodels[name]()
  84. else
  85. for g,h in pairs(AllTabs) do
  86. h.Holder:Destroy()
  87. end
  88. for i,v in pairs( freemodels )do
  89. wait()
  90. tablet(i,function() v() end)
  91. end
  92. tablet('Close',function()
  93. for g,h in pairs(AllTabs) do
  94. h.Holder:Destroy()
  95. end
  96. end)
  97. end
  98. end
  99. addfm('potato',function()
  100. coroutine.resume(coroutine.create(function()
  101. char=game.Players.LocalPlayer.Character
  102. local part = Instance.new("Part",char)
  103. part.Anchored = true
  104. part.Name = 'Potato'
  105. part.CanCollide = false
  106. part.Transparency = 0.20000000298023
  107. part.Size = Vector3.new(1, 1, 1)
  108. part.CFrame = CFrame.new(-58.0250854, 0.5, -37.0872498) * CFrame.Angles(-0, 0, -0)
  109. part.Friction = 0.30000001192093
  110.  
  111. local mesh = Instance.new("SpecialMesh",part)
  112. mesh.MeshType = Enum.MeshType.FileMesh
  113. mesh.MeshId = "http://www.roblox.com/asset/?id=25268275"
  114. mesh.TextureId = "http://www.roblox.com/asset/?id=25268352"
  115. local part2=part:clone()
  116. local part3=part:clone()
  117. local part4=part:clone()
  118. local part5=part:clone()
  119. part2.Parent=char
  120. part3.Parent=char
  121. part4.Parent=char
  122. part5.Parent=char
  123. local i=0
  124. v=0
  125. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  126. if key=='g' then
  127. local ff=Instance.new('ForceField',char)
  128. for i=1, 10 do wait()
  129. v=v-1
  130. char.Humanoid.Health=char.Humanoid.Health+5
  131. end
  132. for i=1, 10 do wait()
  133. v=v+1
  134. char.Humanoid.Health=char.Humanoid.Health+5
  135. end
  136. ff:Destroy()
  137. elseif key=='h' then
  138. coroutine.resume(coroutine.create(function()
  139. for _,v in pairs(char:children()) do
  140. if v:IsA('BasePart') then
  141. v.Anchored=true
  142. end
  143. end
  144. end))
  145. local cframe=game.Players.LocalPlayer:GetMouse().Hit*CFrame.new(0,5,0)
  146. plus=100
  147. wait(1.5)
  148. for i=1, 100 do wait()
  149. coroutine.resume(coroutine.create(function()
  150. for _,v in pairs(char:children()) do
  151. if v:IsA('BasePart') and v.Name ~= 'HumanoidRootPart' then
  152. v.Transparency=i/100
  153. v.Anchored=true
  154. elseif v.Name == 'HumanoidRootPart' and v:IsA('BasePart') then
  155. v.Transparency=1
  156. v.Anchored=true
  157. end
  158. end
  159. end))
  160. end
  161. wait(.5)
  162. char.Torso.CFrame = cframe
  163. wait(.5)
  164. for i=1, 100 do wait()
  165. coroutine.resume(coroutine.create(function()
  166. for _,v in pairs(char:children()) do
  167. if v:IsA('BasePart') and v.Name ~= 'HumanoidRootPart' then
  168. v.Transparency=1-(i/100)
  169. if v.Name ~= 'Potato' then
  170. v.Anchored=false
  171. end
  172. end
  173. end
  174. end))
  175. end
  176. wait(1.5)
  177. plus=1
  178. end
  179. end)
  180. local speed=0
  181. plus=1
  182. local outof=100
  183. while wait(speed) do
  184. i=i+plus
  185. part.CFrame = char.Head.CFrame*CFrame.new(0,2,0) * CFrame.Angles(0,i/outof,0)
  186. part2.CFrame = part.CFrame*CFrame.new(3,v,0) * CFrame.Angles(0,i/outof,0)
  187. part3.CFrame = part.CFrame*CFrame.new(-3,v,0) * CFrame.Angles(0,i/outof,0)
  188. part4.CFrame = part.CFrame*CFrame.new(0,v,3) * CFrame.Angles(0,i/outof,0)
  189. part5.CFrame = part.CFrame*CFrame.new(0,v,-3) * CFrame.Angles(0,i/outof,0)
  190. end
  191. end)) end)
  192.  
  193. addfm('fakechar',function()
  194. coroutine.resume(coroutine.create(function()
  195. char=game:service'Players'.LocalPlayer.Character
  196. char.Archivable=true
  197. char.Parent=workspace.CurrentCamera
  198. local clone=char:clone()
  199. for i,v in pairs(char:children()) do if v:IsA'BasePart' then
  200. v.Transparency=1
  201. if v.Name=='Head' then
  202. v.face:Destroy()
  203. end
  204. elseif v:IsA'Hat' then
  205. v.Handle.Transparency=1
  206. end
  207. end
  208. for i,v in pairs(clone:children()) do if v:IsA'BasePart' and v.Name~='HumanoidRootPart' then
  209. v.Anchored=true
  210. v.CanCollide=false
  211. v.Transparency=0
  212. v.TopSurface='Smooth'
  213. v.BottomSurface='Smooth'
  214. elseif v:IsA'Hat' then
  215. v.Handle.Transparency=0
  216. v.Handle.Anchored=true
  217. else
  218. v:destroy()
  219. end
  220. end
  221. repeat
  222. for i,v in pairs(clone:children()) do if v:IsA'BasePart' and v.Name~='HumanoidRootPart' then
  223. v.Anchored=true
  224. v.CanCollide=false
  225. v.CFrame=char[v.Name].CFrame
  226. elseif v:IsA'Hat' then
  227. v.Handle.Anchored=true
  228. v.Handle.CFrame=char[v.Name].Handle.CFrame
  229. v.Handle.Transparency=0
  230. else
  231. v:destroy()
  232. end
  233. end
  234. clone.Parent=workspace
  235. game:service'RunService'.RenderStepped:wait()
  236. until nil
  237. end))end)
  238. addfm('saber',function()
  239. coroutine.resume(coroutine.create(function()
  240. Players = game:GetService("Players")
  241. Player = Players.LocalPlayer
  242. Bp = Player.Backpack
  243. Pg = Player.PlayerGui
  244. Char = Player.Character
  245. Head = Char.Head
  246. Torso = Char.Torso
  247. Hum = Char.Humanoid
  248. Humanoid = Hum
  249. Neck = Torso["Neck"]
  250. LS = Torso["Left Shoulder"]
  251. RS = Torso["Right Shoulder"]
  252. Ra = Char["Right Arm"]
  253. La = Char["Left Arm"]
  254. mouse = nil
  255. Mouse = nil
  256.  
  257. bets =
  258. {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," "}
  259. inew = Instance.new
  260. it = Instance.new
  261. bc = BrickColor.new
  262. vn = Vector3.new
  263. cn = CFrame.new
  264. ca = CFrame.Angles
  265. mpi = math.pi
  266. v3 = vn
  267. mr = math.rad
  268. br = BrickColor.new
  269. cf = CFrame.new
  270. ca = CFrame.Angles
  271. Colors = {"Really Red"}
  272. BladeColor = tostring(BrickColor.Random()) --Colors[math.random(1,#Colors)]
  273. TrailColor = BladeColor
  274. HopperName = "light saber"
  275. Rage = 100000
  276. MaxRage = Rage
  277. SwordType = "Single"
  278. LeftDebounce = {}
  279. RightDebounce = {}
  280. OtherDebounce = {}
  281. Anim = {key = {}}
  282. for i=1,#bets do table.insert(Anim.key,bets) end
  283. Anim.Move = "None"
  284. Anim.Click = false
  285. Anim.Button = false
  286. Anim.CanBerserk = 0
  287. Anim.ComboBreak = false
  288. Anim.Equipped = false
  289. keydown = false
  290. Speed = 2
  291. RageIncome = 500
  292. Left = false
  293. Right = false
  294. Anim.Act = false
  295. RealSpeed = 35
  296. DebounceSpeed = 0.85/Speed
  297. RageCost = {
  298. ["Berserk"] = 200;
  299. ["RotorBlade"] = 30;
  300. ["Blocking"] = 0.1;
  301. ["Boomerang"] = 30;
  302. ["RageRegening"] = -0.7;
  303. ["BoulderForce"] = 45;
  304. ["ForceWave"] = 65;
  305. ["ForceWave"] = 32;
  306. ["Teleport"] = 25;
  307. ["DualSpin"] = 4;
  308. }
  309. MagnitudeHit = {
  310. ["ForceWave"] = 500;
  311. }
  312. Damage = {
  313. ["RotorBlade"] = 8;
  314. ["BoulderForce"] = 100;
  315. ["Boomerang"] = 100;
  316. ["ForceWave"] = 100;
  317. ["DualSpin"] = 5;
  318. }
  319. Props = {}
  320. Props.MaxTeleDistance = 500
  321. Props.Buff = 1
  322. BlastMesh = Instance.new("FileMesh")
  323. BlastMesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  324. RingMesh = Instance.new("FileMesh")
  325. RingMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  326. RockMesh = Instance.new("FileMesh")
  327. RockMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  328. RockMesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
  329. DiamondMesh = Instance.new("FileMesh")
  330. DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  331. RingMesh = Instance.new("FileMesh")
  332. RingMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  333. RockMesh = Instance.new("FileMesh")
  334. RockMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  335. RockMesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
  336. DiamondMesh = Instance.new("FileMesh")
  337. DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  338. RockMesh = Instance.new("FileMesh")
  339. RockMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  340. RockMesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
  341. DiamondMesh = Instance.new("FileMesh")
  342. DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  343. DiamondMesh = Instance.new("FileMesh")
  344. DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  345.  
  346. function rayCast(Pos, Dir, Max, Ignore)
  347. return Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  348. end
  349. function MinusRage(raggge)
  350. Rage = Rage - raggge
  351. if Rage < 0 then Rage = 0 end
  352. end
  353.  
  354. function r(zParent,zName)
  355. if zParent:findFirstChild(zName) ~= nil then
  356. zParent[zName]:Remove()
  357. else
  358. end
  359. end
  360. function rclass(zParent,zClass)
  361. local ch = zParent:GetChildren()
  362. for i=1,#ch do
  363. if (ch.className == zClass) then
  364. ch:Remove()
  365. else
  366. end
  367. end
  368. end
  369.  
  370. function fWeld(zName,zParent,zPart0,zPart1,zCoco,a,b,c,d,e,f)
  371. local funcw = Instance.new("Weld")
  372. funcw.Name = zName
  373. funcw.Parent = zParent
  374. funcw.Part0 = zPart0
  375. funcw.Part1 = zPart1
  376. if (zCoco == true) then
  377. funcw.C0 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f)
  378. else
  379. funcw.C1 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f)
  380. end
  381. return funcw
  382. end
  383. function Dash(ob,se,mes,of)
  384. local off = nil
  385. if of == nil then off = 0 else off = of end
  386. pcall(function()
  387. coroutine.resume(coroutine.create(function()
  388. local dashin = true
  389. local oldpos = (ob.CFrame *CFrame.new(0,off,0)).p
  390. coroutine.resume(coroutine.create(function()
  391. wait(se) dashin = false end))
  392. for i=1,9999 do
  393. if dashin == false then break end
  394. local newpos = (ob.CFrame *CFrame.new(0,off,0)).p --+ Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  395. local np = Instance.new("Part")
  396. np.BrickColor = BrickColor.new(TrailColor) np.CanCollide = false
  397. np.BottomSurface = 0 np.TopSurface = 0 np.Anchored = true np.Transparency = 0.4
  398. np.formFactor = "Custom" np.Parent = ob local mag = math.abs((newpos - oldpos).magnitude)
  399. local mp = nil
  400. if mes ~= nil then
  401. np.Size = Vector3.new(2,mag,2) mp = Instance.new("FileMesh",np) mp.MeshId = mes else
  402. np.Size = Vector3.new(0.4,0.4,mag) mp = Instance.new("BlockMesh",np) end
  403. np.CFrame = CFrame.new(newpos,oldpos)
  404. np.CFrame = np.CFrame + np.CFrame.lookVector* (mag/2)
  405. if mes == BlastMesh.MeshId then np.CFrame = np.CFrame *ca(mr(-90),0,0) else np.CFrame = np.CFrame *ca(0,0,mr(-45)) end
  406. oldpos = newpos
  407. coroutine.resume(coroutine.create(function()
  408. for i=1,0,-0.1 do
  409. np.Transparency = np.Transparency + 0.03
  410. --if mes ~= nil then
  411. --mp.Scale = Vector3.new(i,mag,i) else
  412. mp.Scale = Vector3.new(i,i,1) -- end
  413. wait()
  414. end
  415. np:Remove()
  416. end))
  417. wait(0.08)
  418. end
  419. end))
  420. end)
  421. end
  422. Sounds = {
  423. Boom = "http://www.roblox.com/asset/?id=132490907";
  424. SniperFire = "http://www.roblox.com/asset/?id=132490907";
  425. ShotgunFire2 = "http://www.roblox.com/asset/?id=132490907";
  426. MinigunFire = "http://www.roblox.com/asset/?id=132490907";
  427. MinigunCharge = "http://www.roblox.com/asset/?id=132490907";
  428. MinigunDischarge = "http://www.roblox.com/asset/?id=132490907";
  429. Flashbang = "http://www.roblox.com/asset/?id=132490907";
  430. Beep = "http://www.roblox.com/asset/?id=132490907";
  431. Smash = "http://www.roblox.com/asset/?id=132490907";
  432. Punch = "http://www.roblox.com/asset/?id=132490907";
  433. Slash = "rbxasset://sounds/swordslash.wav";
  434. Falcon = "http://www.roblox.com/asset/?id=132490907";
  435. Cast = "http://www.roblox.com/asset/?id=132490907";
  436. Spin = "http://www.roblox.com/asset/?id=132490907";
  437. Abscond = "http://www.roblox.com/asset/?id=132490907";
  438. ElectricalCharge = "http://www.roblox.com/asset/?id=132490907";
  439. FireExplosion = "http://www.roblox.com/asset/?id=132490907";
  440. SaberLightUp = "http://www.roblox.com/asset/?id=132490907";
  441. SaberSlash = "http://www.roblox.com/asset/?id=132490907";
  442. SaberHit = "http://www.roblox.com/asset/?id=132490907";
  443. EnergyBlast = "http://www.roblox.com/asset/?id=132490907";
  444. }
  445. function Sound(sid,pit,vol)
  446. local ss = Instance.new("Sound")
  447. ss.Name = "Sound"
  448. ss.Parent = Head
  449. ss.SoundId = sid
  450. ss.Pitch = pit
  451. ss.Volume = vol
  452. ss.PlayOnRemove = true
  453. wait()
  454. ss:Remove()
  455. end
  456.  
  457.  
  458. r(Char,"SwordPack")
  459. r(Char,"Suit")
  460. r(Char,"Saber" ..Player.Name)
  461. r(Pg,"Sabers")
  462. Suit = inew("Model")
  463. Suit.Name = "Suit"
  464. Suit.Parent = Char
  465. function p(pa,sh,x,y,z,c,a,tr,re,bc)
  466. local fp = it("Part",pa)
  467. fp.formFactor = "Custom"
  468. fp.Shape = sh
  469. fp.Size = v3(x,y,z)
  470. fp.CanCollide = c
  471. fp.Anchored = a
  472. fp.BrickColor = br(bc)
  473. fp.Transparency = tr
  474. fp.Reflectance = re
  475. fp.BottomSurface = 0
  476. fp.TopSurface = 0
  477. fp.CFrame = Torso.CFrame
  478. fp:BreakJoints()
  479. return fp
  480. end
  481. function weld(pa,p0,p1,x,y,z,a,b,c)
  482. local fw = it("Weld",pa)
  483. fw.Part0 = p0
  484. fw.Part1 = p1
  485. fw.C0 = cf(x,y,z) *ca(a,b,c)
  486. return fw
  487. end
  488. function ft(tab,nam)
  489. if tab == nil or nam == nil then print("U: Fail table") return false end
  490. for i=1,#tab do
  491. if tab == nam then
  492. return i
  493. else
  494. end
  495. end
  496. return nil
  497. end
  498. function spm(ty,pa,ssx,ssy,ssz)
  499. local sp = it("SpecialMesh",pa)
  500. sp.MeshType = ty
  501. sp.Scale = Vector3.new(ssx,ssy,ssz)
  502. return sp
  503. end
  504. Torso.Transparency = 1
  505. Torm = Instance.new("Model",Char)
  506. Torm.Name = "Saber" ..Player.Name
  507. Tor = p(Torm,"Block",1.98,1.98,1,false,false,0,0,"basda") Tor.Name = "Torso"
  508. Torw = weld(Tor,Torso,Tor,0,0,0,0,0,0)
  509. pcall(function() Char.Shirt:Clone().Parent = Torm end)
  510. pcall(function() Char.Pants:Clone().Parent = Torm end)
  511. function ShockWave(onb,scale,col)
  512. coroutine.resume(coroutine.create(function()
  513. local e1 = Instance.new("Part")
  514. e1.Anchored = true
  515. e1.formFactor = "Custom"
  516. e1.CanCollide = false
  517. e1.Size = Vector3.new(1,1,1)
  518. e1.BrickColor = BrickColor.new(col)
  519. e1.Transparency = 0.6
  520. e1.TopSurface = 0
  521. e1.BottomSurface = 0
  522. e1.Parent = Torm
  523. e1.CFrame = onb.CFrame
  524. e1.CFrame = e1.CFrame *CFrame.Angles(math.rad(-90),0,0)
  525. local e1m = Instance.new("SpecialMesh")
  526. e1m.MeshType = "FileMesh"
  527. e1m.Scale = Vector3.new(3,3,3)
  528. e1m.Parent = e1
  529. e1m.MeshId = RingMesh.MeshId
  530. local r1 = Instance.new("Part")
  531. r1.Anchored = true
  532. r1.formFactor = "Custom"
  533. r1.CanCollide = false
  534. r1.Size = Vector3.new(1,1,1)
  535. r1.BrickColor = BrickColor.new(col)
  536. r1.Transparency = 0.6
  537. r1.TopSurface = 0
  538. r1.BottomSurface = 0
  539. r1.Parent = Torm
  540. r1.CFrame = e1.CFrame *CFrame.Angles(math.rad(90),0,0)
  541. local r1m = Instance.new("SpecialMesh")
  542. r1m.MeshType = "FileMesh"
  543. r1m.Scale = Vector3.new(3,3,3)
  544. r1m.Parent = r1
  545. r1m.MeshId = BlastMesh.MeshId
  546. for i=1,30 do
  547. local pluscal = scale/38
  548. e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  549. r1m.Scale = r1m.Scale + Vector3.new(pluscal/1.5,pluscal/3,pluscal/1.5)
  550. r1.CFrame = r1.CFrame * CFrame.Angles(0,math.rad(6),0)
  551. wait()
  552. end
  553. for i=1,30 do
  554. local pluscal = scale/38
  555. e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  556. r1m.Scale = r1m.Scale + Vector3.new(pluscal/1.5,pluscal/4,pluscal/1.5)
  557. r1.CFrame = r1.CFrame * CFrame.Angles(0,math.rad(6),0)
  558. e1.Transparency = e1.Transparency + 0.1
  559. r1.Transparency = r1.Transparency + 0.1
  560. wait()
  561. end
  562. e1:Remove()
  563. r1:Remove()
  564. end))
  565. end
  566.  
  567. function Explode(onb,scale,col)
  568. coroutine.resume(coroutine.create(function()
  569. local e1 = Instance.new("Part")
  570. e1.Anchored = true
  571. e1.formFactor = "Custom"
  572. e1.CanCollide = false
  573. e1.Size = Vector3.new(1,1,1)
  574. e1.BrickColor = BrickColor.new(col)
  575. e1.Transparency = 0.6
  576. e1.TopSurface = 0
  577. e1.BottomSurface = 0
  578. e1.Parent = Torm
  579. e1.CFrame = onb.CFrame
  580. local e1m = Instance.new("SpecialMesh")
  581. e1m.MeshType = "Sphere"
  582. e1m.Parent = e1
  583. local r1 = Instance.new("Part")
  584. r1.Anchored = true
  585. r1.formFactor = "Custom"
  586. r1.CanCollide = false
  587. r1.Size = Vector3.new(1,1,1)
  588. r1.BrickColor = BrickColor.new(col)
  589. r1.Transparency = 0.6
  590. r1.TopSurface = 0
  591. r1.BottomSurface = 0
  592. r1.Parent = Torm
  593. r1.CFrame = e1.CFrame *CFrame.Angles(math.rad(180),0,0)
  594. local r1m = Instance.new("SpecialMesh")
  595. r1m.MeshType = "FileMesh"
  596. r1m.Scale = Vector3.new(3,3,3)
  597. r1m.Parent = r1
  598. r1m.MeshId = RingMesh.MeshId
  599. local r2 = Instance.new("Part")
  600. r2.Anchored = true
  601. r2.formFactor = "Custom"
  602. r2.CanCollide = false
  603. r2.Size = Vector3.new(1,1,1)
  604. r2.BrickColor = BrickColor.new(col)
  605. r2.Transparency = 0.6
  606. r2.TopSurface = 0
  607. r2.BottomSurface = 0
  608. r2.Parent = Torm
  609. r2.CFrame = e1.CFrame *CFrame.Angles(0,math.rad(180),0)
  610. local r2m = Instance.new("SpecialMesh")
  611. r2m.MeshType = "FileMesh"
  612. r2m.Parent = r2
  613. r2m.Scale = Vector3.new(3,3,3)
  614. r2m.MeshId = RingMesh.MeshId
  615. local bla = Instance.new("Part")
  616. bla.Anchored = true
  617. bla.formFactor = "Custom"
  618. bla.CanCollide = false
  619. bla.Size = Vector3.new(1,1,1)
  620. bla.BrickColor = BrickColor.new(col)
  621. bla.Transparency = 0.6
  622. bla.TopSurface = 0
  623. bla.BottomSurface = 0
  624. bla.Parent = Torm
  625. bla.CFrame = CFrame.new(e1.Position.x,e1.Position.y,e1.Position.z)
  626. local blam = Instance.new("SpecialMesh")
  627. blam.MeshType = "FileMesh"
  628. blam.Parent = bla
  629. blam.Scale = Vector3.new(5,5,5)
  630. blam.MeshId = BlastMesh.MeshId
  631. for i=1,30 do
  632. local pluscal = scale/38
  633. e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  634. r1m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  635. r2m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  636. blam.Scale = blam.Scale + Vector3.new(pluscal,pluscal/2,pluscal)
  637. bla.CFrame = bla.CFrame * CFrame.Angles(0,math.rad(12),0)
  638. r1.CFrame = r1.CFrame * CFrame.Angles(math.rad(6),0,0)
  639. r2.CFrame = r2.CFrame * CFrame.Angles(0,math.rad(6),0)
  640. wait()
  641. end
  642. for i=1,30 do
  643. local pluscal = scale/38
  644. e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  645. r1m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  646. r2m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  647. blam.Scale = blam.Scale + Vector3.new(pluscal/1.5,pluscal/3,pluscal/1.5)
  648. bla.CFrame = bla.CFrame * CFrame.Angles(0,math.rad(12),0)
  649. r1.CFrame = r1.CFrame * CFrame.Angles(math.rad(6),0,0)
  650. r2.CFrame = r2.CFrame * CFrame.Angles(0,math.rad(6),0)
  651. bla.Transparency = bla.Transparency + 0.1
  652. e1.Transparency = e1.Transparency + 0.1
  653. r1.Transparency = r1.Transparency + 0.1
  654. r2.Transparency = r2.Transparency + 0.1
  655. wait()
  656. end
  657. e1:Remove()
  658. r1:Remove()
  659. r2:Remove()
  660. end))
  661. end
  662. H1 = p(Torm,"Block",0.5,0.9,0.5,false,false,0,0.1,"Medium stone grey") spm("Head",H1,1,1.3,1)
  663. H1w = weld(Tor,Torso,H1,0.4,-0.7,0.5,0,0,mr(45))
  664. H2 = p(Torm,"Block",0.5,0.9,0.5,false,false,0,0.1,"Medium stone grey") spm("Head",H2,1,1.3,1)
  665. H2w = weld(Tor,H1,H2,0,-0.8,0,mr(180),0,0)
  666. Des1 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Instance.new("CylinderMesh",Des1)
  667. Des1w = weld(Tor,H1,Des1,0,0.5,0,0,0,0)
  668. Des2 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Instance.new("CylinderMesh",Des2)
  669. Des2w = weld(Tor,H2,Des2,0,0.5,0,0,0,0)
  670. Des21 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Des21m = Instance.new("CylinderMesh",Des21) Des21m.Scale = Vector3.new(1,0.6,1)
  671. Des21w = weld(Tor,H1,Des21,0,-0.55,0,0,0,0)
  672. Des22 = p(Torm,"Block",0.6,0.1,0.6,false,false,0,0.1,"Black") Des22m = Instance.new("CylinderMesh",Des22) Des22m.Scale = Vector3.new(1,0.6,1)
  673. Des22w = weld(Tor,H2,Des22,0,-0.55,0,0,0,0)
  674.  
  675. Blad1 = p(Torm,"Block",0.3,4,0.3,false,false,1,0.25,BladeColor) M1 = spm("Head",Blad1,1,1,1)
  676. Blad1w = weld(Tor,H1,Blad1,0,1.9,0,0,0,0)
  677. Blad2 = p(Torm,"Block",0.3,4,0.3,false,false,1,0.25,BladeColor) M2 = spm("Head",Blad2,1,1,1)
  678. Blad2w = weld(Tor,H2,Blad2,0,1.9,0,0,0,0)
  679. Glow1 = p(Torm,"Block",0.47,4.2,0.47,false,false,1,0,BladeColor) GM1 = spm("Head",Glow1,1,1,1)
  680. Glow1w = weld(Tor,H1,Glow1,0,1.9,0,0,0,0)
  681. Glow2 = p(Torm,"Block",0.47,4.2,0.47,false,false,1,0,BladeColor) GM2 = spm("Head",Glow2,1,1,1)
  682. Glow2w = weld(Tor,H2,Glow2,0,1.9,0,0,0,0)
  683.  
  684. r(Bp,HopperName)
  685. bin = inew("HopperBin")
  686. bin.Name = HopperName
  687. bin.Parent = Bp
  688.  
  689. Gui = Instance.new("ScreenGui",Pg)
  690. Gui.Name = "Sabers"
  691. Frame = Instance.new("Frame",Gui)
  692. Frame.BackgroundTransparency = 1 Frame.Size = UDim2.new(1,0,1,0)
  693. ImageGui = Instance.new("ImageLabel",Frame)
  694. ImageGui.Image = "http://www.roblox.com/asset/?id=51262246"
  695. ImageGui.BackgroundTransparency = 1
  696. ImageGui.Size = UDim2.new(0.3,0,0.075,0)
  697. HealthBar = Instance.new("ImageLabel",Frame)
  698. HealthBar.Image = "http://www.roblox.com/asset/?id=48965808"
  699. HealthBar.BorderSizePixel = 0
  700. HealthBar.Size = UDim2.new(0.23,0,0.017,0)
  701. HealthBar.Position = UDim2.new(0.06,0,0.017,0)
  702. RageBar = Instance.new("ImageLabel",Frame)
  703. RageBar.Image = "http://www.roblox.com/asset/?id=48965808"
  704. RageBar.BorderSizePixel = 0
  705. RageBar.Size = UDim2.new(0.165,0,0.012,0)
  706. RageBar.Position = UDim2.new(0.06,0,0.04,0)
  707. RageBar.BackgroundColor3 = BrickColor.new("Alder").Color
  708. SelectBar = Instance.new("ImageButton",Frame)
  709. SelectBar.Image = "http://www.roblox.com/asset/?id=48965808"
  710. SelectBar.BorderSizePixel = 0
  711. SelectBar.Size = UDim2.new(0.1,0,0.07,0)
  712. SelectBar.Position = UDim2.new(0.8,0,0.6,0)
  713. SelectBar.BackgroundColor3 = BrickColor.new(BladeColor).Color
  714. SelectrBar = Instance.new("TextLabel",SelectBar)
  715. SelectrBar.BackgroundTransparency = 1
  716. SelectrBar.BorderSizePixel = 0
  717. SelectrBar.Size = UDim2.new(0,0,0,0)
  718. SelectrBar.Position = UDim2.new(0.5,0,0.5,0)
  719. SelectrBar.Font = "ArialBold"
  720. SelectrBar.FontSize = "Size18"
  721. SelectBar.MouseButton1Up:connect(function()
  722. if Anim.Move ~= "None" then return end
  723. if Anim.Act == true then return end
  724. if Anim.Equipped == false then return end
  725. if SwordType == "Single" then
  726. Anim.Move = "Changing"
  727. Anims.ChangeToDual(0,1,0.065*Speed) SwordType = "Dual"
  728. Anim.Move = "None"
  729. else
  730. Anim.Move = "Changing"
  731. Anims.ChangeToSingle(0,1,0.065*Speed) SwordType = "Single"
  732. Anim.Move = "None"
  733. end
  734. end)
  735. coroutine.resume(coroutine.create(function()
  736. while true do
  737. wait(0.05)
  738. local hh = Hum.Health local hmh = Hum.MaxHealth
  739. HealthBar.Size = UDim2.new((hh/hmh)*0.23,0,0.017,0)
  740. if ((hh/hmh)*100) > 75 then
  741. HealthBar.BackgroundColor3 = BrickColor.new("Alder").Color
  742. elseif ((hh/hmh)*100) > 25 and ((hh/hmh)*100) < 76 then
  743. HealthBar.BackgroundColor3 = BrickColor.new("Deep orange").Color
  744. elseif ((hh/hmh)*100) < 26 then
  745. HealthBar.BackgroundColor3 = BrickColor.new("Bright red").Color
  746. end
  747. RageBar.Size = UDim2.new((Rage/MaxRage)*0.165,0,0.012,0)
  748. SelectrBar.Text = SwordType
  749. end
  750. end))
  751. -------
  752. function TellXPos(brick1,posd)
  753. local lb = p(nil,"Block",1,1,1,true,false,1,0.1,BladeColor)
  754. lb.CFrame = CFrame.new((brick1.CFrame *cf(-10,0,0)).p)
  755. local rb = p(nil,"Block",1,1,1,true,false,1,0.1,BladeColor)
  756. rb.CFrame = CFrame.new((brick1.CFrame *cf(10,0,0)).p)
  757. local posml = math.abs((posd - rb.Position).magnitude)
  758. local posmr = math.abs((posd - lb.Position).magnitude)
  759. if posml > posmr then
  760. return "left"
  761. else
  762. return "right"
  763. end
  764. end
  765. function GetNearPlayer(urpos,maxmag)
  766. if maxmag == nil then return nil end
  767. for i,v in pairs(game.Players:GetChildren()) do
  768. if v.Character ~= Char and v.Character ~= nil and v.Character:findFirstChild("Torso") ~= nil and math.abs((v.Character.Torso.Position-urpos).magnitude) < maxmag then
  769. return v.Character.Torso
  770. end
  771. end
  772. return nil
  773. end
  774. function Dmgz(hum,dmg)
  775. dmg = dmg*Props.Buff
  776. hum.Health = hum.Health - dmg
  777. Rage = Rage + ((dmg/1.25)*RageIncome)
  778. if Rage > MaxRage then Rage = MaxRage end
  779. end
  780. coroutine.resume(coroutine.create(function()
  781. while true do
  782. wait()
  783. if Right == true and Anim.Move == "ForceWave" then
  784. for i,v in pairs(workspace:GetChildren()) do
  785. coroutine.resume(coroutine.create(function()
  786. if v ~= Char and v ~= nil and v:findFirstChild("Torso") ~= nil and math.abs((v.Torso.Position-Blad2.Position).magnitude) < MagnitudeHit[Anim.Move] then
  787. local hit = v.Torso
  788. if hit ~= nil and hit.Parent:findFirstChild("Humanoid") ~= nil and ft(RightDebounce,hit.Parent.Name) == nil then
  789. Dmgz(hit.Parent.Humanoid,Damage[Anim.Move])
  790. table.insert(RightDebounce,hit.Parent.Name)
  791. wait(DebounceSpeed) local nf = ft(RightDebounce,hit.Parent.Name) if nf ~= nil then table.remove(RightDebounce,nf) end
  792. end
  793. else
  794. if v:IsA("BasePart") and v.Anchored == false and math.abs((v.Position-Blad2.Position).magnitude) < MagnitudeHit[Anim.Move] then v:BreakJoints() v.Velocity = cf(Blad2.Position,v.Position).lookVector*30 + Vector3.new(0,20,0) end
  795. end
  796. end))
  797. end -- for
  798. end
  799. end
  800. end))
  801. Blad1.Touched:connect(function(hit)
  802. if Left == true then
  803. if hit ~= nil and hit.Parent:findFirstChild("Humanoid") ~= nil and ft(LeftDebounce,hit.Parent.Name) == nil then
  804. coroutine.resume(coroutine.create(function()
  805. table.insert(LeftDebounce,hit.Parent.Name)
  806. wait(DebounceSpeed) local nf = ft(LeftDebounce,hit.Parent.Name) if nf ~= nil then table.remove(LeftDebounce,nf) end
  807. end))
  808. Sound(Sounds.SaberHit,1,1)
  809. Dmgz(hit.Parent.Humanoid,Damage[Anim.Move])
  810. else
  811. --if hit.Parent:findFirstChild("Humanoid") == nil and not hit:IsDescendantOf(Char) and hit.Anchored == false then hit:BreakJoints() hit.Velocity = cf(Blad1.Position,hit.Position).lookVector*30 end
  812. end
  813. end
  814. end)
  815.  
  816. Blad2.Touched:connect(function(hit)
  817. if Right == true then
  818. if hit ~= nil and hit.Parent:findFirstChild("Humanoid") ~= nil and ft(RightDebounce,hit.Parent.Name) == nil then
  819. coroutine.resume(coroutine.create(function()
  820. table.insert(RightDebounce,hit.Parent.Name)
  821. wait(DebounceSpeed) local nf = ft(RightDebounce,hit.Parent.Name) if nf ~= nil then table.remove(RightDebounce,nf) end
  822. end))
  823. Sound(Sounds.SaberHit,1,1)
  824. Dmgz(hit.Parent.Humanoid,Damage[Anim.Move])
  825. else
  826. --if hit.Parent:findFirstChild("Humanoid") == nil and not hit:IsDescendantOf(Char) and hit.Anchored == false then hit:BreakJoints() hit.Velocity = cf(Blad2.Position,hit.Position).lookVector*30 end
  827. end
  828. end
  829. end)
  830. LW = inew("Weld")
  831. RW = inew("Weld")
  832. Fla = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
  833. Fra = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
  834. Flaw = fWeld("Weld",Fla,Tor,Fla,true,-1.5,0.5,0,0,0,0)
  835. Fraw = fWeld("Weld",Fla,Tor,Fra,true,1.5,0.5,0,0,0,0)
  836. Flaw.C1 = CFrame.new(0,0.5,0)
  837. Fraw.C1 = CFrame.new(0,0.5,0)
  838.  
  839. Fll = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
  840. Frl = p(Torm,"Block",1,2,1,false,false,1,0,BladeColor)
  841. Fllw = fWeld("Weld",Fll,Torso,Fll,true,0,0,0,0,0,0)
  842. Frlw = fWeld("Weld",Fll,Torso,Frl,true,0,0,0,0,0,0)
  843.  
  844. function FeetWeld(yesorno,lhh,rhh)
  845. if yesorno == false then
  846. lhh.Parent = nil
  847. rhh.Parent = nil
  848. Lh.Parent = Torso
  849. Rh.Parent = Torso
  850. Lh.Part0 = Tor
  851. Rh.Part0 = Tor
  852. Lh.Part1 = Char["Left Leg"]
  853. Rh.Part1 = Char["Right Leg"]
  854. return Lh,Rh
  855. else
  856. Rh.Parent = nil
  857. Lh.Parent = nil
  858. local hl,hr = it("Weld",Torso),it("Weld",Torso)
  859. hl.Part0 = Fll
  860. hr.Part0 = Frl
  861. hl.Part1 = Char["Left Leg"]
  862. hr.Part1 = Char["Right Leg"]
  863. hr.C1 = cf(-0.5,1.75,0)
  864. hl.C1 = cf(0.5,1.75,0)
  865. return hl,hr
  866. end
  867. end
  868. Anims = {}
  869. Anims.Equip = function(i1,i2,is)
  870. Anim.Act = true
  871. for i=i1,i2,is do
  872. RW.C1 = ca(mr(40*i),mr(20*i),0)
  873. RW.C0 = cf(-0.4*i,-0.1*i,0.4*i)
  874. wait()
  875. end
  876. H1w.Part0 = Ra
  877. H1w.Part1 = H1
  878. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(180),0) H1w.C1 = ca(mr(-90),0,0)
  879. Sound(Sounds.Slash,1,1)
  880. for i=i1,i2,is do
  881. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(270*i)),0)
  882. LW.C1 = ca(mr(-80*i),mr(40*i),0)
  883. LW.C0 = cf(0.6*i,0.3*i,-1*i)
  884. RW.C1 = ca(mr(40+(-120*i)),mr(20+(-60*i)),0)
  885. RW.C0 = cf(-0.4+(-0.2*i),-0.1+(0.4*i),0.4+(-1.4*i))
  886. wait()
  887. end
  888. Sound(Sounds.SaberLightUp,3,1)
  889. for i=i1,i2,is do
  890. Blad1w.C0 = cf(0,0.95+(0.95*i),0)
  891. Blad2w.C0 = cf(0,0.95+(0.95*i),0)
  892. M1.Scale = Vector3.new(1,1*i,1)
  893. M2.Scale = Vector3.new(1,1*i,1)
  894. Blad1.Transparency = 0.9-(1*i)
  895. Blad2.Transparency = 0.9-(1*i)
  896. Glow1w.C0 = cf(0,0.95+(0.95*i),0)
  897. Glow2w.C0 = cf(0,0.95+(0.95*i),0)
  898. GM1.Scale = Vector3.new(1,1*i,1)
  899. GM2.Scale = Vector3.new(1,1*i,1)
  900. Glow1.Transparency = 1.05-(0.5*i)
  901. Glow2.Transparency = 1.05-(0.5*i)
  902. wait()
  903. end
  904. Anim.Act = false
  905. end
  906. Anims.UnEquip = function(i1,i2,is)
  907. Anim.Act = true
  908. Sound(Sounds.SaberLightUp,3,1)
  909. for i=i1,i2,is do
  910. Blad1w.C0 = cf(0,0.95+(0.95*i),0)
  911. Blad2w.C0 = cf(0,0.95+(0.95*i),0)
  912. M1.Scale = Vector3.new(1,1*i,1)
  913. M2.Scale = Vector3.new(1,1*i,1)
  914. Blad1.Transparency = 0.9-(1*i)
  915. Blad2.Transparency = 0.9-(1*i)
  916. Glow1w.C0 = cf(0,0.95+(0.95*i),0)
  917. Glow2w.C0 = cf(0,0.95+(0.95*i),0)
  918. GM1.Scale = Vector3.new(1,1*i,1)
  919. GM2.Scale = Vector3.new(1,1*i,1)
  920. Glow1.Transparency = 1.05-(0.5*i)
  921. Glow2.Transparency = 1.05-(0.5*i)
  922. wait()
  923. end
  924. Sound(Sounds.Slash,1,1)
  925. for i=i1,i2,is do
  926. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(270*i)),0)
  927. LW.C1 = ca(mr(-80*i),mr(40*i),0)
  928. LW.C0 = cf(0.6*i,0.3*i,-1*i)
  929. RW.C1 = ca(mr(40+(-120*i)),mr(20+(-60*i)),0)
  930. RW.C0 = cf(-0.4+(-0.2*i),-0.1+(0.4*i),0.4+(-1.4*i))
  931. wait()
  932. end
  933. H1w.Part0 = Torso
  934. H1w.Part1 = H1
  935. H1w.C0 = cf(0.4,-0.7,0.5) *ca(0,0,mr(45))
  936. H1w.C1 = cf(0,0,0) *ca(0,0,0)
  937. for i=i1,i2,is do
  938. RW.C1 = ca(mr(40*i),mr(20*i),0)
  939. RW.C0 = cf(-0.4*i,-0.1*i,0.4*i)
  940. wait()
  941. end
  942. Anim.Act = false
  943. end
  944. Anims.ChangeToDual = function(i1,i2,is)
  945. Anim.Act = true
  946. for i=i1,i2,is*Speed do
  947. H1w.C0 = cf(0,-1.1,0) *ca(mr(-80*i),mr(50*i),0)
  948. wait()
  949. end
  950. Sound(Sounds.SaberHit,1,1)
  951. Sound(Sounds.SaberLightUp,2,0.5)
  952. H1w.Part0 = La
  953. H1w.Part1 = H1
  954. H2w.Part0 = Ra
  955. H2w.Part1 = H2
  956. H2w.C1 = ca(mr(-90),0,0)
  957. for i=i1,i2,is*Speed do
  958. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-90+(-90*i)),mr(20+(-20*i)))
  959. H2w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(90*i)),mr(-35+(-35*i)))
  960. LW.C1 = ca(mr(-80+(20*i)),mr(40+(-70*i)),0)
  961. LW.C0 = cf(0.6+(-0.6*i),0.3+(-0.3*i),-1+(0.5*i))
  962. RW.C1 = ca(mr(-80+(20*i)),mr(-40+(70*i)),0)
  963. RW.C0 = cf(-0.6+(0.6*i),0.3+(-0.3*i),-1+(0.5*i))
  964. wait()
  965. end
  966. Anim.Act = false
  967. end
  968. Anims.ChangeToSingle = function(i1,i2,is)
  969. Anim.Act = true
  970. for i=i2,i1,-is*Speed do
  971. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-90+(-90*i)),mr(20+(-20*i)))
  972. H2w.C0 = cf(0,-1.1,0) *ca(0,mr(90+(90*i)),mr(-35+(-35*i)))
  973. LW.C1 = ca(mr(-80+(20*i)),mr(40+(-70*i)),0)
  974. LW.C0 = cf(0.6+(-0.6*i),0.3+(-0.3*i),-1+(0.5*i))
  975. RW.C1 = ca(mr(-80+(20*i)),mr(-40+(70*i)),0)
  976. RW.C0 = cf(-0.6+(0.6*i),0.3+(-0.3*i),-1+(0.5*i))
  977. wait()
  978. end
  979. H1w.Part0 = Ra
  980. H1w.Part1 = H1
  981. H2w.Part0 = H1
  982. H2w.Part1 = H2
  983. H2w.C1 = ca(0,0,0)
  984. H2w.C0 = cf(0,-0.8,0) *ca(mr(180),0,0)
  985. Sound(Sounds.SaberLightUp,2,0.5)
  986. Sound(Sounds.SaberHit,1,1)
  987. for i=i2,i1,-is*Speed do
  988. H1w.C0 = cf(0,-1.1,0) *ca(mr(-80*i),mr(50*i),0)
  989. wait()
  990. end
  991. Anim.Act = false
  992. end
  993. Anims.RotorBlade = function(i1,i2,is,RaigCost)
  994. local lolpos = (Torso.Position - mouse.hit.p).unit
  995. local allx = (lolpos.y*80)-10
  996. local ally = (((mouse.X-(mouse.ViewSizeX/2))/mouse.ViewSizeX)*1.8)*-90
  997. Anim.Act = true
  998. for i=i1,i2,is do
  999. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
  1000. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(90*i),0)
  1001. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
  1002. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(((-90)+ally)*i),0)
  1003. Torw.C1 = ca(0,mr(-90*i),0)
  1004. wait()
  1005. end
  1006. DebounceSpeed = DebounceSpeed - (0.5*Speed)
  1007. Hum.WalkSpeed = Hum.WalkSpeed + (8*Speed)
  1008. Left = true
  1009. Right = true
  1010. Dash(Blad1,2/Speed,nil,2)
  1011. Dash(Blad2,2/Speed,nil,2)
  1012. H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,-0.4,0) *ca(mr(-90),0,0)
  1013. local soundtime = 0
  1014. for i=i1,i2*4,is do
  1015. if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
  1016. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(360*i),0)
  1017. wait()
  1018. end
  1019. H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,0,0) *ca(mr(-90),0,0)
  1020. DebounceSpeed = DebounceSpeed + (0.5*Speed)
  1021. Hum.WalkSpeed = Hum.WalkSpeed - (8*Speed)
  1022. Left = false
  1023. Right = false
  1024. for i=i2,i1,-is do
  1025. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
  1026. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(90*i),0)
  1027. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
  1028. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(((-90)+ally)*i),0)
  1029. Torw.C1 = ca(0,mr(-90*i),0)
  1030. wait()
  1031. end
  1032. Torw.C1 = ca(0,0,0)
  1033. Anim.Act = false
  1034. end
  1035. -------
  1036. Anims.Boomerang = function(i1,i2,is,RaigCost)
  1037. MinusRage(RaigCost)
  1038. local lolpos = (Head.Position - mouse.hit.p).unit
  1039. local allx = (lolpos.y*80)-10
  1040. Anim.Act = true
  1041. for i=i1,i2,is do
  1042. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
  1043. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(60*i),0)
  1044. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
  1045. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-60*i),0)
  1046. Torw.C1 = ca(0,mr(-60*i),0)
  1047. H1w.C0 = cf(0,-1.1,0) *ca(mr(80*i),0,0)
  1048. wait()
  1049. end
  1050. DebounceSpeed = DebounceSpeed - (0.5*Speed)
  1051. Left = true
  1052. Right = true
  1053. Dash(Blad1,3.8/Speed,nil,2)
  1054. Dash(Blad2,3.8/Speed,nil,2)
  1055. H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,-0.4,0) *ca(mr(-90),0,0)
  1056. local soundtime = 0
  1057. for i=i1,i2,is/2 do
  1058. if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
  1059. H1w.C0 = cf(10*i,-1.1+(-15*i),0) *ca(mr(90),mr(720*i),0)
  1060. wait()
  1061. end
  1062. for i=i1,i2,is/2 do
  1063. if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
  1064. H1w.C0 = cf(10+(-20*i),-16.1,0) *ca(mr(90),mr(720*i),0)
  1065. wait()
  1066. end
  1067. for i=i1,i2,is/2 do
  1068. if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end
  1069. H1w.C0 = cf(-10+(10*i),-16.1+(15*i),0) *ca(mr(90),mr(720*i),0)
  1070. wait()
  1071. end
  1072. H1w.C0 = cf(0,-1.1,0) *ca(0,0,0) H1w.C1 = cf(0,0,0) *ca(mr(-90),0,0)
  1073. DebounceSpeed = DebounceSpeed + (0.5*Speed)
  1074. Left = false
  1075. Right = false
  1076. for i=i2,i1,-is do
  1077. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(40+(-40*i)),0)
  1078. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(60*i),0)
  1079. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(allx*i)),mr(-40+(40*i)),0)
  1080. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-60*i),0)
  1081. Torw.C1 = ca(0,mr(-60*i),0)
  1082. H1w.C0 = cf(0,-1.1,0) *ca(mr(80*i),0,0)
  1083. wait()
  1084. end
  1085. Torw.C1 = ca(0,0,0)
  1086. Anim.Act = false
  1087. end
  1088. Anims.BoulderForce = function(i1,i2,is,RaigCost)
  1089. MinusRage(RaigCost)
  1090. Anim.Act = true
  1091. for i=i1,i2,is do
  1092. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
  1093. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
  1094. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
  1095. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
  1096. Torw.C1 = ca(0,mr(50*i),0)
  1097. wait()
  1098. end
  1099. local bould = p(workspace,"Block",4,4,8,true,true,0,0,"Medium stone grey") bould.Name = "Boulder" bould.Material = "Concrete"
  1100. local rm = RockMesh:Clone() rm.Scale = Vector3.new(3,3,4.8) rm.Parent = bould
  1101. bould.Elasticity = 0 bould.Friction = 2 bould.CFrame = cf(Torso.Position.x+(math.random(-14,14)),Torso.Position.y-5,Torso.Position.z+(math.random(-14,14))) *CFrame.Angles(math.random(-33,33)/10,math.random(-33,33)/10,math.random(-33,33)/10)
  1102. local warpdes = true
  1103. local bpos = bould.Position
  1104. Sound(Sounds.Cast,0.95,0.8)
  1105. coroutine.resume(coroutine.create(function() repeat Functions.BrickWarpDesign(bould,9) wait() until warpdes == false end))
  1106. for i=0,1,0.08 do bould.CFrame = CFrame.new(bpos.x,bpos.y,bpos.z) + Vector3.new(0,20*i,0) wait() end wait(1) bould.CFrame = CFrame.new(bpos.x,bpos.y+20,bpos.z) bould.CFrame = cf(bould.Position,mouse.hit.p)
  1107. bould.Anchored = false wait() bould.Velocity = bould.CFrame.lookVector *(math.random(180,350)) bould.Touched:connect(function(hit) Functions.BoulderTouch(hit,bould) end)
  1108. wait(0.5)
  1109. warpdes = false
  1110. game.Debris:AddItem(bould,10)
  1111. for i=i2,i1,-is do
  1112. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
  1113. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
  1114. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
  1115. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
  1116. Torw.C1 = ca(0,mr(50*i),0)
  1117. wait()
  1118. end
  1119. Torw.C1 = ca(0,0,0)
  1120. Anim.Act = false
  1121. end
  1122. Anims.ForceWave = function(i1,i2,is,RaigCost)
  1123. local Hit, hitpos = rayCast(Torso.Position,((Torso.Position - Vector3.new(0,10000,0)) - Torso.Position),999.999,Player.Character)
  1124. if Hit == nil then Anim.Act = false return end
  1125. MinusRage(RaigCost)
  1126. Anim.Act = true
  1127. lh2,rh2 = FeetWeld(true,Lh,Rh)
  1128. local bp2 = Instance.new("BodyPosition",Torso)
  1129. bp2.maxForce = Vector3.new(0,math.huge,0)
  1130. Humanoid.WalkSpeed = Humanoid.WalkSpeed - (RealSpeed-4)
  1131. DebounceSpeed = DebounceSpeed + (1.1*Speed)
  1132. bp2.position = Torso.Position + Vector3.new(0,25,0)
  1133. Dash(Blad1,2.5/Speed)
  1134. Dash(Blad2,2.5/Speed)
  1135. local wav = p(Torm,"Block",0.1,0.1,0.1,true,false,0.3,0,BladeColor) wav.Anchored = true
  1136. local wavm = BlastMesh:Clone()
  1137. wavm.Parent = wav
  1138. wavm.Scale = Vector3.new(15,6,15)
  1139. local cff = Torso.CFrame - Vector3.new(0,0,0)
  1140. coroutine.resume(coroutine.create(function()
  1141. Dash(Blad1,4/Speed)
  1142. Dash(Blad2,4/Speed)
  1143. for i=i1,i2,is*Speed do
  1144. LW.C1 = ca(mr(-80+(-100*i)),mr(40-(40*i)),mr(45*i))
  1145. LW.C0 = cf(0.6,0.3+(1.4*i),-1+(1*i))
  1146. RW.C1 = ca(mr(-80+(-100*i)),mr(-40+(40*i)),mr(-45*i))
  1147. RW.C0 = cf(-0.6,0.3+(1.4*i),-1+(1*i))
  1148. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  1149. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  1150. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  1151. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  1152. H1w.C0 = cf(0,-1.1+(-0.9*i),0) *ca(0,mr(360*i),0)
  1153. H1w.C1 = ca(mr(-90+(40*i)),0,0)
  1154. wait()
  1155. end for i=i1,i2*3,is*Speed do H1w.C1 = ca(mr(-50),mr(360*i),0) wait() end end)) Sound(Sounds.Cast,0.45,1) for i=i1,i2*5,is do Functions.BrickWarpDesign(Torso,13) wav.CFrame = cff *ca(0,mr(180*i),0) wait() end
  1156. for i=1,0.3,-0.14*Speed do wav.Transparency = i wait() end wav:Remove()
  1157. for i=i2,i1,-is*Speed do
  1158. LW.C1 = ca(mr(-80+(-100*i)),mr(40-(40*i)),mr(45*i))
  1159. LW.C0 = cf(0.6,0.3+(1.4*i),-1+(1*i))
  1160. RW.C1 = ca(mr(-80+(-100*i)),mr(-40+(40*i)),mr(-45*i))
  1161. RW.C0 = cf(-0.6,0.3+(1.4*i),-1+(1*i))
  1162. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  1163. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  1164. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  1165. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  1166. H1w.C0 = cf(0,-1.1+(-0.9*i),0) *ca(0,mr(360*i),0)
  1167. H1w.C1 = ca(mr(-90+(40*i)),0,0)
  1168. wait()
  1169. end
  1170. bp2:Remove()
  1171. local bg = Instance.new("BodyGyro",Torso) bg.maxTorque = Vector3.new(math.huge,0,math.huge)
  1172. local bp = Instance.new("BodyPosition",Torso) bp.position = Torso.Position bp.maxForce = Vector3.new(math.huge,1000000,math.huge)
  1173. rpos = math.abs(hitpos.y - Torso.Position.y)
  1174. rpos = rpos - 1.2
  1175. local tpos = Torso.Position
  1176. Hum.WalkSpeed = 0
  1177. Hum.PlatformStand = true
  1178. Dash(Blad2,1.6/Speed,RingMesh.MeshId)
  1179. for i=i1,i2,is do
  1180. bp.position = tpos - Vector3.new(0,rpos*i,0)
  1181. Neck.C0 = cf(0,1-(0.5*i),-0.5*i) *ca(Neck.C1:toEulerAnglesXYZ())
  1182. Torw.C1 = ca(mr(20*i),0,0)
  1183. Torw.C0 = cf(0,-0.2*i,-0.2*i)
  1184. lh2.C0 = cf(-0.5,-1.9+(1*i),-1.1*i) *ca(mr(10*i),mr(90),0)
  1185. rh2.C0 = cf(0.5,-1.9+(1*i),0.1*i) *ca(mr(-95*i),mr(-90),0)
  1186. LW.C1 = ca(mr(-80+(30*i)),mr(40),0)
  1187. LW.C0 = cf(0.6,0.3-(0.3*i),-1+(0.3*i))
  1188. RW.C1 = ca(mr(-80+(30*i)),mr(-40),0)
  1189. RW.C0 = cf(-0.6,0.3-(0.3*i),-1+(0.3*i))
  1190. H1w.C0 = cf(0,-1.1,0) *ca(mr(55*i),0,0)
  1191. wait()
  1192. end
  1193. wait(0.25)
  1194. Sound(Sounds.Boom,1,1)
  1195. Sound(Sounds.EnergyBlast,0.9,1)
  1196. Right = true
  1197. ShockWave(Torso,50,BladeColor)
  1198. wait(1.5)
  1199. Right = false
  1200. local t2pos = Torso.Position
  1201. for i=i2,i1,-is do
  1202. bp.position = t2pos - Vector3.new(0,1.5-(1.5*i),0)
  1203. Neck.C0 = cf(0,1-(0.5*i),-0.5*i) *ca(Neck.C1:toEulerAnglesXYZ())
  1204. Torw.C1 = ca(mr(20*i),0,0)
  1205. Torw.C0 = cf(0,-0.2*i,-0.2*i)
  1206. lh2.C0 = cf(-0.5,-1.9+(1*i),-1.1*i) *ca(mr(10*i),mr(90),0)
  1207. rh2.C0 = cf(0.5,-1.9+(1*i),0.1*i) *ca(mr(-95*i),mr(-90),0)
  1208. LW.C1 = ca(mr(-80+(30*i)),mr(40),0)
  1209. LW.C0 = cf(0.6,0.3-(0.3*i),-1+(0.3*i))
  1210. RW.C1 = ca(mr(-80+(30*i)),mr(-40),0)
  1211. RW.C0 = cf(-0.6,0.3-(0.3*i),-1+(0.3*i))
  1212. H1w.C0 = cf(0,-1.1,0) *ca(mr(55*i),0,0)
  1213. wait()
  1214. end
  1215. DebounceSpeed = DebounceSpeed - (1.1*Speed)
  1216. bp:Remove()
  1217. bg:Remove()
  1218. Hum.PlatformStand = false
  1219. Hum.WalkSpeed = RealSpeed
  1220. Torw.C1 = ca(0,0,0)
  1221. Anim.Act = false
  1222. Lh,Rh = FeetWeld(false,lh2,rh2)
  1223. end
  1224. Anims.DualSpin = function(i1,i2,is,RaigCost)
  1225. MinusRage(RaigCost)
  1226. Anim.Act = true
  1227. for i=i1,i2,is*Speed do
  1228. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-180-(-90*i)),mr(0*i)) H1w.C1 = ca(mr(-90-(60*i)),0,mr(0*i))
  1229. H2w.C0 = cf(0,-1.1,0) *ca(0,mr(180-(270*i)),mr(0*i)) H2w.C1 = ca(mr(-90+(-30*i)),0,0)
  1230. LW.C1 = ca(mr(-60+(-40*i)),mr(-30+(-75*i)),mr(0*i))
  1231. LW.C0 = cf(0.13*i,0.5*i,-0.5+(0.5*i))
  1232. RW.C1 = ca(mr(-60+(-20*i)),mr(30+(45*i)),mr(0*i))
  1233. RW.C0 = cf(0.13*i,0.4*i,-0.5+(0.4*i))
  1234. wait()
  1235. end
  1236. DebounceSpeed = DebounceSpeed - (0.5*Speed) Right = true Left = true Dash(Blad1,2.6/Speed,nil,2) Dash(Blad2,2.6/Speed,nil,2) local x,y,z = Neck.C0:toEulerAnglesXYZ()
  1237. local soundtime = 0
  1238. for i=i1,i2*4,is*Speed do if soundtime == 10 then soundtime = 0 Sound(Sounds.SaberSlash,2.5,0.5) else soundtime = soundtime + 1 end Torw.C1 = ca(0,mr(i*360),0) Neck.C0 = cf(0,1,0) *ca(x,y,z+mr(-360*i)) wait() end Neck.C0 = cf(0,1,0) *ca(x,y,z)Torw.C1 = ca(0,0,0)
  1239. DebounceSpeed = DebounceSpeed + (0.5*Speed) for i=i2,i1,-is*Speed do
  1240. H1w.C0 = cf(0,-1.1,0) *ca(0,mr(-180-(-90*i)),mr(0*i)) H1w.C1 = ca(mr(-90-(60*i)),0,mr(0*i))
  1241. H2w.C0 = cf(0,-1.1,0) *ca(0,mr(180-(270*i)),mr(0*i)) H2w.C1 = ca(mr(-90+(-30*i)),0,0)
  1242. LW.C1 = ca(mr(-60+(-40*i)),mr(-30+(-75*i)),mr(0*i))
  1243. LW.C0 = cf(0.13*i,0.5*i,-0.5+(0.5*i))
  1244. RW.C1 = ca(mr(-60+(-20*i)),mr(30+(45*i)),mr(0*i))
  1245. RW.C0 = cf(0.13*i,0.4*i,-0.5+(0.4*i))
  1246. wait()
  1247. end Right = false Left = false
  1248. Anim.Act = false
  1249. end
  1250.  
  1251. ----------------------------
  1252. ----------------------------
  1253. ----------------------------
  1254. ----------------------------
  1255.  
  1256. Lh = Torso["Left Hip"]
  1257. Rh = Torso["Right Hip"]
  1258.  
  1259. Functions = {}
  1260. Functions.BoulderTouch = function(hit2,bould)
  1261. print(bould.Name)
  1262. for i,v in pairs(workspace:GetChildren()) do
  1263. if v ~= Char and v ~= nil and v:findFirstChild("Torso") ~= nil and v:findFirstChild("Humanoid") ~= nil then
  1264. if math.abs((v.Torso.Position-bould.Position).magnitude) < 11 and ft(RightDebounce,v.Name) == nil then
  1265. Sound(Sounds.Smash,1,1)
  1266. Dmgz(v.Humanoid,Damage["BoulderForce"])
  1267. table.insert(RightDebounce,v.Name)
  1268. print(v.Name)
  1269. coroutine.resume(coroutine.create(function()wait(DebounceSpeed) local nf = ft(RightDebounce,v.Name) if nf ~= nil then table.remove(RightDebounce,nf) end end))
  1270. end
  1271. else
  1272. if v ~= bould and v:IsA("BasePart") and v.Anchored == false and math.abs((v.Position-bould.Position).magnitude) < 11 then v:BreakJoints() v.Velocity = cf(bould.Position,v.Position).lookVector*10 + Vector3.new(0,10,0) end
  1273. end
  1274. end -- for
  1275. end
  1276. Functions.Sparkle = function(bb,scal,si)
  1277. if si == nil then si = 1 end
  1278. local rand = bb.Position + Vector3.new(math.random(-scal,scal),math.random(-scal,scal),math.random(-scal,scal))
  1279. local np = p(Torm,"Block",0.1,0.1,0.1,false,true,0.1,0.2,BladeColor)
  1280. np.CFrame = cf(rand.x,rand.y,rand.z) *ca(math.random(-33,33)/10,math.random(-33,33)/10,math.random(-33,33)/10)
  1281. local dm = DiamondMesh:Clone() dm.Scale = Vector3.new(0,0,0) dm.Parent = np
  1282. coroutine.resume(coroutine.create(function()
  1283. for i=0,1*si,0.1*si do
  1284. dm.Scale = Vector3.new(1*i,1.25*i,1*i)
  1285. wait()
  1286. end
  1287. end))
  1288. coroutine.resume(coroutine.create(function()
  1289. wait(0.1)
  1290. for i=0,1,0.1 do
  1291. np.Transparency = i
  1292. wait()
  1293. end
  1294. np:Remove()
  1295. end))
  1296. end
  1297. Functions.BrickWarpDesign = function(bb,scal)
  1298. local rand = bb.Position + Vector3.new(math.random(-scal,scal),math.random(-scal,scal),math.random(-scal,scal))
  1299. local mag = (rand - bb.Position).magnitude
  1300. local np = p(Torm,"Block",0.1,0.1,mag-3,false,true,0.1,0.2,BladeColor)
  1301. np.CFrame = cf(bb.Position,rand)
  1302. np.CFrame = np.CFrame + np.CFrame.lookVector*((scal/5)+(mag/2))
  1303. coroutine.resume(coroutine.create(function()
  1304. for i=0.1,1,0.05 do
  1305. np.Transparency = i
  1306. wait()
  1307. end
  1308. np:Remove()
  1309. end))
  1310. end
  1311. Functions.RageRegen = function()
  1312. local lostcontrol = false
  1313. local hpos = Torso.Position.y + 10
  1314. Anim.Move = "RageRegening"
  1315. Anim.Act = true
  1316. local wav = p(Torm,"Block",0.1,0.1,0.1,true,false,1,0,BladeColor) wav.Anchored = true
  1317. local wavm = BlastMesh:Clone()
  1318. wavm.Parent = wav
  1319. local wavv = 0
  1320. wavm.Scale = Vector3.new(5,3.5,5)
  1321. wav.CFrame = cf((Torso.CFrame * CFrame.new(0,-2.5,0)).p) *ca(0,mr(wavv),0)
  1322. local bp = Instance.new("BodyPosition",Torso)
  1323. bp.maxForce = Vector3.new(0,math.huge,0)
  1324. Humanoid.WalkSpeed = Humanoid.WalkSpeed - (RealSpeed-4)
  1325. bp.position = Torso.Position + Vector3.new(0,10,0)
  1326. local bpos = bp.position
  1327. coroutine.resume(coroutine.create(function()
  1328. lh2,rh2 = FeetWeld(true,Lh,Rh)
  1329. if SwordType == "Single" then
  1330. for i=0,1,0.1*Speed do
  1331. LW.C1 = ca(mr(-80+(-30*i)),mr(40-(40*i)),0)
  1332. LW.C0 = cf(0.6-(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(120*i),0)
  1333. RW.C1 = ca(mr(-80+(-30*i)),mr(-40+(40*i)),0)
  1334. RW.C0 = cf(-0.6+(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(-120*i),0)
  1335. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  1336. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  1337. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  1338. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  1339. wait()
  1340. end
  1341. else
  1342. for i=0,1,0.1*Speed do
  1343. LW.C1 = ca(mr(-60+(-50*i)),mr(-40-(-40*i)),0)
  1344. LW.C0 = cf(-0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(120*i),0)
  1345. RW.C1 = ca(mr(-60+(-50*i)),mr(40+(-40*i)),0)
  1346. RW.C0 = cf(0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(-120*i),0)
  1347. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  1348. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  1349. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  1350. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  1351. wait()
  1352. end
  1353. end
  1354. local function movezx(i1,i2,is,bp)
  1355. if SwordType == "Single" then
  1356. for i=i1,i2,is*Speed do
  1357. LW.C1 = ca(mr(-120+(20*i)),0,0)
  1358. LW.C0 = cf(0,0.8,0.7) *ca(0,mr(120+(20*i)),0)
  1359. RW.C1 = ca(mr(-120+(20*i)),0,0)
  1360. RW.C0 = cf(0,0.8,0.7) *ca(0,mr(-120+(-20*i)),0)
  1361. lh2.C1 = ca(mr(30+(-15*i)),0,mr(15+(-8*i)))
  1362. rh2.C1 = ca(mr(30+(-15*i)),0,mr(-15+(8*i)))
  1363. lh2.C0 = cf(-0.7,-1.9,0.35)
  1364. rh2.C0 = cf(0.7,-1.9,0.35)
  1365. bp.position = Vector3.new(bpos.x,(hpos+10)+(3*i),bpos.z)
  1366. wait()
  1367. end
  1368. else
  1369. for i=i1,i2,is*Speed do
  1370. LW.C1 = ca(mr(-110),mr(0),0)
  1371. LW.C0 = cf(-0.1,0.8,0.7) *ca(0,mr(120+(20*i)),0)
  1372. RW.C1 = ca(mr(-110),mr(0),0)
  1373. RW.C0 = cf(0.1,0.8,0.7) *ca(0,mr(-120+(-20*i)),0)
  1374. lh2.C1 = ca(mr(30+(-15*i)),0,mr(15+(-8*i)))
  1375. rh2.C1 = ca(mr(30+(-15*i)),0,mr(-15+(8*i)))
  1376. lh2.C0 = cf(-0.7,-1.9,0.35)
  1377. rh2.C0 = cf(0.7,-1.9,0.35)
  1378. bp.position = Vector3.new(bpos.x,(hpos+10)+(3*i),bpos.z)
  1379. wait()
  1380. end
  1381. end
  1382. end
  1383. local moved = 2
  1384. repeat
  1385. if Rage >= MaxRage or Anim.key.z == false then break end
  1386. if moved == 2 then moved = 1 movezx(0,1,0.025,bp) else moved = 2 movezx(1,0,-0.025,bp) end
  1387. until Rage >= MaxRage or Anim.key.z == false or lostcontrol == true
  1388. if SwordType == "Single" then
  1389. for i=1,0,-0.1*Speed do
  1390. LW.C1 = ca(mr(-80+(-30*i)),mr(40-(40*i)),0)
  1391. LW.C0 = cf(0.6-(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(120*i),0)
  1392. RW.C1 = ca(mr(-80+(-30*i)),mr(-40+(40*i)),0)
  1393. RW.C0 = cf(-0.6+(0.6*i),0.3+(0.5*i),-1+(1.7*i)) *ca(0,mr(-120*i),0)
  1394. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  1395. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  1396. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  1397. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  1398. wait()
  1399. end
  1400. else
  1401. for i=1,0,-0.1*Speed do
  1402. LW.C1 = ca(mr(-60+(-50*i)),mr(-40-(-40*i)),0)
  1403. LW.C0 = cf(-0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(120*i),0)
  1404. RW.C1 = ca(mr(-60+(-50*i)),mr(40+(-40*i)),0)
  1405. RW.C0 = cf(0.1,0.8*i,-0.5+(1.2*i)) *ca(0,mr(-120*i),0)
  1406. lh2.C1 = ca(mr(30*i),0,mr(15*i))
  1407. rh2.C1 = ca(mr(30*i),0,mr(-15*i))
  1408. lh2.C0 = cf(-0.5+(-0.2*i),-1.9,0.35*i)
  1409. rh2.C0 = cf(0.5+(0.2*i),-1.9,0.35*i)
  1410. wait()
  1411. end
  1412. end
  1413. Lh,Rh = FeetWeld(false,lh2,rh2)
  1414. wait(0.6)
  1415. Anim.Act = false
  1416. Anim.Move = "None"
  1417. end))
  1418. for i=1,0.3,-0.14*Speed do wav.Transparency = i wait() end
  1419. rpos = 0
  1420. Sound(Sounds.Cast,0.8,1)
  1421. repeat wait()
  1422. local Hit, hitpos = rayCast(Torso.Position,((Torso.Position - Vector3.new(0,10000,0)) - Torso.Position),999.999,Player.Character)
  1423. if Hit == nil then lostcontrol = true break end
  1424. hpos = hitpos.y if math.random(1,6) == 4 then Functions.Sparkle(Torso,8) end
  1425. if math.random(1,3) == 3 then Functions.BrickWarpDesign(Torso,10) end wavv = wavv + 10 Rage = Rage - (RageCost["RageRegening"]*RageIncome)
  1426. wav.CFrame = cf(Torso.Position.x,hpos+1.4,Torso.Position.z) *ca(0,mr(wavv),0)
  1427. until Rage >= MaxRage or Anim.key.z == false
  1428. for i=0.3,01,0.14*Speed do wav.Transparency = i wait() end wav:Remove()
  1429. bp:Remove()
  1430. Humanoid.WalkSpeed = Humanoid.WalkSpeed + (RealSpeed-4)
  1431. end
  1432. Functions.Teleport = function(i1,i2,is,RaigCost)
  1433. Anim.Act = true
  1434. for i=i1,i2,is*Speed do
  1435. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
  1436. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
  1437. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
  1438. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
  1439. Torw.C1 = ca(0,mr(50*i),0)
  1440. wait()
  1441. end
  1442. local tele = false
  1443. local tele2 = false -- for mouse
  1444. local mouseact = mouse.Button1Up:connect(function() tele2 = true end)
  1445. coroutine.resume(coroutine.create(function() Sound(Sounds.Cast,1.2,1) wait(12) tele = true end))
  1446. local telepos = Torso.Position
  1447. local telehit = nil
  1448. local wav = p(Torm,"Block",0.1,0.1,0.1,true,false,0.3,0.1,BladeColor) wav.Anchored = true
  1449. local wavm = BlastMesh:Clone()
  1450. wavm.Parent = wav
  1451. local wavv = 0
  1452. wavm.Scale = Vector3.new(3.5,2,3.5)
  1453. repeat
  1454. local mpos = mouse.hit.p + Vector3.new(0,2,0)
  1455. telehit,telepos = rayCast(mpos,((mpos - Vector3.new(0,10000,0)) - mpos),999.999,Player.Character)
  1456. wavv = wavv + 8 Functions.Sparkle(La,3) Functions.BrickWarpDesign(La,4)
  1457. if telehit ~= nil then wav.Transparency = 0 wav.CFrame = cf(telepos.x,telepos.y+1,telepos.z) *ca(0,mr(wavv),0) else wav.Transparency = 1 end
  1458. wait() until tele == true or tele2 == true mouseact:disconnect()
  1459. if telehit == nil or math.abs((Torso.Position - telepos).magnitude) > Props.MaxTeleDistance then
  1460. Sound(Sounds.Punch,1,1) for i=0.3,1,0.14 do wavm.Scale = Vector3.new(3.5+(5*i),2,3.5+(5*i)) wav.Transparency = i wait() end wav:Remove()
  1461. wav:Remove()
  1462. else
  1463. MinusRage(RaigCost)
  1464. for i=1,10 do wait() Functions.Sparkle(Torso,5,3) Functions.BrickWarpDesign(Torso,6) end
  1465. ShockWave(Torso,7,BladeColor)
  1466. Torso.CFrame = wav.CFrame + Vector3.new(0,2.2,0) Sound(Sounds.EnergyBlast,1.2,0.6)
  1467. ShockWave(Torso,7,BladeColor)
  1468. for i=1,10 do wait() Functions.Sparkle(Torso,5,3) Functions.BrickWarpDesign(Torso,6) end
  1469. for i=0.3,1,0.14 do wavm.Scale = Vector3.new(3.5+(5*i),2,3.5+(5*i)) wav.Transparency = i wait() end wav:Remove()
  1470. end
  1471. for i=i2,i1,-is*Speed do
  1472. LW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(40+(-40*i)),0)
  1473. LW.C0 = cf(0.6+(-0.9*i),0.3,-1+(1*i)) *ca(0,mr(50*i),0)
  1474. RW.C1 = cf(0,0.5*i,0) *ca(mr(-80+(-25*i)),mr(-40+(40*i)),0)
  1475. RW.C0 = cf(-0.6+(0.9*i),0.3,-1+(1*i)) *ca(0,mr(-50*i),0)
  1476. Torw.C1 = ca(0,mr(50*i),0)
  1477. wait()
  1478. end
  1479. Anim.Act = false
  1480. end
  1481.  
  1482. --------------------------------------------------------------------------------------------------------------
  1483. --------------------------------------------------------------------------------------------------------------
  1484. --------------------------------------------------------------------------------------------------------------
  1485. --------------------------------------------------------------------------------------------------------------
  1486. bin.Selected:connect(function(mm)
  1487. Mouse = mouse
  1488. mouse = mm
  1489. Torso["Left Hip"].Part0 = Tor
  1490. Torso["Right Hip"].Part0 = Tor
  1491. RS.Parent = nil
  1492. LS.Parent = nil
  1493. RW.Parent = Torso
  1494. RW.Part0 = Fra
  1495. RW.Part1 = Ra
  1496. LW.Parent = Torso
  1497. LW.Part0 = Fla
  1498. LW.Part1 = La
  1499. RW.C0 = CFrame.new(0,0,0) RW.C1 = CFrame.new(0,0,0)
  1500. LW.C0 = CFrame.new(0,0,0) LW.C1 = CFrame.new(0,0,0)
  1501. Anims.Equip(0,1,0.07*Speed)
  1502. Anim.Equipped = true
  1503. mouse.KeyDown:connect(function(key)
  1504. key:lower()
  1505. pcall(function() Anim.key[key:lower()] = true end)
  1506. keydown = true
  1507. if key == "z" and Anim.Move == "None" and not Anim.Act then
  1508. Functions.RageRegen()
  1509. end
  1510. if SwordType == "Single" then
  1511. if key == "e" and Anim.Move == "None" and not Anim.Act and RageCost["RotorBlade"] <= Rage then
  1512. Anim.Move = "RotorBlade"
  1513. Anims.RotorBlade(0,1,0.08*Speed,RageCost["RotorBlade"])
  1514. Anim.Move = "None"
  1515. elseif key == "q" and Anim.Move == "None" and not Anim.Act and RageCost["Boomerang"] <= Rage then
  1516. Anim.Move = "Boomerang"
  1517. Anims.Boomerang(0,1,0.08*Speed,RageCost["Boomerang"])
  1518. Anim.Move = "None"
  1519. elseif key == "f" and Anim.Move == "None" and not Anim.Act and RageCost["BoulderForce"] <= Rage then
  1520. Anim.Move = "BoulderForce"
  1521. Anims.BoulderForce(0,1,0.08*Speed,RageCost["BoulderForce"])
  1522. Anim.Move = "None"
  1523. elseif key == "r" and Anim.Move == "None" and not Anim.Act and RageCost["ForceWave"] <= Rage then
  1524. Anim.Move = "ForceWave"
  1525. Anims.ForceWave(0,1,0.08*Speed,RageCost["ForceWave"])
  1526. Anim.Move = "None"
  1527. elseif key == "t" and Anim.Move == "None" and not Anim.Act and RageCost["Teleport"] <= Rage then
  1528. Anim.Move = "Teleport"
  1529. Functions.Teleport(0,1,0.08*Speed,RageCost["Teleport"])
  1530. Anim.Move = "None"
  1531. end
  1532. elseif SwordType == "Dual" then
  1533. if key == "e" and Anim.Move == "None" and not Anim.Act and RageCost["DualSpin"] <= Rage then
  1534. Anim.Move = "DualSpin"
  1535. Anims.DualSpin(0,1,0.08*Speed,RageCost["DualSpin"])
  1536. Anim.Move = "None"
  1537. end
  1538. end
  1539. end)
  1540. mouse.KeyUp:connect(function(key)
  1541. pcall(function() Anim.key[key:lower()] = false end)
  1542. keydown = false
  1543. end)
  1544.  
  1545. mouse.Button1Down:connect(function() Anim.Button = true
  1546. if not Anim.Click and Anim.Move == "None" and not Anim.Act then
  1547. Anim.Click = true
  1548. if Anim.CanBerserk ~= 0 then Anim.CanBerserk = Anim.CanBerserk + 1 end
  1549. if Anim.CanBerserk == 0 and RageCost["Berserk"] <= Rage then
  1550. Rage = Rage - RageCost["Berserk"]
  1551. Anim.ComboBreak = true
  1552. Speed = Speed + 0.5
  1553. Anim.CanBerserk = Anim.CanBerserk + 1
  1554. --Anim.Move = "LeftPunch"
  1555. --Anims.LeftPunch(0,1,0.1*Speed,0) Anim.Move = "None"
  1556. elseif Anim.CanBerserk == 2 then
  1557. Anim.CanBerserk = 0
  1558. end
  1559. coroutine.resume(coroutine.create(function() local oldcomb = Anim.CanBerserk wait(0.5) if Anim.ComboBreak == true and Anim.CanBerserk == oldcomb then Anim.ComboBreak = false Speed = Speed -0.5 Anim.CanBerserk = 0 end end))
  1560. wait(0.1)
  1561. Anim.Click = false
  1562. end
  1563. end)
  1564. mouse.Button1Up:connect(function() Anim.Button = false
  1565. end)
  1566. end)
  1567. bin.Deselected:connect(function(mouse)
  1568. Anim.Equipped = false
  1569. if SwordType == "Dual" then Anims.ChangeToSingle(0,1,0.25*Speed) SwordType = "Single" end
  1570. Anims.UnEquip(1,0,-0.08*Speed)
  1571. RW.Parent = nil
  1572. LW.Parent = nil
  1573. RS.Parent = Torso
  1574. RS.Part0 = Torso
  1575. RS.Part1 = Ra
  1576. LS.Parent = Torso
  1577. LS.Part0 = Torso
  1578. LS.Part1 = La
  1579. if Rh.Parent == nil then
  1580. FeetWeld(false,Lh,Rh)
  1581. end
  1582. Torso["Left Hip"].Part0 = Torso
  1583. Torso["Right Hip"].Part0 = Torso
  1584. end)
  1585. Hum.WalkSpeed = RealSpeed
  1586. Rage = 100000
  1587. wait(5)
  1588. Player.Character.Humanoid.MaxHealth = 250
  1589. end))end)
  1590. addfm('wings',function()
  1591. coroutine.resume(coroutine.create(function()
  1592. --MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: Go to line 3 and 5 and put your name where it says "YOUR NAME HERE"
  1593. local bin
  1594. if not (script.Parent:IsA('HopperBin')) then
  1595. bin=Instance.new('HopperBin',game.Players.LocalPlayer.Backpack)
  1596. bin.TextureId='http://www.roblox.com/asset/?id=54353092'
  1597. bin.Name='AlaFly'
  1598. script.Parent=bin
  1599. else
  1600. bin=script.Parent
  1601. end
  1602. player=bin.Parent.Parent
  1603. debris=game:service('Debris')
  1604. new=Instance.new
  1605. fnew=CFrame.new
  1606. local brick=BrickColor.new
  1607. vnew=Vector3.new
  1608. rot=CFrame.fromEulerAnglesXYZ
  1609. if script.className~='LocalScript'then
  1610. bin:remove()
  1611. end
  1612. T=new('Sound')
  1613. T.SoundId='rbxassetid://2101157'
  1614. T.Pitch=.4
  1615. motors={
  1616. right={},
  1617. left={},
  1618. mains={}
  1619. }
  1620. X=function(f)coroutine.resume(coroutine.create(f))end
  1621. life=function(obj,time)debris:AddItem(obj,time)end
  1622. local bv,bg,torso,Lmotor,Rmotor,head
  1623. fly=250
  1624. local findt=function()
  1625. for i,v in pairs(player.Character:children())do
  1626. if v.Name=='Torso'then
  1627. return v
  1628. end
  1629. end
  1630. end
  1631. wing=function()
  1632. torso=player.Character.Torso
  1633. for i,v in pairs(torso.Parent:children())do
  1634. if v.Name=='WingMain'then
  1635. v:remove()
  1636. end
  1637. end
  1638. local mainwingpart=new('WedgePart')
  1639. mainwingpart.Name='WingMain'
  1640. mainwingpart.CanCollide=false
  1641. mainwingpart.Size=vnew(1,1,1)
  1642. mainwingpart.Transparency=1
  1643. mainwingpart.BrickColor=BrickColor.White()
  1644. mainwingpart.Parent=player.Character
  1645. weld=new('Weld',torso)
  1646. weld.Part0=weld.Parent
  1647. weld.Part1=mainwingpart
  1648. weld.C0=fnew(0,.4,0)
  1649. local WingRight=new('WedgePart')
  1650. WingRight.formFactor=3
  1651. WingRight.Size=vnew(.04,.3,.5)
  1652. WingRight.CanCollide=false
  1653. WingRight.BrickColor=BrickColor.White()
  1654. WingRight.Parent=mainwingpart
  1655. Rmotor=new('Motor',mainwingpart)
  1656. Rmotor.Part0=Rmotor.Parent
  1657. Rmotor.Part1=WingRight
  1658. Rmotor.C1=rot(0,math.pi/1.5,0)+vnew(-.18,-.10,.8)
  1659. local nextpp=nil
  1660. local dan=-2
  1661. for w=1,15 do
  1662. wait()
  1663. dan=dan+1
  1664. pp=new('WedgePart')
  1665. pp.Locked=true
  1666. pp.BrickColor=BrickColor.White()
  1667. pp.formFactor=3
  1668. if w==1 then
  1669. pp.Size=vnew(.3,2.5,.8)
  1670. else
  1671. pp.Size=vnew(.3,1/(w/5),2/w)
  1672. end
  1673. pp.CanCollide=false
  1674. pp.BrickColor=BrickColor.White()
  1675. pp.CFrame=WingRight.CFrame
  1676. pp.Material='Slate'
  1677. pp.Parent=WingRight
  1678. if dan==1 then
  1679. dan=0
  1680. local asdlal=new('WedgePart')
  1681. asdlal.BrickColor=BrickColor.White()
  1682. asdlal.formFactor=3
  1683. asdlal.Size=vnew(.25,pp.Size.y,15/w)
  1684. asdlal:remove()
  1685. asdlal=new('WedgePart')
  1686. asdlal.formFactor=3
  1687. asdlal.BrickColor=BrickColor.White()
  1688. asdlal.Size=vnew(.25,.8,15/w)
  1689. asdlal.Locked=true
  1690. asdlal.CanCollide=false
  1691. asdlal.Material='Slate'
  1692. asdlal.Parent=pp
  1693. local mmm=new('Motor',pp)
  1694. mmm.Part0=pp
  1695. mmm.Part1=asdlal
  1696. mmm.C0=fnew(0,0,-asdlal.Size.z/2)
  1697. end
  1698. local ppmotor
  1699. if w==1 then
  1700. ppmotor=new('Motor',WingRight)
  1701. else
  1702. ppmotor=new('Motor',nextpp)
  1703. end
  1704. table.insert(motors.right,ppmotor)
  1705. ppmotor.Part0=ppmotor.Parent
  1706. ppmotor.Part1=pp
  1707. if w==1 then
  1708. ppmotor.C0=rot(-.04,-math.pi/6,0)+vnew(.3,0,-.1)
  1709. else
  1710. ppmotor.C0=rot(-.1/(w/7),-.07,0)+vnew(0,pp.Size.y,0)
  1711. end
  1712. nextpp=pp
  1713. end
  1714. local WingLeft=new('WedgePart')
  1715. WingLeft.formFactor=3
  1716. WingLeft.Size=vnew(.04,.3,.5)
  1717. WingLeft.CanCollide=false
  1718. WingLeft.BrickColor=BrickColor.White()
  1719. WingLeft.Parent=mainwingpart
  1720. Lmotor=new('Motor',mainwingpart)
  1721. Lmotor.Part0=Lmotor.Parent
  1722. Lmotor.Part1=WingLeft
  1723. Lmotor.C1=rot(0,-math.pi/1.5,0)+vnew(0.18,-.10,.8)
  1724. nextpp=nil
  1725. dan=-2
  1726. for w=1,15 do
  1727. wait()
  1728. dan=dan+1
  1729. pp=new('WedgePart')
  1730. pp.Locked=true
  1731. pp.BrickColor=BrickColor.White()
  1732. pp.formFactor=3
  1733. if w==1 then
  1734. pp.Size=vnew(.3,2.5,.8)
  1735. else
  1736. pp.Size=vnew(.3,1/(w/5),2/w)
  1737. end
  1738. pp.CanCollide=false
  1739. pp.BrickColor=BrickColor.White()
  1740. pp.CFrame=WingLeft.CFrame
  1741. pp.Material='Slate'
  1742. pp.Parent=WingLeft
  1743. if dan==1 then
  1744. dan=0
  1745. asdlal=new('WedgePart')
  1746. asdlal.BrickColor=BrickColor.White()
  1747. asdlal.formFactor=3
  1748. asdlal.Size=vnew(.25,pp.Size.y,15/w)
  1749. asdlal:remove()
  1750. asdlal=new('WedgePart')
  1751. asdlal.formFactor=3
  1752. asdlal.BrickColor=BrickColor.White()
  1753. asdlal.Size=vnew(.25,.8,15/w)
  1754. asdlal.Locked=true
  1755. asdlal.CanCollide=false
  1756. asdlal.Material='Slate'
  1757. asdlal.Parent=pp
  1758. mmm=new('Motor',pp)
  1759. mmm.Part0=pp
  1760. mmm.Part1=asdlal
  1761. mmm.C0=fnew(0,0,-asdlal.Size.z/2)
  1762. end
  1763. if w==1 then
  1764. ppmotor=new('Motor',WingLeft)
  1765. else
  1766. ppmotor=new('Motor',nextpp)
  1767. end
  1768. ppmotor.Part0=ppmotor.Parent
  1769. table.insert(motors.left,ppmotor)
  1770. ppmotor.Part1=pp
  1771. if w==1 then
  1772. ppmotor.C0=rot(-.04,math.pi/6,0)+vnew(-.3,0,-.1)
  1773. else
  1774. ppmotor.C0=rot(-.1/(w/7),.07,0)+vnew(0,pp.Size.y,0)
  1775. end
  1776. nextpp=pp
  1777. end
  1778. X(function()
  1779. for i,v in pairs(motors.right)do
  1780. v.C1=rot(.1,0,0)
  1781. wait()
  1782. end
  1783. for i,v in pairs(motors.right)do
  1784. v.C1=rot(0,-.1,-.1)
  1785. wait()
  1786. end
  1787. end)
  1788. X(function()
  1789. for i,v in pairs(motors.left)do
  1790. v.C1=rot(.1,0,0)
  1791. wait()
  1792. end
  1793. for i,v in pairs(motors.left)do
  1794. v.C1=rot(0,.1,.1)
  1795. wait()
  1796. end
  1797. end)
  1798. X(function()
  1799. for i,v in pairs(motors.right)do
  1800. v.C1=rot(.1,0,0)
  1801. wait()
  1802. end
  1803. for i,v in pairs(motors.right)do
  1804. v.C1=rot(0,-.1,0)
  1805. wait()
  1806. end
  1807. end)
  1808. X(function()
  1809. for i,v in pairs(motors.left)do
  1810. v.C1=rot(.1,0,0)
  1811. wait()
  1812. end
  1813. for i,v in pairs(motors.left)do
  1814. v.C1=rot(0,.1,0)
  1815. wait()
  1816. end
  1817. end)
  1818. Rmotor.MaxVelocity=.1
  1819. Lmotor.MaxVelocity=.1
  1820. Lmotor.DesiredAngle=.8
  1821. Rmotor.DesiredAngle=-.8
  1822. end
  1823. leftarm=function(bool)
  1824. X(function()
  1825. newlarm=new('Motor6D')
  1826. newlarm.Name='Left Shoulder'
  1827. newlarm.Parent=player.Character.Torso
  1828. newlarm.Part0=player.Character.Torso
  1829. newlarm.Part1=player.Character['Left Arm']
  1830. wait()--hmm
  1831. newlarm.C0=fnew(-1,.5,0,0,0,-1,0,1,0,1,0,0)
  1832. newlarm.C1=fnew(.5,.5,0,0,0,-1,0,1,0,1,0,0)
  1833. if bool==false then return newlarm end
  1834. an=player.Character.Animate
  1835. an.Disabled=true
  1836. an.Disabled=false
  1837. end)
  1838. return newlarm
  1839. end
  1840. local Name=function()
  1841. local name=''
  1842. for LA=1,3 do
  1843. name=name..string.char(math.random(0,255))
  1844. end
  1845. return name
  1846. end
  1847. Lazer=function(m)local wllwlw=false
  1848. wllwlw=true
  1849. if wllwlw==false then return end
  1850. if asdTroll~=nil then return end
  1851. asdTroll='asd'
  1852. local rarm=rightarm(false)
  1853. rarm.MaxVelocity=.2
  1854. rarm.DesiredAngle=math.rad(110)
  1855. larm=leftarm(false)
  1856. larm.MaxVelocity=.2
  1857. larm.DesiredAngle=-math.rad(110)
  1858. lball=new('Part')
  1859. life(lball,10)
  1860. lball.Shape=0
  1861. lball.Size=vnew(1,1,1)
  1862. lball.CanCollide=false
  1863. lball.BottomSurface=0
  1864. lball.TopSurface=0
  1865. lball.Transparency=.5
  1866. lball.BrickColor=BrickColor.White()
  1867. lball.BrickColor=BrickColor.White()
  1868. lball.Parent=player.Character
  1869. local lweld=new('Weld',larm.Part1)
  1870. lweld.Part0=lweld.Parent
  1871. lweld.Part1=lball
  1872. lweld.C0=fnew(0,-4,0)
  1873. rball=new('Part')
  1874. life(rball,10)
  1875. rball.Shape=0
  1876. rball.Size=vnew(1,1,1)
  1877. rball.Transparency=.5
  1878. rball.CanCollide=false
  1879. rball.BottomSurface=0
  1880. rball.TopSurface=0
  1881. rball.BrickColor=BrickColor.White()
  1882. rball.BrickColor=BrickColor.White()
  1883.  
  1884. rball.Parent=player.Character
  1885. local rweld=new('Weld',rarm.Part1)
  1886. rweld.Part0=rweld.Parent
  1887. rweld.Part1=rball
  1888. rweld.C0=fnew(0,-4,0)
  1889. X(function()
  1890. X(function()
  1891. for KG=1,157 do wait()
  1892. part=new('Part')
  1893. life(part,.2)
  1894. part.Transparency=.3
  1895. asdrandom=(math.random(5,20)/10)+KG/40
  1896. new('BlockMesh',part).Scale=vnew(asdrandom,asdrandom,asdrandom)
  1897. part.Size=vnew(1,1,1)
  1898. part.Anchored=true
  1899. part.CFrame=rot(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))+lball.Position
  1900. part.Name='asd'
  1901. part.BrickColor=BrickColor.White()
  1902. part.BrickColor=BrickColor.White()
  1903. part.Parent=lball
  1904. end
  1905. end)
  1906. for KG2=1,157 do wait()
  1907. part=new('Part')
  1908. life(part,.2)
  1909. part.Transparency=.3
  1910. asdrandom=(math.random(5,20)/10)+KG2/40
  1911. new('BlockMesh',part).Scale=vnew(asdrandom,asdrandom,asdrandom)
  1912. part.Size=vnew(1,1,1)
  1913. part.Anchored=true
  1914. part.CFrame=rot(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))+rball.Position
  1915. part.Name='asd'
  1916. part.BrickColor=BrickColor.White()
  1917. part.BrickColor=BrickColor.White()
  1918. part.Parent=rball
  1919. end
  1920. rball:remove()
  1921. lball:remove()
  1922. rightarm(true)
  1923. leftarm(true)
  1924. asdTroll=nil
  1925. for wasd=1,200 do
  1926. if pp~=nil then pp:remove()end
  1927. if asdTroll~=nil then return end
  1928. local pos=m.Hit.p
  1929. pp=new('WedgePart')
  1930. life(pp,.1)
  1931. pp.formFactor=3
  1932. pp.BrickColor=BrickColor.White()
  1933. pp.Transparency=.2
  1934. pp.Size=vnew(6,1000,6)
  1935. pp.CFrame=CFrame.new(pos.x,pos.y+(pp.Size.y/2),pos.z)+vnew(math.random(-3,3),0,math.random(-3,3))
  1936. local exp=Instance.new('Explosion')
  1937. exp.Position=pos+vnew(math.random(-3,3),0,math.random(-3,3))
  1938. exp.BlastRadius=30
  1939. exp.Parent=workspace
  1940. local Join=new('Part')
  1941. Join.formFactor=0
  1942. Join.Size=vnew(1,1,1)
  1943. new('SpecialMesh',Join).MeshType='Sphere'
  1944. Join.Mesh.Scale=vnew(60,60,60)
  1945. Join.Anchored=true
  1946. Join.BottomSurface=0
  1947. Join.TopSurface=0
  1948. Join.BrickColor=BrickColor.White()
  1949. Join.Transparency=.5
  1950. Join.CFrame=rot(0,math.rad(3.6*wasd)*2,0)+pos+vnew(math.random(-3,3),0,math.random(-3,3))
  1951. Join.Parent=pp
  1952. local pJoin=new('Part')
  1953. life(pJoin,.4)
  1954. new('BlockMesh',pJoin).Scale=vnew(10,10,10)+vnew((wasd/30),(wasd/30),(wasd/30))
  1955. pJoin.formFactor=0
  1956. pJoin.Size=vnew(1,1,1)
  1957. pJoin.Anchored=true
  1958. pJoin.BrickColor=BrickColor.White()
  1959. pJoin.Transparency=.5
  1960. pJoin.CFrame=rot(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))+pos+vnew(math.random(-3,3),0,math.random(-3,3))
  1961. pJoin.Parent=workspace
  1962. pp.Parent=player.Character
  1963. wait()
  1964. pp.BrickColor=BrickColor.White()
  1965. end
  1966. end)
  1967. -- rightarm(true)
  1968. end
  1969. rightarm=function(bool)
  1970. if pcall(function()
  1971. newrarm=new('Motor6D')
  1972. newrarm.Name='Right Shoulder'
  1973. newrarm.Parent=player.Character.Torso
  1974. newrarm.Part0=player.Character.Torso
  1975. newrarm.Part1=player.Character['Right Arm']
  1976. newrarm.C0=fnew(1,.5,0,0,0,1,0,1,0,-1,0,0)
  1977. newrarm.C1=fnew(-.5,.5,0,0,0,1,0,1,0,-1,0,0)
  1978. if bool==false then return newlarm end
  1979. pcall(function()
  1980. an=player.Character.Animate
  1981. an.Disabled=true
  1982. an.Disabled=false
  1983. end)
  1984. end)then
  1985. return newrarm
  1986. end
  1987. end
  1988. local light=function()
  1989. if pcall(function()torso=player.Character.Torso end)then
  1990. else
  1991. return
  1992. end
  1993. larm=leftarm(false)
  1994. local tt=T:clone()
  1995. life(tt,0)
  1996. tt.Parent=workspace
  1997. tt:play()
  1998. local Pl=new('WedgePart')
  1999. life(Pl,20)
  2000. Pl.CFrame=torso.CFrame+torso.CFrame.lookVector*6
  2001. Pl.Anchored=true
  2002. Pl.CanCollide=false
  2003. Pl.Parent=workspace
  2004. leftarm(true)
  2005. end
  2006. bodys=function(asd)
  2007. for i,v in pairs(torso:children())do
  2008. if v:IsA('BodyVelocity')or v:IsA('BodyGyro')then
  2009. v:remove()
  2010. end
  2011. end
  2012. if asd==true then return end
  2013. bv=new('BodyVelocity')
  2014. bg=new('BodyGyro')
  2015. bv.maxForce=vnew(math.huge,math.huge,math.huge)
  2016. bv.velocity=vnew(0,0,0)
  2017. bg.maxTorque=vnew(0,0,0)
  2018. bg.Parent=torso
  2019. bv.Parent=torso
  2020. end
  2021. ball=function(asd)
  2022. for i,v in pairs(player.Character:children())do
  2023. if v.Name=='Fly Ball'then
  2024. v:remove()
  2025. end
  2026. end
  2027. if asd==true then return end
  2028. part=new('Part')
  2029. part.Shape=0
  2030. part.BottomSurface=0
  2031. part.TopSurface=0
  2032. part.Size=torso.Size*5
  2033. part.Transparency=.5
  2034. part.BrickColor=BrickColor.White()
  2035. part.CanCollide=false
  2036. part.CFrame=torso.CFrame
  2037. part.Name='Fly Ball'
  2038. part.Parent=player.Character
  2039. weld=new('Weld')
  2040. weld.Parent=torso
  2041. weld.Part0=weld.Parent
  2042. weld.Part1=part
  2043. part.Touched:connect(function()
  2044. for i=1,5 do
  2045. wait()
  2046. part.Transparency=.5-i/10
  2047. end
  2048. part.Transparency=.5
  2049. end)
  2050. end
  2051. script.Parent.Selected:connect(function(m)
  2052. torso=player.Character.Torso
  2053. bodys(true)
  2054. m.KeyDown:connect(function(k)
  2055. if k=='q'then
  2056. fly=fly-10
  2057. if fly<0 then
  2058. fly=10
  2059. end
  2060. elseif k=='r'then
  2061. wing()
  2062. elseif k=='f'then
  2063. Lazer(m)
  2064. elseif k=='t'then
  2065. X(function()player.Character.WingMain:remove()end)
  2066. elseif k=='e'then
  2067. fly=fly+10
  2068. elseif k=='y'then
  2069. MUp=false
  2070. bodys(false)
  2071. elseif k=='p'then
  2072. print'asd'
  2073. elseif k=='b'then
  2074. fly=150
  2075. elseif k=='x'then
  2076. X(function()
  2077. if m.Target==workspace or m.Target==nil then return end
  2078. local ko=new('ObjectValue')
  2079. game:service('Debris'):AddItem(ko,1)
  2080. ko.Value=player
  2081. ko.Name='creator'
  2082. for i,v in pairs(m.Target.Parent:children())do
  2083. if v:IsA('Humanoid')then
  2084. ko.Parent=v
  2085. v.Torso:BreakJoints()
  2086. X(function()
  2087. for asd=1,100 do
  2088. wait()
  2089. part=new('WedgePart')
  2090. game:service('Debris'):AddItem(part,.2)
  2091. part.formFactor=0
  2092. part.Transparency=.3
  2093. part.Anchored=true
  2094. part.CanCollide=false
  2095. part.CFrame=rot(math.rad(math.random(1,180)),math.rad(math.random(1,180)),math.rad(math.random(1,180)))+v.Torso.Position
  2096. part.Size=vnew(2,2,2)
  2097. part.BrickColor=BrickColor.White()
  2098. local random=math.random(part.Size.x,part.Size.x*2)
  2099. new('BlockMesh',part).Scale=vnew(random,random,random)
  2100. part.Parent=workspace
  2101. end
  2102. end)
  2103. end
  2104. end
  2105. end)
  2106. end
  2107. end)
  2108. m.Button1Down:connect(function()
  2109. ball(true)
  2110. bodys(false)
  2111. MUp=false
  2112. rightarm(false)
  2113. leftarm(false)
  2114. bg.maxTorque=Vector3.new(900000,900000,900000)
  2115. bg.cframe=fnew(torso.Position,m.hit.p)*rot(math.rad(-60),0,0)
  2116. bv.velocity=fnew(torso.Position,m.hit.p).lookVector*fly
  2117. end)
  2118. m.Move:connect(function()
  2119. if MUp==true then return end
  2120. torso=player.Character.Torso
  2121. X(function()
  2122. bg.maxTorque=vnew(math.huge,math.huge,math.huge)
  2123. bg.cframe=fnew(torso.Position,m.hit.p)*rot(math.rad(-60),0,0)
  2124. bv.velocity=fnew(torso.Position,m.hit.p).lookVector*fly
  2125. end)
  2126. end)
  2127. m.Button1Up:connect(function()
  2128. MUp=true
  2129. ball(true)
  2130. bodys(false)
  2131. rightarm(true)
  2132. leftarm(true)
  2133. bv.maxForce=vnew(10000,10000,10000)
  2134. delay(2,function()if MUp==true then bodys(true)end end)
  2135. torso.Velocity=vnew(0,0,0)
  2136. torso.RotVelocity=vnew(0,0,0)
  2137. torso.CFrame=fnew(torso.Position,m.hit.p)*rot(0,0,0)
  2138. torso.Velocity=vnew(0,0,0)
  2139. torso.RotVelocity=vnew(0,0,0)
  2140. end)
  2141. end)
  2142. bin.Deselected:connect(function()
  2143. X(function()
  2144. ball(true)
  2145. bodys(true)
  2146. torso.Velocity=vnew(0,0,0)
  2147. torso.RotVelocity=vnew(0,0,0)
  2148. end)
  2149. end)
  2150. local function onTouched(part)
  2151. local h = part.Parent:findFirstChild("Humanoid")
  2152. if h~=nil then
  2153. h.Health = 0
  2154. end
  2155. end
  2156. script.Parent.Touched:connect(onTouched)
  2157. end)) end)
  2158. addfm('minipeep',function()
  2159. coroutine.resume(coroutine.create(function()
  2160. --Edited by shadowflame909 Lol version--
  2161. local ran,err = ypcall(function()
  2162. local plr = game:service'Players'.LocalPlayer
  2163. char = plr.Character
  2164. local mouse = plr:GetMouse()
  2165. humanoid = char:findFirstChild("Humanoid")
  2166. torso = char:findFirstChild("Torso")
  2167. head = char.Head
  2168. local ra = char:findFirstChild("Right Arm")
  2169. la = char:findFirstChild("Left Arm")
  2170. rl = char:findFirstChild("Right Leg")
  2171. ll = char:findFirstChild("Left Leg")
  2172. rs = torso:findFirstChild("Right Shoulder")
  2173. ls = torso:findFirstChild("Left Shoulder")
  2174. rh = torso:findFirstChild("Right Hip")
  2175. lh = torso:findFirstChild("Left Hip")
  2176. neck = torso:findFirstChild("Neck")
  2177. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  2178. local anim = char:findFirstChild("Animate")
  2179. rootpart = char:findFirstChild("HumanoidRootPart")
  2180. local camera = workspace.CurrentCamera
  2181. if anim then
  2182. anim:Destroy()
  2183. end
  2184.  
  2185.  
  2186. rj.C0 = CFrame.new()
  2187. rj.C1 = CFrame.new()
  2188.  
  2189.  
  2190. super_annoying = Instance.new("Sound", head)
  2191. super_annoying.SoundId = "http://www.roblox.com/asset/?id=142281425"---------
  2192. super_annoying.Volume = 0.6
  2193. super_annoying.Looped = true
  2194. barrel_roll = Instance.new("Sound", head)
  2195. barrel_roll.SoundId = "http://www.roblox.com/asset/?id=130872377"-----------
  2196. barrel_roll.Volume = 1
  2197. barrel_roll.Looped = true
  2198. dubstep_gun = Instance.new("Sound", head)
  2199. dubstep_gun.SoundId = "http://www.roblox.com/asset/?id=160442087"------------
  2200. dubstep_gun.Volume = 0.6
  2201. dubstep_gun.Looped = true
  2202. you_are_pirate = Instance.new("Sound", head)
  2203. you_are_pirate.SoundId = "http://www.roblox.com/asset/?id=142486515"-------------
  2204. you_are_pirate.Volume = 0.6
  2205. you_are_pirate.Looped = true
  2206. cant_touch = Instance.new("Sound", head)
  2207. cant_touch.SoundId = "http://www.roblox.com/asset/?id=154305246"----------
  2208. cant_touch.Volume = 1
  2209. cant_touch.Looped = true
  2210. gangy_style = Instance.new("Sound", head)
  2211. gangy_style.SoundId = "http://www.roblox.com/asset/?id=136637228"---------
  2212. gangy_style.Volume = 0.6
  2213. gangy_style.Looped = true
  2214. fox_say = Instance.new("Sound", head)
  2215. fox_say.SoundId = "http://www.roblox.com/asset/?id=164384347"--------
  2216. fox_say.Volume = 0.5
  2217. fox_say.Looped = true
  2218. durk = Instance.new("Sound", head)
  2219. durk.SoundId = "http://www.roblox.com/asset/?id=154215270"----------
  2220. durk.Volume = 0.8
  2221. durk.Looped = true
  2222. sax_guy = Instance.new("Sound", head)
  2223. sax_guy.SoundId = "http://www.roblox.com/asset/?id=178516475"-------------
  2224. sax_guy.Volume = 0.6
  2225. sax_guy.Looped = true
  2226. heman = Instance.new("Sound", head)
  2227. heman.SoundId = "http://www.roblox.com/asset/?id=169196943"---------
  2228. heman.Volume = 1
  2229. heman.Looped = true
  2230. justin = Instance.new("Sound", head)
  2231. justin.SoundId = "http://www.roblox.com/asset/?id=169373016"--------
  2232. justin.Volume = 0.8
  2233. justin.Looped = true
  2234. brony_music = Instance.new("Sound", head)
  2235. brony_music.SoundId = "http://www.roblox.com/asset/?id=205254380"-------
  2236. brony_music.Volume = 1
  2237. brony_music.Looped = true
  2238. spitfire = Instance.new("Sound", head)
  2239. spitfire.SoundId = "http://www.roblox.com/asset/?id=205254380"--------
  2240. spitfire.Volume = 0.8
  2241. spitfire.Looped = true
  2242. burn_dem = Instance.new("Sound", head)
  2243. burn_dem.SoundId = "http://www.roblox.com/asset/?id=166881012"------------
  2244. burn_dem.Volume = 1
  2245. burn_dem.Looped = true
  2246.  
  2247.  
  2248. if char:findFirstChild("Shirt") then
  2249. char:findFirstChild("Shirt"):Destroy()
  2250. end
  2251. if char:findFirstChild("Pants") then
  2252. char:findFirstChild("Pants"):Destroy()
  2253. end
  2254. if char:findFirstChild("Shirt Graphic") then
  2255. char:findFirstChild("Shirt Graphic"):Destroy()
  2256. end
  2257.  
  2258. Instance.new("HumanoidController", game:service'ControllerService')
  2259. Instance.new("SkateboardController", game:service'ControllerService')
  2260. Instance.new("VehicleController", game:service'ControllerService')
  2261.  
  2262.  
  2263.  
  2264.  
  2265. --minimize
  2266. rh.Parent = nil
  2267. lh.Parent = nil
  2268. rs.Parent = nil
  2269. ls.Parent = nil
  2270. neck.Parent = nil
  2271. rj.Parent = nil
  2272.  
  2273.  
  2274. rl.FormFactor = "Custom"
  2275. ll.FormFactor = "Custom"
  2276. ra.FormFactor = "Custom"
  2277. la.FormFactor = "Custom"
  2278. torso.FormFactor = "Custom"
  2279. head.FormFactor = "Custom"
  2280. rootpart.FormFactor = "Custom"
  2281.  
  2282.  
  2283.  
  2284.  
  2285. rootpart.Size = Vector3.new(.4, .4, .2)
  2286. rl.Size = Vector3.new(.2, .4, .2)
  2287. ll.Size = Vector3.new(.2, .4, .2)
  2288. ra.Size = Vector3.new(.2, .4, .2)
  2289. la.Size = Vector3.new(.2, .4, .2)
  2290. torso.Size = Vector3.new(.4, .4, .2)
  2291. head.Size = Vector3.new(.4, .2, .2)
  2292.  
  2293. rh.Parent = torso
  2294. lh.Parent = torso
  2295. rs.Parent = torso
  2296. ls.Parent = torso
  2297. neck.Parent = torso
  2298. rj.Parent = rootpart
  2299.  
  2300.  
  2301. if torso:findFirstChild("roblox") then
  2302. local p = Instance.new("Part", char)
  2303. p.FormFactor = "Custom"
  2304. p.Size = torso.Size
  2305. p.Transparency = 1
  2306. p:BreakJoints()
  2307. local w = Instance.new("Weld", char)
  2308. w.Part0 = p
  2309. w.Part1 = torso
  2310. torso:findFirstChild("roblox").Parent = p
  2311. end
  2312.  
  2313.  
  2314. local mesh1 = Instance.new("SpecialMesh", torso)
  2315. mesh1.Name = "Mesh"
  2316. mesh1.Scale = torso.Size - Vector3.new(torso.Size.x/2, torso.Size.y/2, 0)
  2317. mesh1.MeshId = "rbxasset://fonts/torso.mesh"
  2318. local mesh2 = Instance.new("SpecialMesh", la)
  2319. mesh2.Name = "Mesh"
  2320. mesh2.Scale = la.Size - Vector3.new(0, la.Size.y/2, 0)
  2321. mesh2.MeshId = "rbxasset://fonts/leftarm.mesh"
  2322. local mesh3 = Instance.new("SpecialMesh", ra)
  2323. mesh3.Name = "Mesh"
  2324. mesh3.Scale = ra.Size - Vector3.new(0, ra.Size.y/2, 0)
  2325. mesh3.MeshId = "rbxasset://fonts/rightarm.mesh"
  2326. local mesh4 = Instance.new("SpecialMesh", ll)
  2327. mesh4.Name = "Mesh"
  2328. mesh4.Scale = ll.Size - Vector3.new(0, ll.Size.y/2, 0)
  2329. mesh4.MeshId = "rbxasset://fonts/leftleg.mesh"
  2330. local mesh5 = Instance.new("SpecialMesh", rl)
  2331. mesh5.Name = "Mesh"
  2332. mesh5.Scale = rl.Size - Vector3.new(0, rl.Size.y/2, 0)
  2333. mesh5.MeshId = "rbxasset://fonts/rightleg.mesh"
  2334.  
  2335.  
  2336. --0.3 = 1.5, 0.1 = 0.5, 0.2 = 1
  2337.  
  2338. ls.C0 = CFrame.new(-.3,.1,0)
  2339. ls.C1 = CFrame.new(0,.1,0)
  2340. rs.C0 = CFrame.new(.3,.1,0)
  2341. rs.C1 = CFrame.new(0,.1,0)
  2342. rh.C0 = CFrame.new(.1,-.2,0)
  2343. rh.C1 = CFrame.new(0, .2, 0)
  2344. lh.C0 = CFrame.new(-.1,-.2,0)
  2345. lh.C1 = CFrame.new(0, .2, 0)
  2346. neck.C0 = CFrame.new(0,.2,0)
  2347. neck.C1 = CFrame.new(0,-.1,0)
  2348.  
  2349. local bodyc = char:findFirstChild("Body Colors")
  2350. if bodyc then
  2351. bodyc:Destroy()
  2352. end
  2353. wait(0.1)
  2354.  
  2355. local skincolor = {"Reddish brown", "Brick yellow", "Pastel brown", "Nougat", "Brown", "Cool yellow", "Dark orange", "Neon orange"}
  2356. local clothcolor = {"Bright green", "Bright red", "Bright blue", "Light stone grey", "New Yeller", "Really black", "Lavender", "Medium green", "White", "Bright Yellow"}
  2357.  
  2358.  
  2359. skincolorrandom = BrickColor.new(skincolor[math.random(1, #skincolor)])
  2360. clothcolorrandom = BrickColor.new(clothcolor[math.random(1, #clothcolor)])
  2361. function restorecolors()
  2362. for _,bp in pairs(char:children()) do
  2363. if bp:IsA("BasePart") then
  2364. bp.BrickColor = skincolorrandom
  2365. end
  2366. end
  2367.  
  2368. torso.BrickColor = clothcolorrandom
  2369. ll.BrickColor = clothcolorrandom
  2370. rl.BrickColor = clothcolorrandom
  2371. end
  2372. restorecolors()
  2373.  
  2374. local LightForTorso = Instance.new("PointLight", head)
  2375. LightForTorso.Color = torso.BrickColor.Color
  2376. LightForTorso.Range = 7
  2377. LightForTorso.Brightness = 1.5
  2378.  
  2379.  
  2380.  
  2381.  
  2382. local slidecount = 0
  2383. local slidecountmax = 0
  2384. local anim = ""
  2385. local lastanim = anim
  2386. local speed = 0
  2387. local looking = false
  2388. local dancing = false
  2389. local superannoying = false
  2390. local barrelroll = false
  2391. local dubstepgun = false
  2392. local foxie = false
  2393. local durka = false
  2394. local saxguy = false
  2395. local heya = false
  2396. local jb = false
  2397. local bronymusic = false
  2398. local sheddy = false
  2399. local burndem = false
  2400. local global_wait = 0
  2401.  
  2402. count = 0
  2403. countspeed = 1
  2404. sine = 0
  2405. sinespeed = 1
  2406.  
  2407.  
  2408.  
  2409. humanoid.WalkSpeed = 30
  2410.  
  2411.  
  2412. local controllerService = game:GetService("ControllerService")
  2413. local controller = controllerService:GetChildren()[1]
  2414.  
  2415.  
  2416. local colors = {"White", "Really black"}
  2417.  
  2418. humanoid.Died:connect(function()
  2419. for cframe_parts = 0, 100 do
  2420. local p = Instance.new("Part")
  2421. p.FormFactor = "Custom"
  2422. p.BrickColor = BrickColor.new(colors[math.random(1, #colors)])
  2423. p.Size = Vector3.new(1, 1, 1)
  2424. Instance.new("BlockMesh", p).Scale = Vector3.new(0.05, 0.05, 0.05)
  2425. p.Locked = true
  2426. p.CanCollide = false
  2427. p.Anchored = true
  2428. p.CFrame = torso.CFrame * CFrame.Angles(math.random(-36, 36),math.random(-36, 36),math.random(-36, 36))
  2429. p.Parent = workspace
  2430. game:service'Debris':AddItem(p, 5)
  2431. coroutine.wrap(function()
  2432. while wait() do
  2433. if p ~= nil then
  2434. p.CFrame = p.CFrame * CFrame.new(0, 0.085, 0)
  2435. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(0.005, 0, 0.005) + Vector3.new(0, 0.01, 0)
  2436. p.Transparency = p.Transparency + 0.015
  2437. else
  2438. break
  2439. end
  2440. end
  2441. end)()
  2442. end
  2443. for _,v in pairs(char:children()) do
  2444. if v:IsA("Part") then
  2445. v:Destroy()
  2446. end
  2447. end
  2448.  
  2449. end)
  2450. local miniweld
  2451.  
  2452. mouse.KeyDown:connect(function(k)
  2453.  
  2454. if string.byte(k) == 50 then
  2455.  
  2456. if dancing then return end
  2457. sitting = not sitting
  2458. if sitting then
  2459. local ray = Ray.new(torso.Position, Vector3.new(0, -1, 0))
  2460. local hitz,enz = workspace:FindPartOnRay(ray, char)
  2461.  
  2462.  
  2463. if hitz then
  2464. controller.Parent = nil
  2465. humanoid.WalkSpeed = 0
  2466. coroutine.wrap(function()
  2467. while wait() do
  2468. humanoid.PlatformStand = true
  2469. if sitting == false then humanoid.PlatformStand = false break end
  2470. end
  2471. end)()
  2472. rj.C0 = CFrame.new(0, -0.35, 0) * CFrame.Angles(math.rad(10), 0, 0)
  2473. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, -math.pi/16)
  2474. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, math.pi/16)
  2475. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(-math.rad(10), 0, -math.pi/10)
  2476. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-math.rad(10), 0, math.pi/10)
  2477.  
  2478. miniweld = Instance.new("Weld", char)
  2479. miniweld.C0 = hitz.CFrame:toObjectSpace(rootpart.CFrame)
  2480. miniweld.Part0 = hitz
  2481. miniweld.Part1 = rootpart
  2482. else
  2483. sitting = false
  2484. return
  2485. end
  2486. else
  2487. if miniweld then
  2488. miniweld:Destroy()
  2489. end
  2490. controller.Parent = controllerService
  2491. humanoid.PlatformStand = false
  2492. humanoid.WalkSpeed = 11
  2493. end
  2494. end
  2495.  
  2496. if k == "t" then
  2497. superannoying = false
  2498. barrelroll = false
  2499. heya = false
  2500. dubstepgun = false
  2501. youpirate = false
  2502. canttouch = false
  2503. gangnam = false
  2504. sheddy = false
  2505. durka = false
  2506. saxguy = false
  2507. foxie = false
  2508. burndem = false
  2509. bronymusic = false
  2510. brony_music:stop()
  2511. fox_say:stop()
  2512. spitfire:stop()
  2513. heman:stop()
  2514. justin:stop()
  2515. jb = false
  2516. durk:stop()
  2517. restorecolors()
  2518. burn_dem:stop()
  2519. if hat then
  2520. hat:Destroy()
  2521. end
  2522. sax_guy:stop()
  2523. gangy_style:stop()
  2524. cant_touch:stop()
  2525. you_are_pirate:stop()
  2526. dubstep_gun:stop()
  2527. super_annoying:stop()
  2528. barrel_roll:stop()
  2529. dancing = false
  2530. global_wait = 0
  2531. LightForTorso.Color = torso.BrickColor.Color
  2532. end
  2533.  
  2534. if k == "z" then
  2535. if dancing then return end
  2536. if not sitting then
  2537. dancing = true
  2538. superannoying = true
  2539. super_annoying:play()
  2540. end
  2541. end
  2542. if k == "k" then
  2543. if dancing then return end
  2544. if not sitting then
  2545. dancing = true
  2546. sheddy = true
  2547. spitfire:play()
  2548. end
  2549. end
  2550.  
  2551. if k == "n" then
  2552. if dancing then return end
  2553. if not sitting then
  2554. dancing = true
  2555. gangnam = true
  2556. gangy_style:play()
  2557. end
  2558. end
  2559.  
  2560. if k == "r" then
  2561. if dancing then return end
  2562. if not sitting then
  2563. dancing = true
  2564. burndem = true
  2565. burn_dem:play()
  2566. end
  2567. end
  2568.  
  2569.  
  2570. if k == "x" then
  2571. if dancing then return end
  2572. if not sitting then
  2573. dancing = true
  2574. barrelroll = true
  2575. barrel_roll:play()
  2576. hat = Instance.new("Part", char)
  2577. hat.FormFactor = "Custom"
  2578. hat.CanCollide = false
  2579. hat.Size = torso.Size
  2580. hat.Locked = true
  2581. hat:breakJoints()
  2582. local hatmesh = Instance.new("SpecialMesh", hat)
  2583. hatmesh.MeshId = "http://www.roblox.com/asset/?id=29873142"
  2584. hatmesh.TextureId = "http://www.roblox.com/asset/?id=31467063"
  2585. hatmesh.Scale = Vector3.new(.22, .2, .22)
  2586. local hatweld = Instance.new("Weld", hat)
  2587. hatweld.Part0 = hat
  2588. hatweld.Part1 = torso
  2589. end
  2590. end
  2591. if k == "h" then
  2592. if dancing then return end
  2593. if not sitting then
  2594. dancing = true
  2595. heman:play()
  2596. heya = true
  2597. hat = Instance.new("Part", char)
  2598. hat.FormFactor = "Custom"
  2599. hat.CanCollide = false
  2600. hat.Size = torso.Size + Vector3.new(0.01, 0.01, 0.01)
  2601. hat.Locked = true
  2602. hat.BrickColor = BrickColor.new("Hot pink")
  2603. hat:breakJoints()
  2604. local hatweld = Instance.new("Weld", hat)
  2605. hatweld.Part0 = hat
  2606. hatweld.Part1 = torso
  2607. end
  2608. end
  2609. if k == "j" then
  2610. if dancing then return end
  2611. if not sitting then
  2612. dancing = true
  2613. justin:play()
  2614. jb = true
  2615. hat = Instance.new("Part", char)
  2616. hat.FormFactor = "Custom"
  2617. hat.CanCollide = false
  2618. hat.Size = head.Size
  2619. hat.Locked = true
  2620. hat.BrickColor = BrickColor.new("Hot pink")
  2621. hat:breakJoints()
  2622. local hatmesh = Instance.new("SpecialMesh", hat)
  2623. hatmesh.MeshId = "http://www.roblox.com/asset/?id=19999424"
  2624. hatmesh.TextureId = "http://www.roblox.com/asset/?id=20571982"
  2625. hatmesh.Scale = Vector3.new(.23, .23, .23)
  2626. local hatweld = Instance.new("Weld", hat)
  2627. hatweld.Part0 = hat
  2628. hatweld.Part1 = head
  2629. hatweld.C0 = CFrame.new(0.025, -0.05, 0)
  2630. end
  2631. end
  2632. if k == "c" then
  2633. if dancing then return end
  2634. if not sitting then
  2635. dancing = true
  2636. dubstepgun = true
  2637. dubstep_gun:play()
  2638. end
  2639. end
  2640. if k == "v" then
  2641. if dancing then return end
  2642. if not sitting then
  2643. dancing = true
  2644. youpirate = true
  2645. you_are_pirate:play()
  2646. hat = Instance.new("Part", char)
  2647. hat.FormFactor = "Custom"
  2648. hat.CanCollide = false
  2649. hat.Size = head.Size
  2650. hat.Locked = true
  2651. hat:breakJoints()
  2652. local hatmesh = Instance.new("SpecialMesh", hat)
  2653. hatmesh.MeshId = "http://www.roblox.com/asset/?id=1028848"
  2654. hatmesh.TextureId = "http://www.roblox.com/asset/?id=1028847"
  2655. hatmesh.Scale = Vector3.new(.2, .2, .2)
  2656. local hatweld = Instance.new("Weld", hat)
  2657. hatweld.Part0 = hat
  2658. hatweld.Part1 = head
  2659. hatweld.C0 = CFrame.new(0, -0.15, 0)
  2660. end
  2661. end
  2662. if k == "m" then
  2663. if dancing then return end
  2664. if not sitting then
  2665. dancing = true
  2666. canttouch = true
  2667. cant_touch:play()
  2668. end
  2669. end
  2670. if k == "b" then
  2671. if dancing then return end
  2672. if not sitting then
  2673. dancing = true
  2674. bronymusic = true
  2675. brony_music:play()
  2676. for _,bp in pairs(char:children()) do
  2677. if bp:IsA("BasePart") then
  2678. bp.BrickColor = BrickColor.new("Lavender")
  2679. end
  2680. end
  2681. hat = Instance.new("Part", char)
  2682. hat.FormFactor = "Custom"
  2683. hat.CanCollide = false
  2684. hat.Size = head.Size
  2685. hat.Locked = true
  2686. hat.BrickColor = BrickColor.new("Lavender")
  2687. hat:breakJoints()
  2688. local hatmesh = Instance.new("SpecialMesh", hat)
  2689. hatmesh.MeshId = "http://www.roblox.com/asset/?id=118186643"
  2690. hatmesh.Scale = Vector3.new(.1, .2, .1)
  2691. local hatweld = Instance.new("Weld", hat)
  2692. hatweld.Part0 = hat
  2693. hatweld.Part1 = head
  2694. hatweld.C0 = CFrame.new(0, -0.1, 0.05)
  2695. end
  2696. end
  2697.  
  2698. if k == "l" then
  2699. if dancing then return end
  2700. if not sitting then
  2701. dancing = true
  2702. foxie = true
  2703. fox_say:play()
  2704. hat = Instance.new("Part", char)
  2705. hat.FormFactor = "Custom"
  2706. hat.CanCollide = false
  2707. hat.Size = head.Size
  2708. hat.Locked = true
  2709. hat:breakJoints()
  2710. local hatmesh = Instance.new("SpecialMesh", hat)
  2711. hatmesh.MeshId = "http://www.roblox.com/asset/?id=25266225"
  2712. hatmesh.TextureId = "http://www.roblox.com/asset/?id=25266210"
  2713. hatmesh.Scale = Vector3.new(.2, .2, .2)
  2714. local hatweld = Instance.new("Weld", hat)
  2715. hatweld.Part0 = hat
  2716. hatweld.Part1 = head
  2717. hatweld.C0 = CFrame.new(0, -0.1, 0)
  2718. end
  2719.  
  2720. end
  2721. if k == "f" then
  2722. if dancing then return end
  2723. if not sitting then
  2724. dancing = true
  2725. durka = true
  2726. durk:play()
  2727. end
  2728. end
  2729. if k == "g" then
  2730. if dancing then return end
  2731. if not sitting then
  2732. dancing = true
  2733. saxguy = true
  2734. sax_guy:play()
  2735. hat = Instance.new("Part", char)
  2736. hat.FormFactor = "Custom"
  2737. hat.CanCollide = false
  2738. hat.Size = head.Size
  2739. hat.Locked = true
  2740. hat:breakJoints()
  2741. local hatmesh = Instance.new("SpecialMesh", hat)
  2742. hatmesh.MeshId = "http://www.roblox.com/asset/?id=44410178"
  2743. hatmesh.TextureId = "http://www.roblox.com/asset/?id=44410320"
  2744. hatmesh.Scale = Vector3.new(.25, .25, .25)
  2745. local hatweld = Instance.new("Weld", hat)
  2746. hatweld.Part0 = hat
  2747. hatweld.Part1 = la
  2748. hatweld.C0 = CFrame.new(-0.18, -0.05, .04) * CFrame.Angles(math.pi - math.rad(18), 0, math.pi/4)
  2749. end
  2750. end
  2751.  
  2752.  
  2753.  
  2754.  
  2755. if k == "q" then
  2756. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 14 then return end
  2757. if sitting then return end
  2758. looking = true
  2759. rj.C0 = CFrame.new(-math.pi/6, 0,0) * CFrame.Angles(0, 0, math.pi/4)
  2760. end
  2761. if k == "e" then
  2762. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 14 then return end
  2763. if sitting then return end
  2764. looking = true
  2765. rj.C0 = CFrame.new(math.pi/6, 0,0) * CFrame.Angles(0, 0, -math.pi/4)
  2766. end
  2767. if string.byte(k) == 48 or string.byte(k) == 47 then
  2768. if sitting then return end
  2769. humanoid.WalkSpeed = 18
  2770. end
  2771. if string.byte(k) == 52 then
  2772. if sitting then return end
  2773. humanoid.WalkSpeed = 6
  2774. end
  2775. end)
  2776.  
  2777. mouse.KeyUp:connect(function(k)
  2778. if string.byte(k) == 48 or string.byte(k) == 47 then
  2779. if sitting then return end
  2780. humanoid.WalkSpeed = 11
  2781. end
  2782. if k == "w" or k == "a" or k == "s" or k == "d" or string.byte(k) == 32 then
  2783. superannoying = false
  2784. barrelroll = false
  2785. heya = false
  2786. dubstepgun = false
  2787. youpirate = false
  2788. canttouch = false
  2789. gangnam = false
  2790. sheddy = false
  2791. durka = false
  2792. saxguy = false
  2793. foxie = false
  2794. burndem = false
  2795. bronymusic = false
  2796. brony_music:stop()
  2797. fox_say:stop()
  2798. spitfire:stop()
  2799. heman:stop()
  2800. justin:stop()
  2801. jb = false
  2802. durk:stop()
  2803. restorecolors()
  2804. burn_dem:stop()
  2805. if hat then
  2806. hat:Destroy()
  2807. end
  2808. sax_guy:stop()
  2809. gangy_style:stop()
  2810. cant_touch:stop()
  2811. you_are_pirate:stop()
  2812. dubstep_gun:stop()
  2813. super_annoying:stop()
  2814. barrel_roll:stop()
  2815. dancing = false
  2816. global_wait = 0
  2817. LightForTorso.Color = torso.BrickColor.Color
  2818. end
  2819.  
  2820.  
  2821. if k == "q" then
  2822. if looking then
  2823. if sitting then return end
  2824. rj.C0 = CFrame.new()
  2825. looking = false
  2826. end
  2827. end
  2828.  
  2829. if k == "e" then
  2830. if looking then
  2831. if sitting then return end
  2832. rj.C0 = CFrame.new()
  2833. looking = false
  2834. end
  2835. end
  2836. end)
  2837.  
  2838.  
  2839. game:service'RunService'.Stepped:connect(function()
  2840. count = (count % 100) + countspeed
  2841. local angle = math.pi * math.sin(math.pi*2/100*count)
  2842.  
  2843. if slidecount < slidecountmax then
  2844. slidecount = slidecount + speed
  2845. end
  2846. if slidecount > slidecountmax then
  2847. slidecount = slidecount - speed
  2848. end
  2849. if global_wait == 380 then global_wait = 0 end
  2850.  
  2851. sine = sine + sinespeed
  2852. if not dancing then
  2853. if not sitting then
  2854. local ray = Ray.new(rootpart.Position, Vector3.new(0, -1, 0))
  2855. local hitz, enz = workspace:FindPartOnRay(ray, char)
  2856. if not hitz then
  2857. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles((math.pi/8/5*slidecount) + math.pi + angle*0.05, 0, 0)
  2858. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles((math.pi/8/5*slidecount) + math.pi + -angle*0.05, 0, 0)
  2859. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.28, 0, 0)
  2860. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.28, 0, 0)
  2861. if not looking then
  2862. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/8/5*slidecount, 0, 0)
  2863. end
  2864. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0)
  2865. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  2866.  
  2867. -- idle anim
  2868.  
  2869. anim = "Idle"
  2870. if anim ~= lastanim then
  2871. if lastanim == "Walking" then
  2872. speed = 0.5
  2873. slidecount = 1
  2874. slidecountmax = 0
  2875. elseif lastanim == "Running" then
  2876. speed = 2.5
  2877. slidecount = 5
  2878. slidecountmax = 0
  2879. else
  2880. slidecount = 0
  2881. slidecountmax = 0
  2882. end
  2883. end
  2884. countspeed = 1
  2885. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(angle*0.02, 0, 0)
  2886. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-angle*0.02, 0, 0)
  2887. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.01, 0, 0)
  2888. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.01, 0, 0)
  2889. if not looking then
  2890. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/8/5*slidecount, 0, 0)
  2891. end
  2892. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0)
  2893. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 14 then
  2894. looking = false
  2895. -- walk anim
  2896. anim = "Walking"
  2897. if anim ~= lastanim then
  2898. speed = 0.2
  2899. slidecount = 0
  2900. slidecountmax = 1
  2901. if lastanim == "Running" then
  2902. slidecount = 5
  2903. end
  2904. end
  2905. countspeed = 6
  2906. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(angle*0.3, 0, math.abs(angle*0.02))
  2907. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-angle*0.3, 0, -math.abs(angle*0.02))
  2908. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.28, 0, -math.abs(angle*0.01))
  2909. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.28, 0, math.abs(angle*0.01))
  2910. rj.C0 = CFrame.new(0, math.abs(-angle*0.035), 0) * CFrame.Angles(-math.pi/8/5*slidecount, 0, 0)
  2911. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0)
  2912. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 14 then
  2913. --run anim
  2914. anim = "Running"
  2915. if anim ~= lastanim then
  2916. speed = 1
  2917. slidecount = 0
  2918. slidecountmax = 5
  2919. if lastanim == "Walking" then
  2920. slidecount = 1
  2921. end
  2922. end
  2923.  
  2924. looking = false
  2925. countspeed = 9
  2926. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(angle*0.4, 0, math.abs(angle*0.07))
  2927. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-angle*0.4, 0, -math.abs(angle*0.07))
  2928. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.38, 0, -math.abs(angle*0.03))
  2929. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.38, 0, math.abs(angle*0.03))
  2930. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0)
  2931. rj.C0 = CFrame.new(0, math.abs(-angle*.055), 0) * CFrame.Angles(-math.pi/8/5*slidecount, math.sin(angle*0.05), 0)
  2932. end
  2933.  
  2934. lastanim = anim
  2935. else
  2936. countspeed = 1
  2937. local ray = Ray.new(rootpart.Position, Vector3.new(0, -2, 0))
  2938. local hitz, enz = workspace:FindPartOnRay(ray, char)
  2939. if not hitz then
  2940. rj.C0 = CFrame.new(0, -0.5, 0) * CFrame.Angles(-math.pi/2, 0, 0)
  2941. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.rad(30), 0, -math.pi/16)
  2942. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(math.rad(30), 0, math.pi/16)
  2943. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(-math.pi-math.rad(30), 0, -math.pi/10)
  2944. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-math.pi-math.rad(30), 0, math.pi/10)
  2945. else
  2946. rj.C0 = CFrame.new(0, -0.35, 0) * CFrame.Angles(math.rad(10), 0, 0)
  2947. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, -math.pi/16)
  2948. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, math.pi/16)
  2949. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(-math.rad(10), 0, -math.pi/10)
  2950. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-math.rad(10), 0, math.pi/10)
  2951. end
  2952.  
  2953. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(angle*0.055, 0, 0)
  2954. end
  2955. else
  2956. if superannoying then
  2957. countspeed = 5
  2958. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.07))
  2959. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.07))
  2960. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  2961. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  2962. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  2963. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0)
  2964. elseif barrelroll then
  2965. countspeed = 5
  2966. sinespeed = 0.1
  2967. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, math.abs(angle*0.07))
  2968. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, -math.abs(angle*0.07))
  2969. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(0, 0, -math.abs(angle*0.03))
  2970. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(0, 0, math.abs(angle*0.03))
  2971. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  2972. rj.C0 = CFrame.new(math.sin(sine)*2.5, 0, 0) * CFrame.Angles(-math.pi/2, math.sin(sine)*4.5, 0)
  2973. elseif dubstepgun then
  2974. global_wait = (global_wait % 380) + 1
  2975. countspeed = 5
  2976. if global_wait < 249 - 40 then
  2977. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.27))
  2978. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.27))
  2979. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  2980. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  2981. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  2982. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0)
  2983. elseif global_wait > 249 - 40 then
  2984. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.4, 0, math.abs(angle*0.11))
  2985. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, -math.abs(angle*0.11))
  2986. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.09))
  2987. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.09))
  2988. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  2989. rj.C0 = CFrame.new(0, math.abs(-angle*.075), 0) * CFrame.Angles(0, math.pi/3 + math.sin(angle*0.15), 0)
  2990. end
  2991. elseif youpirate then
  2992. global_wait = (global_wait % 380) + 1
  2993. countspeed = 5
  2994. if global_wait < 79 then
  2995. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.1, 0, -math.abs(angle*0.07))
  2996. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(angle*0.2, 0, math.abs(angle*0.07))
  2997. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  2998. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  2999. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  3000. rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0)
  3001. elseif global_wait < 299 then
  3002. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, math.abs(angle*0.11))
  3003. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, -math.abs(angle*0.11))
  3004. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.2, 0, -math.abs(angle*0.1))
  3005. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.2, 0, math.abs(angle*0.1))
  3006. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), math.sin(angle*0.19), 0)
  3007. rj.C0 = CFrame.new(0, math.abs(-angle*.055+0.2), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0)
  3008. elseif global_wait > 299 then
  3009. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.1, 0, -math.abs(angle*0.07))
  3010. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(angle*0.2, 0, math.abs(angle*0.07))
  3011. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  3012. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  3013. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  3014. rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0)
  3015. end
  3016. elseif canttouch then
  3017. countspeed = 5
  3018. global_wait = (global_wait % 160) + 1
  3019. if global_wait == 160 then global_wait = 0 end
  3020. if global_wait < 39 then
  3021. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.07))
  3022. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.07))
  3023. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  3024. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  3025. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  3026. rj.C0 = CFrame.new(0, math.abs(-angle*.03), 0) * CFrame.Angles(0, -math.pi/6, 0)
  3027. elseif global_wait < 79 then
  3028. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.07))
  3029. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.07))
  3030. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  3031. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  3032. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  3033. rj.C0 = CFrame.new(0, math.abs(-angle*.03), 0) * CFrame.Angles(0, math.pi/6, 0)
  3034. elseif global_wait < 119 then
  3035. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(0.01, 0, 0.17)
  3036. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(0.01, 0, -0.17)
  3037. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), -math.abs(angle*0.06))
  3038. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), math.abs(angle*0.06))
  3039. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  3040. rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, 0, 0)
  3041. torso.CFrame = torso.CFrame * CFrame.new(0.05, 0, 0)
  3042. elseif global_wait > 119 then
  3043. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(0.01, 0, 0.17)
  3044. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(0.01, 0, -0.17)
  3045. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), -math.abs(angle*0.06))
  3046. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), math.abs(angle*0.06))
  3047. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  3048. rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, 0, 0)
  3049. torso.CFrame = torso.CFrame * CFrame.new(-0.05, 0, 0)
  3050. end
  3051. elseif gangnam then
  3052. countspeed = 5
  3053. if global_wait == 180 then global_wait = 0 end
  3054. global_wait = (global_wait % 180) + 1
  3055. if global_wait < 89 then
  3056. ls.C0 = CFrame.new(-.2,.1,-.1) * CFrame.Angles(math.pi/2.5 + math.abs(angle*0.2), 0, math.pi/3 + math.abs(angle*0.05))
  3057. rs.C0 = CFrame.new(.2,.1,-.1) * CFrame.Angles(math.pi/2.5 + math.abs(angle*0.2), 0, -math.pi/3 + -math.abs(angle*0.05))
  3058. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03))
  3059. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03))
  3060. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  3061. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0)
  3062. elseif global_wait > 89 then
  3063. ls.C0 = CFrame.new(-.2,.1,-.1) * CFrame.Angles(math.pi/2.5 + math.abs(angle*0.2), 0, math.pi/3 + math.abs(angle*0.05))
  3064. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + math.sin(angle*0.1), 0, -math.sin(angle*0.1))
  3065. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03))
  3066. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03))
  3067. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  3068. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0)
  3069. end
  3070. elseif foxie then
  3071. countspeed = 5
  3072. global_wait = (global_wait % 380) + 2
  3073. if global_wait < 89 then
  3074. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + math.abs(angle*0.1), 0, -math.abs(angle*0.2))
  3075. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + math.abs(angle*0.1), 0, math.abs(angle*0.2))
  3076. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03))
  3077. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03))
  3078. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  3079. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.rad(global_wait*4), 0)
  3080. elseif global_wait > 89 then
  3081. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.2), 0, math.abs(angle*0.05))
  3082. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.2), 0, -math.abs(angle*0.05))
  3083. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03))
  3084. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03))
  3085. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, math.sin(angle*0.1))
  3086. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0)
  3087. end
  3088. elseif durka then
  3089. countspeed = 2
  3090. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.2), 0, math.abs(angle*0.07))
  3091. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.07))
  3092. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, 0, -math.abs(angle*0.03))
  3093. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, 0, math.abs(angle*0.03))
  3094. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  3095. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0)
  3096. elseif saxguy then
  3097. countspeed = 5
  3098. ls.C0 = CFrame.new(-.25,.1,-.1) * CFrame.Angles(math.pi/2.5, 0, math.pi/4)
  3099. rs.C0 = CFrame.new(.25,.1,-.1) * CFrame.Angles(math.rad(60), 0, -math.pi/4)
  3100. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, -0.06)
  3101. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, 0.06)
  3102. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(0, 0, 0)
  3103. rj.C0 = CFrame.new(0, -math.abs(angle*0.01), math.abs(angle*0.01)) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  3104. elseif heya then
  3105. countspeed = 5
  3106. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + -angle*0.2, -angle*0.1, 0)
  3107. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, angle*0.1, 0)
  3108. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06)
  3109. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06)
  3110. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0)
  3111. rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.sin(angle*0.07), 0)
  3112. elseif jb then
  3113. countspeed = 5
  3114. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + -angle*0.2, -angle*0.1, 0)
  3115. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, angle*0.1, 0)
  3116. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06)
  3117. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06)
  3118. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0)
  3119. rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.abs(angle*0.1), 0)
  3120. elseif bronymusic then
  3121. countspeed = 5
  3122. ls.C0 = CFrame.new(-.1,.1,-.15) * CFrame.Angles(math.pi/2 + -angle*0.1, -angle*0.1, 0)
  3123. rs.C0 = CFrame.new(.1,.1,-.15) * CFrame.Angles(math.pi/2 + angle*0.1, angle*0.1, 0)
  3124. lh.C0 = CFrame.new(-.1,-.25,0) * CFrame.Angles(math.pi/2 + angle*0.1, 0, 0)
  3125. rh.C0 = CFrame.new(.1,-.25,0) * CFrame.Angles(math.pi/2 + -angle*0.1, 0, 0)
  3126. neck.C0 = CFrame.new(0,.25,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.25), 0, 0)
  3127. rj.C0 = CFrame.new(0, -0.2 + math.abs(angle*0.05), 0) * CFrame.Angles(-math.rad(85), 0, 0)
  3128. elseif sheddy then
  3129. countspeed = 7
  3130. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/4 + -angle*0.4, -angle*0.1, 0)
  3131. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/4 + angle*0.4, angle*0.1, 0)
  3132. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06)
  3133. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06)
  3134. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0)
  3135. rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.abs(angle*0.1), 0)
  3136. elseif burndem then
  3137. countspeed = 4
  3138. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/4 + -angle*0.4, -angle*0.1, 0)
  3139. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/4 + angle*0.4, angle*0.1, 0)
  3140. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06)
  3141. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06)
  3142. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0)
  3143. rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.abs(angle*0.1), 0)
  3144. end
  3145. end
  3146. end)
  3147.  
  3148.  
  3149. plr.Chatted:connect(function(msg)
  3150. game:service'Chat':Chat(head, msg, 1)
  3151. if msg == "die/" then
  3152. char:breakJoints()
  3153. end
  3154.  
  3155. end)
  3156.  
  3157. end)
  3158. if not ran and err then
  3159. print(err)
  3160. end
  3161. end)) end)
  3162. addfm('Test Script',function() -- use for copy+paste
  3163. coroutine.resume(coroutine.create(function()
  3164. end)) end)
  3165. tablet('Welcome to GuiTabs, '..tostring(Player.Name)..'.')
  3166. tablet('The bet key is /')
  3167. tablet('Say cmds/ for more help!')
  3168. tablet('Made by DarthStrantax & Control22')
  3169. game:service'Players'.PlayerAdded:connect(function(np)
  3170. IsBanned(np)
  3171. end)
  3172. function GetPlayers(Msg)
  3173. if Msg == nil or Speaker == nil then
  3174. return service'Players':GetPlayers()
  3175. else
  3176. local Rtn = {}
  3177. local Players = GetPlayers()
  3178. Msg = Msg:lower()
  3179. local Split = Msg:find(",")
  3180. if Split ~= nil then
  3181. for _,v in pairs(GetPlayers(Msg:sub(1,Split-1),Speaker)) do
  3182. Rtn[#Rtn+1] = v
  3183. end
  3184. for _,v in pairs(GetPlayers(Msg:sub(Split+1),Speaker)) do
  3185. Rtn[#Rtn+1] = v
  3186. end
  3187. elseif Msg == "me" then
  3188. Rtn[#Rtn+1] = Speaker
  3189. elseif Msg == "others" then
  3190. for _,v in pairs(Players) do
  3191. if v ~= Speaker then
  3192. Rtn[#Rtn+1] = v
  3193. end
  3194. end
  3195. elseif Msg == "all" then
  3196. for _,v in pairs(Players) do
  3197. Rtn[#Rtn+1] = v
  3198. end
  3199. elseif Msg == "random" then
  3200. Rtn[#Rtn+1] = Players[math.random(1,#Players)]
  3201. elseif Msg:sub(1,4) == "not " then
  3202. local Nots = GetPlayers(Msg:sub(5),Speaker)
  3203. for _,v in pairs(Players) do
  3204. local ShouldAdd = true
  3205. for _,i in pairs(Nots) do
  3206. if v == i then
  3207. ShouldAdd = false
  3208. end
  3209. end
  3210. if ShouldAdd == true then
  3211. Rtn[#Rtn+1] = v
  3212. end
  3213. end
  3214. else
  3215. for _,v in pairs(Players) do
  3216. if v.Name:lower():sub(1,#Msg) == Msg then
  3217. Rtn[#Rtn+1] = v
  3218. end
  3219. end
  3220. end
  3221. return Rtn
  3222. end
  3223. end
  3224. Player.Chatted:connect(function(msg)
  3225. if msg:sub(1,3)=='/e ' then
  3226. msg=msg:sub(4) -- Allow you to do /e for silent commands
  3227. end
  3228. for Name,Command in pairs(Commands) do
  3229. if msg:sub(1,#Command.Command+1):lower() == Command.Command:lower().."/" then
  3230. local Ran,Error = coroutine.resume(coroutine.create(function()
  3231. Command.Func(msg:sub(#Command.Command+2))
  3232. end))
  3233. if not Ran then
  3234. tablet(Error)
  3235. end
  3236. else
  3237. end
  3238. end
  3239. end)
  3240. Idd=0
  3241. function AddCommand(Name,Command,Func,Usage,Desc)
  3242. Idd=Idd+1
  3243. Commands[Name] = {Name = Name,Id=Idd,Command = Command,Func = Func,Usage=Usage,Desc=Desc}
  3244. end
  3245. AddCommand("Kill","kill",
  3246. function(Msg)
  3247. for _,v in pairs(GetPlayers(Msg)) do
  3248. v.Character:BreakJoints()
  3249. end
  3250. end,
  3251. 'ping/[Player]',
  3252. 'Kills a player'
  3253. )
  3254. AddCommand("Ping","ping",
  3255. function(Msg)
  3256. tablet('')
  3257. tablet(Msg)
  3258. tablet('')
  3259. end,
  3260. 'ping/[Msg]',
  3261. 'Pings a message'
  3262. )
  3263. AddCommand("Behold","behold",function(Msg)
  3264. local behold = Instance.new('Sound',workspace)
  3265. behold.Pitch = 1
  3266. behold.SoundId = 'rbxassetid://159257147'
  3267. behold:Play()
  3268. wait(2)
  3269. behold:Remove()
  3270. end,
  3271. 'behold/',
  3272. 'Plays a behold sound.'
  3273. )
  3274. AddCommand("Music","music",function(Msg)
  3275. for i,v in pairs(workspace.CurrentCamera:children()) do
  3276. if v:IsA'Sound' then
  3277. v:Destroy() -- Remove all other sounds.
  3278. end
  3279. end
  3280. for i,v in pairs(workspace:children()) do
  3281. if v:IsA'Sound' then
  3282. v:Destroy() -- Remove all other sounds.
  3283. end
  3284. end
  3285. music = Instance.new('Sound',workspace)
  3286. music.Pitch = 1
  3287. music.SoundId = 'rbxassetid://'..Msg
  3288. music:Play()
  3289.  
  3290. end,
  3291. 'music/',
  3292. 'Plays music set by the player.'
  3293. )
  3294. AddCommand("Commands","cmds",
  3295. function(Msg)
  3296. if Msg==nil then
  3297. Msg=0
  3298. if type(Msg)~='number' then
  3299. Msg=tonumber(Msg)
  3300. end
  3301. end
  3302. for g,h in pairs(AllTabs) do
  3303. h.Holder:Destroy()
  3304. end
  3305. for i,v in pairs(Commands) do
  3306. tablet(v.Name,function()
  3307. for g,h in pairs(AllTabs) do
  3308. h.Holder:Destroy()
  3309. end
  3310. tablet('Name - '..v.Name)
  3311. tablet('Command - '..v.Command)
  3312. tablet('Usage - '..v.Usage)
  3313. tablet('Desc - '..v.Desc)
  3314. tablet('Run Command',function()
  3315. v.Func()
  3316. end)
  3317. tablet('Close',function()
  3318. for g,h in pairs(AllTabs) do
  3319. h.Holder:Destroy()
  3320. end
  3321. end)
  3322. tablet('Back',function()
  3323. Commands.Commands.Func('')
  3324. end)
  3325. end)
  3326. end
  3327. end,
  3328. 'cmds/',
  3329. 'Lists commands'
  3330. )
  3331. AddCommand("Kick Menu","kickmenu",
  3332. function(Msg)
  3333. for g,h in pairs(AllTabs) do
  3334. h.Holder:Destroy()
  3335. end
  3336. for i,v in pairs(service'Players':children()) do
  3337. tablet('Kick '..v.Name,function()
  3338. v:Destroy()
  3339. end)
  3340. end
  3341. tablet('Refresh',function()
  3342. Commands['Kick Menu'].Func('')
  3343. end)
  3344. end,
  3345. 'kickmenu/',
  3346. 'Opens a kick menu'
  3347. )
  3348. AddCommand("Dismiss","dt",
  3349. function(Msg)
  3350. for g,h in pairs(AllTabs) do
  3351. h.Holder:Destroy()
  3352. end
  3353. end,
  3354. 'dt/',
  3355. 'Dismisses tabs'
  3356. )
  3357. AddCommand("Local Music","lmusic",function(Msg)
  3358. for i,v in pairs(workspace.CurrentCamera:children()) do
  3359. if v:IsA'Sound' then
  3360. v:Destroy() -- Remove all other sounds.
  3361. end
  3362. end
  3363. for i,v in pairs(workspace:children()) do
  3364. if v:IsA'Sound' then
  3365. v:Destroy() -- Remove all other sounds.
  3366. end
  3367. end
  3368. lmusic = Instance.new('Sound',workspace.CurrentCamera)
  3369. lmusic.Pitch = 1
  3370. lmusic.SoundId = 'rbxassetid://'..Msg
  3371. lmusic:Play()
  3372.  
  3373. end,
  3374. 'lmusic/',
  3375. 'Plays music set by the player locally. [And magically :D]'
  3376. )
  3377. AddCommand('Freemodel','fm',function(Msg)
  3378. usefm(Msg)
  3379. end,
  3380. 'fm/',
  3381. 'Loads an fm. fm/list to list them.'
  3382. )
  3383. AddCommand("Ban","ban",function(Msg)
  3384. for i,v in pairs(GetPlayers(Msg)) do
  3385. Bans[v.Name]=true
  3386. IsBanned(v)
  3387. end
  3388. end,
  3389. 'ban/',
  3390. 'Bans specified user.'
  3391. )
  3392. AddCommand("Un-Ban","unban",function(Msg)
  3393. Bans[Msg]=false
  3394. end,
  3395. 'unban/',
  3396. 'Unbans specified user.'
  3397. )
  3398. AddCommand('Sound pitch','mpitch',function(Msg)
  3399. music.Pitch = Msg
  3400. end,
  3401. 'mpitch/',
  3402. 'Sets the pitch.'
  3403. )
  3404. AddCommand('Stop music','sm',function(Msg)
  3405. music:Remove()
  3406. end,
  3407. 'sm/',
  3408. 'Stops music paying.'
  3409. )
  3410. AddCommand('Hint','h',function(Msg)
  3411. local hint = Instance.new('Hint',workspace)
  3412. hint.Text = Player.Name..': '..tostring(Msg)
  3413. wait(string.len(hint.Text) - 5)
  3414. hint:Remove()
  3415. end,
  3416. 'h/',
  3417. 'Places a hint on screen.'
  3418. )
  3419. --265928915
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement