Namoo546

.

Oct 28th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.24 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. local player=game.Players.LocalPlayer
  145. local char=player.Character
  146. repeat wait() until player and char
  147. local torso=char.Torso
  148. local head=char.Head
  149. local human=char.Humanoid
  150. local hat
  151. for i, v in pairs(char:children()) do if v:isA("Hat") then hat=v end end
  152. local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
  153. local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
  154. local c=function(f) coroutine.resume(coroutine.create(f)) end
  155. local p=function(f) pcall(f) end
  156. local add={
  157. Part=function(par, a, c, col, t, s, cf, ms)
  158. local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  159. local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
  160. return p
  161. end,
  162. Wedge=function(par, a, c, col, t, s, cf, ms)
  163. local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  164. local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
  165. return p
  166. end,
  167. Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
  168. local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.TextStrokeColor=BrickColor.new("Really black") g.FontSize=fs g.TextFont="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
  169. return g
  170. end,
  171. Weld=function(par, p1, cf)
  172. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  173. return w
  174. end,
  175. Mesh=function(ins, par, s, of, t)
  176. local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
  177. return m
  178. end,
  179. Sound=function(parent, id, volume, pitch)
  180. local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
  181. return s
  182. end,
  183. }
  184. local scriptname="Operation"
  185. pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char[scriptname.."B"]:remove() player.PlayerGui[scriptname]:remove() end)
  186. local model=Instance.new("Model", char) model.Name=scriptname
  187. local modelB=Instance.new("Model", char) modelB.Name=scriptname.."B"
  188. local sound=Instance.new("Sound", model)
  189. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=model.Name
  190. local skincolor="New Yeller"
  191. local body={}
  192. local obj={}
  193. function createParts()
  194. --==PARTS==--
  195. body.Head=head:clone() body.Head.Parent=model body.Head.BrickColor=BrickColor.new(skincolor) body.Head.Transparency=0
  196. body.Torso=add.Part(model, false, false, skincolor, 0, Vector3.new(2, 2, 1), nil)
  197. body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  198. body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  199. p(function() for i, v in pairs(char:children()) do v.Transparency=1 end end)
  200. p(function() for i, v in pairs(char:children()) do v["face"]:clone().Parent=body.Head v["face"]:remove() end end)
  201. p(function() for i, v in pairs(char:children()) do if v.ClassName=="Hat" then v:remove() end end end)
  202. --==WELDS==--
  203. body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
  204. body.TorsoW=add.Weld(torso, body.Torso, nil)
  205. body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
  206. body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
  207. --==MESHES==--
  208. add.Mesh("BlockMesh", body.ArmLeft, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  209. add.Mesh("BlockMesh", body.ArmRight, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  210. add.Mesh("BlockMesh", body.LegLeft, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  211. add.Mesh("BlockMesh", body.LegRight, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  212. ---------------------------------------------------------------------------------------
  213. --==Objects==--
  214. obj.LH=add.Part(model, false, false, "Really black", 0, Vector3.new(.5, 1, .2), nil)
  215. obj.LHW=add.Weld(obj.LH, body.ArmLeft, CFrame.new(-.3, -.5, -.2))
  216. obj.LH=add.Part(model, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil)
  217. obj.LHW=add.Weld(obj.LH, body.ArmLeft, CFrame.new(-.3, -.9, 0))
  218.  
  219. obj.Handle=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.25, 2, .25), nil)
  220. obj.HandleW=add.Weld(obj.Handle, body.ArmRight, CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0))
  221. for i=1, 5 do
  222. obj.Design=add.Part(modelB, false, false, "New Yeller", 0, Vector3.new(.3, .1, .1), nil)
  223. obj.DesignW=add.Weld(obj.Design, obj.Handle, CFrame.new(0, -1+i/3, 0)*CFrame.Angles(math.rad(45), 0, 0))
  224. end
  225. obj.Guard=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil)
  226. obj.GuardW=add.Weld(obj.Guard, obj.Handle, CFrame.new(0, 1.1, 0))
  227. obj.GuardB=add.Part(modelB, false, false, "New Yeller", 0, Vector3.new(.25, .2, .3), nil)
  228. obj.GuardBM=add.Mesh("BlockMesh", obj.GuardB, Vector3.new(.5, 1, 1), nil, nil)
  229. obj.GuardBW=add.Weld(obj.GuardB, obj.Handle, CFrame.new(0, 1.25, 0))
  230. obj.Blade=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 4, .25), nil) obj.Blade.Reflectance=.5
  231. obj.BladeM=add.Mesh("BlockMesh", obj.Blade, Vector3.new(.5, 1, 1), nil, nil)
  232. obj.BladeW=add.Weld(obj.Blade, obj.Handle, CFrame.new(0, 3, 0))
  233. obj.Point=add.Wedge(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 1, .25), nil) obj.Point.Reflectance=.5
  234. obj.PointM=add.Mesh("SpecialMesh", obj.Point, Vector3.new(.5, 1, 1), nil, "Wedge")
  235. obj.PointW=add.Weld(obj.Point, obj.Blade, CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0), 0, 0))
  236. obj.Ope=add.Part(model, false, false, "White", 1, Vector3.new(1, 1, 1), nil)
  237. obj.OpeM=add.Mesh("SpecialMesh", obj.Ope, Vector3.new(2, 2, 2), nil, "File") obj.OpeM.MeshId="http://www.roblox.com/asset/?id=3270017"
  238. obj.OpeW=add.Weld(obj.Ope, body.ArmLeft, CFrame.new(0, -1.5, 0))
  239. c(function() for i=1, math.huge do wait() obj.OpeM.Scale=Vector3.new(math.random(2, 4), math.random(2, 4), 2) obj.OpeW.C1=CFrame.new(0, -1.8, 0)*CFrame.Angles(math.rad(90), 0, math.rad(i*10)) end end)
  240. end
  241. function removeParts()
  242. p(function()
  243. for i, v in pairs(model:children()) do v:remove() end
  244. for i, v in pairs(modelB:children()) do v:remove() end
  245. for i, v in pairs(char:children()) do v.Transparency=0 end
  246. end)
  247. end
  248. function play(id, pitch)
  249. c(function()
  250. local sound=Instance.new("Sound", workspace)
  251. sound.Pitch=pitch
  252. sound.SoundId=id
  253. sound:play()
  254. wait(.5)
  255. sound:remove()
  256. end)
  257. end
  258. local whileDeb=false
  259. local keyDeb=false
  260. local tDeb=false
  261. local hDeb=false
  262. local loopDeb=false
  263. local loopDeb2=false
  264. local loopDeb3=false
  265. local speed=32
  266. local mana=100
  267.  
  268. local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
  269. local label=Instance.new("TextLabel", gui)
  270. label.Position=UDim2.new(0, 0, 0, 200)
  271. label.Size=UDim2.new(0, 150, 0, 50)
  272. label.BorderColor=BrickColor.Black() label.BackgroundColor=BrickColor.Black()
  273. label.TextColor=BrickColor.White()
  274. label.Font="ArialBold"
  275. label.FontSize="Size18"
  276. label.Text="Room(Q)"
  277. local labelb=Instance.new("TextLabel", label)
  278. labelb.Position=UDim2.new(0, 0, 1, 0)
  279. labelb.Size=UDim2.new(1, 0, 1, 0)
  280. labelb.BorderColor=BrickColor.Black() labelb.BackgroundColor=BrickColor.Black()
  281. labelb.TextColor=BrickColor.White()
  282. labelb.Font="ArialBold"
  283. labelb.FontSize="Size18"
  284. labelb.Text="Shambles(E)"
  285. local labelc=Instance.new("TextLabel", labelb)
  286. labelc.Position=UDim2.new(0, 0, 1, 0)
  287. labelc.Size=UDim2.new(1, 0, 1, 0)
  288. labelc.BorderColor=BrickColor.Black() labelc.BackgroundColor=BrickColor.Black()
  289. labelc.TextColor=BrickColor.White()
  290. labelc.Font="ArialBold"
  291. labelc.FontSize="Size18"
  292. labelc.Text="Mes(R)"
  293. local labeld=Instance.new("TextLabel", labelc)
  294. labeld.Position=UDim2.new(0, 0, 1, 0)
  295. labeld.Size=UDim2.new(1, 0, 1, 0)
  296. labeld.BorderColor=BrickColor.Black() labeld.BackgroundColor=BrickColor.Black()
  297. labeld.TextColor=BrickColor.White()
  298. labeld.Font="ArialBold"
  299. labeld.FontSize="Size18"
  300. labeld.Text="Shield(F)"
  301. local labele=Instance.new("TextLabel", labeld)
  302. labele.Position=UDim2.new(0, 0, 1, 0)
  303. labele.Size=UDim2.new(1, 0, 1, 0)
  304. labele.BorderColor=BrickColor.Black() labele.BackgroundColor=BrickColor.Black()
  305. labele.TextColor=BrickColor.White()
  306. labele.Font="ArialBold"
  307. labele.FontSize="Size18"
  308. labele.Text="Charge(Z)"
  309. local labelf=Instance.new("TextLabel", labele)
  310. labelf.Position=UDim2.new(0, 0, 1, 0)
  311. labelf.Size=UDim2.new(1, 0, 1, 0)
  312. labelf.BorderColor=BrickColor.Black() labelf.BackgroundColor=BrickColor.Black()
  313. labelf.TextColor=BrickColor.White()
  314. labelf.Font="ArialBold"
  315. labelf.FontSize="Size18"
  316. labelf.Text="Rappid(X)"
  317. local labelg=Instance.new("TextLabel", labelf)
  318. labelg.Position=UDim2.new(0, 0, 1, 0)
  319. labelg.Size=UDim2.new(1, 0, 1, 0)
  320. labelg.BorderColor=BrickColor.Black() labelg.BackgroundColor=BrickColor.Black()
  321. labelg.TextColor=BrickColor.White()
  322. labelg.Font="ArialBold"
  323. labelg.FontSize="Size18"
  324. labelg.Text="Catastrophe(C)"
  325.  
  326. --==MANA==--
  327. local frame=Instance.new("Frame", gui)
  328. frame.Position=UDim2.new(0, 0, 0, 150)
  329. frame.Size=UDim2.new(0, 200, 0, 20)
  330. frame.BorderColor=BrickColor.Black() frame.BackgroundColor=BrickColor.White()
  331. local clabel=Instance.new("TextLabel", frame)
  332. clabel.Position=UDim2.new(0, 0, 0, 0)
  333. clabel.Size=UDim2.new(1, 0, 1, 0)
  334. clabel.BorderColor=BrickColor.Black() clabel.BackgroundColor=BrickColor.White()
  335. clabel.TextColor=BrickColor.Black()
  336. clabel.Font="ArialBold"
  337. clabel.FontSize="Size18"
  338. clabel.Text="--==100%==--"
  339. local charge=Instance.new("TextLabel", frame) charge.Transparency=.5
  340. charge.Position=UDim2.new(0, 0, 0, 0)
  341. charge.Size=UDim2.new(1, 0, 1, 0)
  342. charge.BorderColor=BrickColor.Black() charge.BackgroundColor=BrickColor.Blue()
  343. charge.Text=""
  344.  
  345. function trail(pos, cf, col)
  346. c(function()
  347. local old=(pos.CFrame*cf).p
  348. while tDeb==true do
  349. wait()
  350. local new=(pos.CFrame*cf).p
  351. local mag=(old-new).magnitude
  352. local dis=(old+new)/2
  353. local trail=add.Part(model, true, false, col, 0, Vector3.new(.2, mag, .2), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0))
  354. local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(1, 1, 1), nil, nil)
  355. old=new
  356. c(function()
  357. for i=1, 0, -.1 do
  358. wait()
  359. trail.Mesh.Scale=trail.Mesh.Scale*Vector3.new(i, 1, i)
  360. end
  361. trail:remove()
  362. end)
  363. c(function()
  364. for i=0, 1, .1 do
  365. wait()
  366. trail.Transparency=i
  367. end
  368. end)
  369. end
  370. end)
  371. end
  372.  
  373. local dmg=math.random(10, 25)
  374. function hit(h)
  375. local humanoid=h.Parent:findFirstChild("Humanoid")
  376. if humanoid and h.Parent~=char and hDeb==false then
  377. hDeb=true
  378. --c(function()
  379. local fakeP=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p))
  380. local mesh=add.Mesh("SpecialMesh", fakeP, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=3270017"
  381. c(function()
  382. for i=0, 1, .05 do
  383. wait()
  384. fakeP.Mesh.Scale=fakeP.Mesh.Scale+Vector3.new(i, i, 0)
  385. end
  386. fakeP:remove()
  387. end)
  388. c(function()
  389. for i=0, 1, .05 do
  390. wait()
  391. fakeP.Transparency=i
  392. end
  393. end)
  394. humanoid.Health=humanoid.Health-dmg
  395. local fakeM=Instance.new("Model", workspace) fakeM.Name=dmg
  396. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  397. local fakeP=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) fakeP.Name="Head"
  398. local fakeMesh=add.Mesh("CylinderMesh", fakeP, Vector3.new(1, .2, 1), nil, nil)
  399. local bp=Instance.new("BodyPosition", fakeP) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
  400. game.Debris:addItem(fakeM, 2)
  401. pcall(function()h.Parent:findFirstChild("Torso").RotVelocity=Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))end)
  402. pcall(function()h.Parent:findFirstChild("Torso").Velocity=Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))end)
  403. wait(.1)
  404. hDeb=false
  405. --end)
  406. end
  407. end
  408.  
  409. function computePos(pos, pos2)
  410. local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
  411. torso.CFrame=CFrame.new(pos, pos3)
  412. return pos3
  413. end
  414.  
  415. function nearTorso(pos, dis)
  416. local temp
  417. local distance=dis
  418. for i, v in pairs(workspace:children()) do
  419. if v:isA("Model") then
  420. temp=v:findFirstChild("Torso")
  421. local humanoid=v:findFirstChild("Humanoid")
  422. if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
  423. distance=(temp.CFrame.p-pos).magnitude
  424. return temp
  425. end
  426. end
  427. end
  428. end
  429.  
  430. local Attacks={
  431. ["Room"]=function(mouse) human.WalkSpeed=0
  432. computePos(torso.CFrame.p, mouse.Hit.p)
  433. for i=0, 1, .1 do wait()
  434. body.TorsoW.C1=CFrame.Angles(0, math.rad(45), 0)
  435. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(45)*i)
  436. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, math.rad(45)*i)
  437. end
  438. local room=add.Part(model, true, false, "Cyan", .5, Vector3.new(1, 1, 1), torso.CFrame+torso.CFrame.lookVector*25)
  439. local dust=add.Part(model, true, false, "White", .5, Vector3.new(1, 1, 1), room.CFrame*CFrame.Angles(math.rad(90), 0, 0))
  440. local dustM=add.Mesh("SpecialMesh", dust, Vector3.new(1, 1, 1), nil, "File") dustM.MeshId="http://www.roblox.com/asset/?id=3270017"
  441. local doomed={}
  442. room.Touched:connect(function(h)
  443. p(function()
  444. if h.Parent:findFirstChild("Humanoid") and h.Parent:findFirstChild("Humanoid")~=human then
  445. h.Parent["Humanoid"].WalkSpeed=0 print(h.Parent.Name.." is on the ROOM")
  446. table.insert(doomed, h.Parent)
  447. end
  448. end)
  449. end)
  450. dust.Touched:connect(function(h)
  451. p(function()
  452. if h.Parent:findFirstChild("Humanoid") and h.Parent:findFirstChild("Humanoid")~=human then
  453. h.Parent["Humanoid"].WalkSpeed=0
  454. table.insert(doomed, h.Parent)
  455. end
  456. end)
  457. end)
  458. local roomM=add.Mesh("SpecialMesh", room, Vector3.new(1, 1, 1), nil, "Sphere")
  459. for i=1, 0, -.1 do wait() obj.Ope.Transparency=i end
  460. for i=0, 120, 10 do wait() room.Size=Vector3.new(i, i, i) room.CFrame=torso.CFrame+torso.CFrame.lookVector*25 dustM.Scale=Vector3.new(i, i, i) dust.CFrame=room.CFrame*CFrame.Angles(math.rad(90), 0, 0) end
  461. for i=0, 1, .1 do wait() obj.Ope.Transparency=i end
  462. tDeb=true
  463. trail(obj.Point, CFrame.new(), "White")
  464. for i=0, 1, .1 do wait()
  465. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  466. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  467. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  468. end
  469. play("rbxasset://sounds/swordslash.wav", 1)
  470. for i=0, 1, .1 do wait()
  471. body.TorsoW.C1=CFrame.Angles(0, -math.rad(180)*i, 0)
  472. end
  473. for i, v in pairs(doomed) do
  474. p(function()
  475. local tor=v["Torso"]
  476. local pYPos=tor.Position.y-(tor.Size.y/2)
  477. local sYPos=obj.Point.Position.y
  478. local p=tor:clone()
  479. local p2=tor:clone() tor:remove()
  480. p.formFactor="Custom" p2.formFactor="Custom" p.Anchored=false p.CanCollide=true
  481. p.Size=Vector3.new(tor.Size.x, sYPos-pYPos, tor.Size.z) p2.Anchored=false p2.CanCollide=true
  482. p2.Size=Vector3.new(tor.Size.x, p2.Size.y-(sYPos-pYPos), tor.Size.z)
  483. p.CFrame=tor.CFrame*CFrame.new(0, -p2.Size.y/2, 0)
  484. p2.CFrame=tor.CFrame*CFrame.new(0, p.Size.y/2, 0)
  485. p.Parent=workspace
  486. p2.Parent=workspace
  487. c(function() wait(2)
  488. --[[for i=0, 1, .05 do
  489. wait()
  490. p.Transparency=i p2.Transparency=i
  491. end]]
  492. p:remove() p2:remove()
  493. end)
  494. end)
  495. end
  496. tDeb=false
  497. for i=1, 0, -.1 do wait()
  498. body.TorsoW.C1=CFrame.Angles(0, -math.rad(180)*i, 0)
  499. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  500. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  501. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  502. end
  503. for i=1, 0, -.05 do wait() dustM.Scale=dustM.Scale*Vector3.new(i, i, i) roomM.Scale=roomM.Scale*Vector3.new(i, i, i) end
  504. room:remove() dust:remove()
  505. human.WalkSpeed=speed
  506. whileDeb=false
  507. wait(1)
  508. end;
  509. ["Shambles"]=function(mouse) human.WalkSpeed=0
  510. computePos(torso.CFrame.p, mouse.Hit.p)
  511. for i=0, 1, .1 do wait()
  512. body.TorsoW.C1=CFrame.Angles(0, math.rad(45), 0)
  513. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(45)*i)
  514. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, math.rad(45)*i)
  515. end
  516. local room=add.Part(model, true, false, "Cyan", .5, Vector3.new(1, 1, 1), torso.CFrame+torso.CFrame.lookVector*25)
  517. local dust=add.Part(model, true, false, "White", .5, Vector3.new(1, 1, 1), room.CFrame*CFrame.Angles(math.rad(90), 0, 0))
  518. local dustM=add.Mesh("SpecialMesh", dust, Vector3.new(1, 1, 1), nil, "File") dustM.MeshId="http://www.roblox.com/asset/?id=3270017"
  519. local doomed={}
  520. room.Touched:connect(function(h)
  521. p(function()
  522. if h.Parent:findFirstChild("Humanoid") and h.Parent:findFirstChild("Humanoid")~=human then
  523. h.Parent["Humanoid"].WalkSpeed=0 print(h.Parent.Name.." is on the ROOM")
  524. table.insert(doomed, h.Parent)
  525. end
  526. end)
  527. end)
  528. dust.Touched:connect(function(h)
  529. p(function()
  530. if h.Parent:findFirstChild("Humanoid") and h.Parent:findFirstChild("Humanoid")~=human then
  531. h.Parent["Humanoid"].WalkSpeed=0
  532. table.insert(doomed, h.Parent)
  533. end
  534. end)
  535. end)
  536. local roomM=add.Mesh("SpecialMesh", room, Vector3.new(1, 1, 1), nil, "Sphere")
  537. for i=1, 0, -.1 do wait() obj.Ope.Transparency=i end
  538. for i=0, 120, 10 do wait() room.Size=Vector3.new(i, i, i) room.CFrame=torso.CFrame+torso.CFrame.lookVector*25 dustM.Scale=Vector3.new(i, i, i) dust.CFrame=room.CFrame*CFrame.Angles(math.rad(90), 0, 0) end
  539. tDeb=true
  540. trail(obj.Ope, CFrame.new(), "White")
  541. for i=0, 1, .1 do wait() play("rbxasset://sounds/swordslash.wav", 1)
  542. body.TorsoW.C1=CFrame.Angles(0, math.rad(45), 0)
  543. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(math.random(90, 135)), 0, -math.rad(math.random(-45, 45)))
  544. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45), 0, math.rad(45))
  545. end
  546. for i, v in pairs(doomed) do
  547. ypcall(function()
  548. local random=doomed[math.random(1, #doomed)]
  549. local armleft, armright=v["Left Arm"], v["Right Arm"]
  550. local legleft, legright=v["Left Leg"], v["Right Leg"]
  551. local head=v["Head"]
  552. add.Weld(armleft, random.Torso, CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))*CFrame.Angles(math.random(-45, 45),math.random(-45, 45),math.random(-45, 45)))
  553. add.Weld(armright, random.Torso, CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))*CFrame.Angles(math.random(-45, 45),math.random(-45, 45),math.random(-45, 45)))
  554. add.Weld(legleft, random.Torso, CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))*CFrame.Angles(math.random(-45, 45),math.random(-45, 45),math.random(-45, 45)))
  555. add.Weld(legright, random.Torso, CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))*CFrame.Angles(math.random(-45, 45),math.random(-45, 45),math.random(-45, 45)))
  556. add.Weld(head, random.Torso, CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))*CFrame.Angles(math.random(-45, 45),math.random(-45, 45),math.random(-45, 45)))
  557. end)
  558. end
  559. tDeb=false
  560. for i=0, 1, .1 do wait() obj.Ope.Transparency=i end
  561. for i=1, 0, -.1 do wait()
  562. body.TorsoW.C1=CFrame.Angles(0, math.rad(45), 0)
  563. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(45)*i)
  564. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, math.rad(45)*i)
  565. end
  566. for i=1, 0, -.05 do wait() dustM.Scale=dustM.Scale*Vector3.new(i, i, i) roomM.Scale=roomM.Scale*Vector3.new(i, i, i) end
  567. room:remove() dust:remove()
  568. human.WalkSpeed=speed
  569. whileDeb=false
  570. wait(1)
  571. end;
  572. ["Mes"]=function(mouse) human.WalkSpeed=1
  573. computePos(torso.CFrame.p, mouse.Hit.p)
  574. for i=0, 1, .1 do
  575. wait()
  576. body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0)
  577. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  578. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  579. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  580. end
  581. obj.Blade.Touched:connect(hit)
  582. tDeb=true trail(obj.Point, CFrame.new(), "White")
  583. for i=0, 1, .25 do
  584. wait()
  585. body.TorsoW.C1=CFrame.new(-10*i, 0, 0)*CFrame.Angles(0, -math.rad(90), 0)
  586. end
  587. play("rbxasset://sounds/swordslash.wav", 1)
  588. for i=1, 0, -.2 do
  589. wait()
  590. body.TorsoW.C1=CFrame.new(-10*i, 0, 0)*CFrame.Angles(0, -math.rad(90), 0)
  591. end
  592. obj.Blade.Touched:connect(hit):disconnect()
  593. for i=1, 0, -.1 do
  594. wait()
  595. body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0)
  596. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  597. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  598. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  599. end
  600. human.WalkSpeed=speed
  601. tDeb=false
  602. whileDeb=false
  603. wait(1)
  604. end;
  605. ["Shield"]=function(mouse) human.WalkSpeed=0
  606. for i=0, 1, .1 do
  607. wait()
  608. body.TorsoW.C1=CFrame.Angles(0, 0, 0)
  609. body.ArmLeftW.C1=CFrame.new(-1.5+(.5*i), .5, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i)
  610. body.ArmRightW.C1=CFrame.new(1.5-(.5*i), .5, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i)
  611. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, math.rad(45)*i)
  612. end
  613. obj.Blade.Touched:connect(hit)
  614. tDeb=true trail(obj.Point, CFrame.new(), "White")
  615. local rotate=45
  616. while loopDeb==true and mana>0 do wait() rotate=rotate+45 mana=mana-1
  617. computePos(torso.CFrame.p, mouse.Hit.p) torso.CFrame=torso.CFrame+torso.CFrame.lookVector*2
  618. obj.HandleW.C0=CFrame.Angles(math.rad(rotate), 0, 0)
  619. local wind=add.Part(model, true, false, "White", .5, Vector3.new(math.random(10, 15), 1, math.random(10, 15)), obj.Handle.CFrame*CFrame.Angles(0, 0, math.rad(90)))
  620. local windM=add.Mesh("CylinderMesh", wind, Vector3.new(1, 1, 1), nil, nil)
  621. wind.Touched:connect(hit)
  622. c(function()
  623. for i=.5, 1, .1 do
  624. wait()
  625. wind.Transparency=i
  626. end
  627. wind:remove()
  628. end)
  629. end
  630. obj.Blade.Touched:connect(hit):disconnect()
  631. tDeb=false
  632. loopDeb=false
  633. end;
  634. ["Rappid"]=function(mouse) human.WalkSpeed=0
  635. for i=0, 1, .1 do
  636. wait()
  637. body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0)
  638. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  639. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  640. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  641. end
  642. obj.Blade.Touched:connect(hit)
  643. tDeb=true trail(obj.Point, CFrame.new(), "White")
  644. while loopDeb2==true and mana>0 do wait() mana=mana-1 play("rbxasset://sounds/swordslash.wav", 1)
  645. computePos(torso.CFrame.p, mouse.Hit.p) torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2
  646. body.ArmRightW.C1=CFrame.new(1.5, .5, math.random(-.2, .2))*CFrame.Angles(math.rad(math.random(-45, 45)), 0, math.rad(90)+math.rad(math.random(-45, 45)))
  647. end
  648. obj.Blade.Touched:connect(hit):disconnect()
  649. tDeb=false
  650. loopDeb2=false
  651. end;
  652. ["Charge"]=function() human.WalkSpeed=0
  653. for i=0, 1, .1 do
  654. wait()
  655. body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0)
  656. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, 0, -math.rad(45)*i)
  657. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
  658. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  659. end
  660. while loopDeb3==true do wait() if mana>=0 and mana<100 then mana=mana+1 end play("http://www.roblox.com/asset/?id=2101137", 1)
  661. local aura=add.Part(model, true, false, "Really black", .5, Vector3.new(1, 1, 1), body.Torso.CFrame*CFrame.new(0, -4, 0)*CFrame.Angles(0, math.rad(math.random(-45, 45)), 0))
  662. local auraM=add.Mesh("SpecialMesh", aura, Vector3.new(1, 1, 1), nil, "File") auraM.MeshId="http://www.roblox.com/asset/?id=20329976"
  663. local aura2=add.Part(model, true, false, "Really black", .5, Vector3.new(5, 5, 5), body.Torso.CFrame*CFrame.new(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))*CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))))
  664. c(function()
  665. for i=0, 3, .2 do wait()
  666. auraM.Scale=auraM.Scale+Vector3.new(i, i/2, i)
  667. end
  668. c(function()
  669. for i=.5, 1, .1 do
  670. wait()
  671. aura.Transparency=i aura2.Transparency=i
  672. end
  673. end)
  674. aura:remove() aura2:remove()
  675. end)
  676. end
  677. for i=1, 0, -.1 do
  678. wait()
  679. body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0)
  680. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, 0, -math.rad(45)*i)
  681. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
  682. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  683. end
  684. human.WalkSpeed=speed
  685. end;
  686. ["Catastrophe"]=function() ypcall(function()
  687. local range=40
  688. local nChar=nearTorso(torso.CFrame.p, range).Parent
  689. if nChar then mana=mana-20 human.WalkSpeed=0
  690. local nTorso=nChar["Torso"]
  691. local nTorsoW=add.Weld(nTorso, torso, CFrame.new(0, 0, -range))
  692. for i=0, 1, .1 do wait()
  693. body.TorsoW.C1=CFrame.Angles(0, math.rad(45), 0)
  694. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(45)*i)
  695. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, math.rad(45)*i)
  696. end
  697. local room=add.Part(model, true, false, "Cyan", .5, Vector3.new(1, 1, 1), torso.CFrame+torso.CFrame.lookVector*range)
  698. local dust=add.Part(model, true, false, "White", .5, Vector3.new(1, 1, 1), room.CFrame*CFrame.Angles(math.rad(90), 0, 0))
  699. local dustM=add.Mesh("SpecialMesh", dust, Vector3.new(1, 1, 1), nil, "File") dustM.MeshId="http://www.roblox.com/asset/?id=3270017"
  700. local roomM=add.Mesh("SpecialMesh", room, Vector3.new(1, 1, 1), nil, "Sphere")
  701. for i=1, 0, -.1 do wait() obj.Ope.Transparency=i end
  702. for i=0, 20, 5 do wait() room.Size=Vector3.new(i, i, i) room.CFrame=torso.CFrame+torso.CFrame.lookVector*range dustM.Scale=Vector3.new(i, i, i) dust.CFrame=room.CFrame*CFrame.Angles(math.rad(90), 0, 0) end
  703. for i=0, 1, .1 do wait() obj.Ope.Transparency=i end
  704. tDeb=true
  705. trail(obj.Point, CFrame.new(), "White")
  706. for i=0, 1, .1 do wait()
  707. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i)
  708. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  709. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  710. end
  711. for i=0, 1, .1 do wait()
  712. body.TorsoW.C1=CFrame.Angles(0, -math.rad(180)*i, 0)
  713. end
  714. ypcall(function()
  715. local nHead=nChar["Head"]
  716. local nTorso=nChar["Torso"]
  717. local nHumanoid=nChar["Humanoid"] nHumanoid.WalkSpeed=0
  718. local nHeadW=add.Weld(nHead, nTorso, CFrame.new(0, 1.5, 0))
  719. for i=0, 1, .1 do
  720. wait()
  721. nHeadW.C1=CFrame.new(0, 1.5+i, 0)
  722. end
  723. for i=0, 1, .1 do
  724. wait()
  725. nHeadW.C1=CFrame.new(0, 2.5, (range-2)*i)
  726. end
  727. nHeadW.Part1=body.ArmLeft
  728. nHeadW.C1=CFrame.new(0, -2, 0)
  729. local bomb=add.Part(model, false, false, "Really black", 0, Vector3.new(1, 1, 1), nil)
  730. local bombM=add.Mesh("SpecialMesh", bomb, Vector3.new(1.5, 1.5, 1.5), nil, "Sphere")
  731. local bombW=add.Weld(bomb, nTorso, CFrame.new(0, 1.5, 0))
  732. wait(1)
  733. local exp=Instance.new("Explosion", bomb)
  734. exp.Position=bomb.Position
  735. exp.BlastPressure=1
  736. exp.BlastRadius=3 nHumanoid.Health=0
  737. nTorsoW:remove()
  738. end)
  739. tDeb=false
  740. for i=1, 0, -.1 do wait()
  741. body.TorsoW.C1=CFrame.Angles(0, -math.rad(180)*i, 0)
  742. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  743. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  744. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  745. end
  746. for i=1, 0, -.05 do wait() dustM.Scale=dustM.Scale*Vector3.new(i, i, i) roomM.Scale=roomM.Scale*Vector3.new(i, i, i) end
  747. room:remove() dust:remove()
  748. whileDeb=false
  749. human.WalkSpeed=speed
  750. end end)
  751. end;
  752. ["Centipede"]=function()
  753. end;
  754. }
  755.  
  756. bin.Selected:connect(function(mouse) createParts()
  757. for i=0, 1, .1 do wait()
  758. body.TorsoW.C1=CFrame.Angles(0, -math.rad(45), 0)
  759. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  760. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(45)*i)
  761. body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*CFrame.Angles(0, 0, -math.rad(15)*i)
  762. body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*CFrame.Angles(0, 0, math.rad(15)*i)
  763. end
  764. c(function()
  765. while true do
  766. wait()
  767. clabel.Text="--=="..mana.."==--"
  768. charge.Size=UDim2.new(mana/100, 0, 1, 0)
  769. end
  770. end)
  771. human.Running:connect(function(speed)
  772. if speed>0 then while whileDeb==true do wait() end
  773. for i=0, 1, .1 do wait()
  774. body.TorsoW.C1=CFrame.Angles(0, -math.rad(45), 0)
  775. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  776. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(45)*i)
  777. body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*CFrame.Angles(0, 0, -math.rad(15)*i)
  778. body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*CFrame.Angles(0, 0, math.rad(15)*i)
  779. end
  780. end
  781. end)
  782. mouse.Button1Down:connect(function()
  783. local fakeP=add.Part(workspace, true, false, "White", 0, Vector3.new(2, 2, 2), CFrame.new((torso.CFrame*CFrame.new(0, 0, 1.5)).p, torso.CFrame.p)*CFrame.Angles(math.rad(90), 0, 0))
  784. local mesh=add.Mesh("SpecialMesh", fakeP, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=20329976"
  785. c(function()
  786. for i=0, 1, .1 do
  787. wait()
  788. fakeP.Mesh.Scale=fakeP.Mesh.Scale+Vector3.new(i, 0, i)
  789. fakeP.Transparency=i
  790. end
  791. fakeP:remove()
  792. end)
  793. for i, v in pairs(model:getChildren()) do
  794. if v:isA("BasePart") then
  795. local clone=v:clone()
  796. clone.Anchored=true
  797. clone.CanCollide=false
  798. clone.CFrame=v.CFrame
  799. clone.Parent=workspace
  800. c(function()
  801. for i=0, 1, .1 do
  802. wait()
  803. clone.Transparency=i
  804. end
  805. clone:remove()
  806. end)
  807. end
  808. end
  809. torso.CFrame=torso.CFrame+torso.CFrame.lookVector*20
  810. end)
  811. mouse.KeyDown:connect(function(key)
  812. if key=="q" and mana>=50 and keyDeb==false then mana=mana-50 whileDeb=true keyDeb=true Attacks.Room(mouse) keyDeb=false end
  813. if key=="e" and mana>=40 and keyDeb==false then mana=mana-40 whileDeb=true keyDeb=true Attacks.Shambles(mouse) keyDeb=false end
  814. if key=="r" and mana>=10 and keyDeb==false then mana=mana-10 whileDeb=true keyDeb=true Attacks.Mes(mouse) keyDeb=false end
  815. if key=="c" and mana>=20 and keyDeb==false then whileDeb=true keyDeb=true Attacks.Catastrophe(mouse) keyDeb=false end
  816. --if key=="v" and mana>=30 and keyDeb==false then whileDeb=true keyDeb=true Attacks.Centipede(mouse) keyDeb=false end
  817. if key=="f" and keyDeb==false then whileDeb=true loopDeb=true keyDeb=true Attacks.Shield(mouse) end
  818. if key=="x" and keyDeb==false then whileDeb=true loopDeb2=true keyDeb=true Attacks.Rappid(mouse) end
  819. if key=="z" and keyDeb==false then whileDeb=true loopDeb3=true keyDeb=true Attacks.Charge() end
  820. end)
  821. mouse.KeyUp:connect(function(key)
  822. if key=="f" and keyDeb==true then keyDeb=false loopDeb=false whileDeb=false tDeb=false
  823. for i=1, 0, -.1 do
  824. wait()
  825. obj.HandleW.C0=CFrame.Angles(0, 0, 0)
  826. body.ArmLeftW.C1=CFrame.new(-1.5+(.5*i), .5, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i)
  827. body.ArmRightW.C1=CFrame.new(1.5-(.5*i), .5, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i)
  828. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, math.rad(45)*i)
  829. end human.WalkSpeed=speed
  830. end
  831. if key=="x" and keyDeb==true then keyDeb=false loopDeb2=false whileDeb=false tDeb=false
  832. for i=1, 0, -.1 do
  833. wait()
  834. body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0)
  835. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  836. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  837. obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  838. end human.WalkSpeed=speed
  839. end
  840. if key=="z" and keyDeb==true then keyDeb=false loopDeb3=false whileDeb=false tDeb=false end
  841. end)
  842. end)
  843. bin.Deselected:connect(function() removeParts() end)--mediafire
Add Comment
Please, Sign In to add comment