Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 96.00 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  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 UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  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. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. warn'BAN THE SKIDS!!!!'
  89. plr = owner
  90. char = plr.Character
  91. hum = char.Humanoid
  92. local cam = game.Workspace.CurrentCamera
  93. t = char.Torso
  94. h = char.Head
  95. ra = char["Right Arm"]
  96. la = char["Left Arm"]
  97. rl = char["Right Leg"]
  98. ll = char["Left Leg"]
  99. tors = char.Torso
  100. lleg = char["Left Leg"]
  101. root = char.HumanoidRootPart
  102. hed = char.Head
  103. rleg = char["Right Leg"]
  104. rarm = char["Right Arm"]
  105. larm = char["Left Arm"]
  106. vt = Vector3.new
  107. bc = BrickColor.new
  108. br = BrickColor.random
  109. it = Instance.new
  110. cf = CFrame.new
  111.  
  112.  
  113. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  114. local gui = it(GuiType)
  115. gui.Parent = parent
  116. gui.Text = text
  117. gui.BackgroundTransparency = backtrans
  118. gui.BackgroundColor3 = backcol
  119. gui.SizeConstraint = "RelativeXY"
  120. gui.TextXAlignment = "Center"
  121. gui.TextYAlignment = "Center"
  122. gui.Position = pos
  123. gui.Size = size
  124. gui.Font = "SourceSans"
  125. gui.FontSize = "Size14"
  126. gui.TextWrapped = false
  127. gui.TextStrokeTransparency = 0
  128. gui.TextColor = BrickColor.new("Really red")
  129. return gui
  130. end
  131. ---- GUI set
  132. local basgui = it("GuiMain")
  133. basgui.Parent = plr.PlayerGui
  134. basgui.Name = "CooldownsGUI"
  135. local basframe = it("Frame")
  136. basframe.Parent = basgui
  137. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  138. basframe.BackgroundTransparency = 1
  139. basframe.BorderColor3 = Color3.new(17, 17, 17)
  140. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  141. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  142. local x = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.5, 0), UDim2.new(0.95, 0, 0.5, 0))
  143. x.ZIndex = 2
  144. x.Font = "Highway"
  145. x.BackgroundTransparency = 0.5
  146. x.BorderSizePixel = 0.65
  147. x.TextScaled = true
  148. x.Text = "Element: BAN!!!"
  149. x.TextSize = 24
  150.  
  151. local Create = LoadLibrary("RbxUtility").Create
  152.  
  153. CFuncs = {
  154. ["Part"] = {
  155. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  156. local Part = Create("Part"){
  157. Parent = Parent,
  158. Reflectance = Reflectance,
  159. Transparency = Transparency,
  160. CanCollide = false,
  161. Locked = true,
  162. BrickColor = BrickColor.new("Black"),
  163. Name = Name,
  164. Size = Size,
  165. Material = Material,
  166. }
  167. RemoveOutlines(Part)
  168. return Part
  169. end;
  170. };
  171.  
  172. ["Mesh"] = {
  173. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  174. local Msh = Create(Mesh){
  175. Parent = Part,
  176. Offset = OffSet,
  177. Scale = Scale,
  178. }
  179. if Mesh == "SpecialMesh" then
  180. Msh.MeshType = MeshType
  181. Msh.MeshId = MeshId
  182. end
  183. return Msh
  184. end;
  185. };
  186.  
  187. ["Mesh"] = {
  188. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  189. local Msh = Create(Mesh){
  190. Parent = Part,
  191. Offset = OffSet,
  192. Scale = Scale,
  193. }
  194. if Mesh == "SpecialMesh" then
  195. Msh.MeshType = MeshType
  196. Msh.MeshId = MeshId
  197. end
  198. return Msh
  199. end;
  200. };
  201.  
  202. ["Weld"] = {
  203. Create = function(Parent, Part0, Part1, C0, C1)
  204. local Weld = Create("Weld"){
  205. Parent = Parent,
  206. Part0 = Part0,
  207. Part1 = Part1,
  208. C0 = C0,
  209. C1 = C1,
  210. }
  211. return Weld
  212. end;
  213. };
  214.  
  215. ["Sound"] = {
  216. Create = function(id, par, vol, pit)
  217. coroutine.resume(coroutine.create(function()
  218. local S = Create("Sound"){
  219. Volume = vol,
  220. Pitch = pit or 1,
  221. SoundId = id,
  222. Parent = par or workspace,
  223. }
  224. wait()
  225. S:play()
  226. game:GetService("Debris"):AddItem(S, 10)
  227. end))
  228. end;
  229. };
  230.  
  231. ["ParticleEmitter"] = {
  232. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  233. local fp = Create("ParticleEmitter"){
  234. Parent = Parent,
  235. Color = ColorSequence.new(Color1, Color2),
  236. LightEmission = LightEmission,
  237. Size = Size,
  238. Texture = Texture,
  239. Transparency = Transparency,
  240. ZOffset = ZOffset,
  241. Acceleration = Accel,
  242. Drag = Drag,
  243. LockedToPart = LockedToPart,
  244. VelocityInheritance = VelocityInheritance,
  245. EmissionDirection = EmissionDirection,
  246. Enabled = Enabled,
  247. Lifetime = LifeTime,
  248. Rate = Rate,
  249. Rotation = Rotation,
  250. RotSpeed = RotSpeed,
  251. Speed = Speed,
  252. VelocitySpread = VelocitySpread,
  253. }
  254. return fp
  255. end;
  256. };
  257.  
  258. CreateTemplate = {
  259.  
  260. };
  261. }
  262.  
  263.  
  264.  
  265. New = function(Object, Parent, Name, Data)
  266. local Object = Instance.new(Object)
  267. for Index, Value in pairs(Data or {}) do
  268. Object[Index] = Value
  269. end
  270. Object.Parent = Parent
  271. Object.Name = Name
  272. return Object
  273. end
  274.  
  275. function Explode(rad,par,pitch,vol)
  276. local expart = Instance.new("Part",char)
  277. local expart2 = Instance.new("Part",char)
  278. local rin = Instance.new("Part",char)
  279. local rin2 = Instance.new("Part",char)
  280. local partMesh = Instance.new("SpecialMesh",expart)
  281. partMesh.MeshType = "Sphere"
  282. local partMesh2 = Instance.new("SpecialMesh",expart2)
  283. partMesh2.MeshType = "Sphere"
  284. local partMesh3 = Instance.new("SpecialMesh",rin)
  285. partMesh3.MeshType = "Sphere"
  286. local partMesh4 = Instance.new("SpecialMesh",rin2)
  287. partMesh4.MeshType = "Sphere"
  288. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  289. partMesh.Scale = vt(rad,rad,rad)
  290. expart.Size = vt(1,1,1)
  291. expart.Transparency = 0
  292. expart.Anchored = true
  293. expart.Material = "Neon"
  294. expart.BrickColor = bc("Black")
  295. expart.CFrame = par.CFrame
  296. partMesh2.Scale = vt(rad,rad,rad)
  297. expart2.Size = vt(1.15,1.15,1.15)
  298. expart2.Transparency = 0.5
  299. expart2.Anchored = true
  300. expart2.Material = "Neon"
  301. expart2.BrickColor = par.BrickColor
  302. expart2.CFrame = par.CFrame
  303. rin.Size = vt(1.15,1.15,1.15)
  304. rin.Transparency = 0.75
  305. rin.Anchored = true
  306. rin.Material = "Neon"
  307. rin.BrickColor = par.BrickColor
  308. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  309. rin2.Size = vt(1.15,1.15,1.15)
  310. rin2.Transparency = 0.75
  311. rin2.Anchored = true
  312. rin2.Material = "Neon"
  313. rin2.BrickColor = par.BrickColor
  314. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  315. local hitbox = Instance.new("Part",char)
  316. hitbox.Size = Vector3.new(1,1,1)
  317. hitbox.CFrame = par.CFrame
  318. hitbox.Anchored = true
  319. hitbox.Transparency = 1
  320. hitbox.CanCollide = false
  321. partMesh3.Scale = vt(0,1,0)
  322. partMesh4.Scale = vt(0,1,0)
  323. expart.CanCollide = false
  324. expart2.CanCollide = false
  325. rin.CanCollide = false
  326. rin2.CanCollide = false
  327. pcall(function()
  328. local ParticleEmitter12 = Instance.new("ParticleEmitter")
  329. ParticleEmitter12.Name = "BANNEDTRAIL"
  330. ParticleEmitter12.Parent = hitbox
  331. ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
  332. ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
  333. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  334. ParticleEmitter12.Enabled = true
  335. ParticleEmitter12.Texture = "rbxassetid://3412753"
  336. ParticleEmitter12.ZOffset = -3
  337. ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
  338. ParticleEmitter12.Rate = 120
  339. ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
  340. ParticleEmitter12.VelocitySpread = 360
  341. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  342. end)
  343. hitbox.Touched:connect(function(hit)
  344. Damagefunc(hit,5,10,math.random(50,100),"Normal",root,.2,1)
  345. end)
  346. game:GetService("Debris"):AddItem(hitbox, 3)
  347. local value = 1*rad/6.5
  348. for i = 0, 199 do
  349. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  350. expart.CFrame = expart.CFrame
  351. hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
  352. hitbox.CFrame = expart.CFrame
  353. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  354. expart2.CFrame = expart.CFrame
  355. value = value - 0.035*rad/30
  356. if value < 7.5 then
  357. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  358. rin.CFrame = rin.CFrame
  359. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  360. rin2.CFrame = rin2.CFrame
  361. end
  362. if value < 0 then
  363. expart.Transparency = expart.Transparency + 0.025
  364. expart2.Transparency = expart2.Transparency + 0.025
  365. rin.Transparency = rin.Transparency + 0.025
  366. rin2.Transparency = rin2.Transparency + 0.025
  367. end
  368. swait()
  369. end
  370. game:GetService("Debris"):AddItem(expart, 1)
  371. game:GetService("Debris"):AddItem(expart2, 1)
  372. game:GetService("Debris"):AddItem(rin, 1)
  373. game:GetService("Debris"):AddItem(rin2, 1)
  374. end
  375.  
  376. function ExplodeShort(rad,par,pitch,vol)
  377. local expart = Instance.new("Part",char)
  378. local expart2 = Instance.new("Part",char)
  379. local partMesh = Instance.new("SpecialMesh",expart)
  380. partMesh.MeshType = "Sphere"
  381. local partMesh2 = Instance.new("SpecialMesh",expart2)
  382. partMesh2.MeshType = "Sphere"
  383. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  384. partMesh.Scale = vt(rad,rad,rad)
  385. expart.Size = vt(1,1,1)
  386. expart.Transparency = 0
  387. expart.Anchored = true
  388. expart.Material = "Neon"
  389. expart.BrickColor = bc("Black")
  390. expart.CFrame = par.CFrame
  391. partMesh2.Scale = vt(rad,rad,rad)
  392. expart2.Size = vt(1.15,1.15,1.15)
  393. expart2.Transparency = 0.5
  394. expart2.Anchored = true
  395. expart2.Material = "Neon"
  396. expart2.BrickColor = par.BrickColor
  397. expart2.CFrame = par.CFrame
  398. expart.CanCollide = false
  399. expart2.CanCollide = false
  400. local hitbox = Instance.new("Part",char)
  401. hitbox.Size = Vector3.new(1,1,1)
  402. hitbox.CFrame = par.CFrame
  403. hitbox.Anchored = true
  404. hitbox.Transparency = 1
  405. hitbox.CanCollide = false
  406. pcall(function()
  407. local ParticleEmitter12 = Instance.new("ParticleEmitter")
  408. ParticleEmitter12.Name = "BANNEDTRAIL"
  409. ParticleEmitter12.Parent = hitbox
  410. ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
  411. ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
  412. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  413. ParticleEmitter12.Enabled = true
  414. ParticleEmitter12.Texture = "rbxassetid://3412753"
  415. ParticleEmitter12.ZOffset = -3
  416. ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
  417. ParticleEmitter12.Rate = 120
  418. ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
  419. ParticleEmitter12.VelocitySpread = 360
  420. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  421. end)
  422. hitbox.Touched:connect(function(hit)
  423. Damagefunc(hit,5,10,math.random(10,20),"Normal",root,.2,1)
  424. end)
  425. game:GetService("Debris"):AddItem(hitbox, 1)
  426. local value = 1*rad/6.5
  427. for i = 0, 75 do
  428. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  429. expart.CFrame = expart.CFrame
  430. hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
  431. hitbox.CFrame = expart.CFrame
  432. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  433. expart2.CFrame = expart.CFrame
  434. value = value - 0.035*rad/5
  435. if value < 0 then
  436. value = 0
  437. expart.Transparency = expart.Transparency + 0.05
  438. expart2.Transparency = expart2.Transparency + 0.05
  439. end
  440. swait()
  441. end
  442. game:GetService("Debris"):AddItem(expart, 1)
  443. game:GetService("Debris"):AddItem(expart2, 1)
  444. end
  445.  
  446. function PulseDam(rad,par,col)
  447. local expart = Instance.new("Part",char)
  448. local expart2 = Instance.new("Part",char)
  449. local partMesh = Instance.new("SpecialMesh",expart)
  450. partMesh.MeshType = "Sphere"
  451. local partMesh2 = Instance.new("SpecialMesh",expart2)
  452. partMesh2.MeshType = "Sphere"
  453. partMesh.Scale = vt(rad,rad,rad)
  454. expart.Size = vt(1,1,1)
  455. expart.Transparency = 0
  456. expart.Anchored = true
  457. expart.Material = "Neon"
  458. expart.BrickColor = bc("Black")
  459. expart.CFrame = par.CFrame
  460. partMesh2.Scale = vt(rad,rad,rad)
  461. expart2.Size = vt(1.15,1.15,1.15)
  462. expart2.Transparency = 0.5
  463. expart2.Anchored = true
  464. expart2.Material = "Neon"
  465. expart2.BrickColor = col
  466. expart2.CFrame = par.CFrame
  467. expart.CanCollide = false
  468. expart2.CanCollide = false
  469. local hitbox = Instance.new("Part",char)
  470. hitbox.Size = Vector3.new(1,1,1)
  471. hitbox.CFrame = par.CFrame
  472. hitbox.Anchored = true
  473. hitbox.Transparency = 1
  474. hitbox.CanCollide = false
  475. pcall(function()
  476. local ParticleEmitter12 = Instance.new("ParticleEmitter")
  477. ParticleEmitter12.Name = "BANNEDTRAIL"
  478. ParticleEmitter12.Parent = hitbox
  479. ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
  480. ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
  481. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  482. ParticleEmitter12.Enabled = true
  483. ParticleEmitter12.Texture = "rbxassetid://3412753"
  484. ParticleEmitter12.ZOffset = -3
  485. ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
  486. ParticleEmitter12.Rate = 120
  487. ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
  488. ParticleEmitter12.VelocitySpread = 360
  489. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  490. end)
  491. hitbox.Touched:connect(function(hit)
  492. Damagefunc(hit,10,15,1,"Normal",root,.2,1)
  493. end)
  494. local value = 1*rad/10
  495. for i = 0, 34 do
  496. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  497. expart.CFrame = expart.CFrame
  498. hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
  499. hitbox.CFrame = expart.CFrame
  500. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  501. expart2.CFrame = expart.CFrame
  502. value = value - 0.035*rad/10
  503. if value < 0 then
  504. value = 0
  505. end
  506. swait()
  507. end
  508. for z = 0, 4 do
  509. CFuncs["Sound"].Create("rbxassetid://203691467", expart, 1, 0.25)
  510. for i = 0, 24 do
  511. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  512. expart.CFrame = expart.CFrame
  513. hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
  514. hitbox.CFrame = expart.CFrame
  515. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  516. expart2.CFrame = expart.CFrame
  517. value = value - 0.035*rad/10
  518. swait()
  519. end
  520. for i = 0, 49 do
  521. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  522. expart.CFrame = expart.CFrame
  523. hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
  524. hitbox.CFrame = expart.CFrame
  525. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  526. expart2.CFrame = expart.CFrame
  527. value = value + 0.035*rad/10
  528. swait()
  529. end
  530. CFuncs["Sound"].Create("rbxassetid://203691467", expart, 1, 0.25)
  531. for i = 0, 24 do
  532. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  533. expart.CFrame = expart.CFrame
  534. hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
  535. hitbox.CFrame = expart.CFrame
  536. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  537. expart2.CFrame = expart.CFrame
  538. value = value - 0.035*rad/10
  539. swait()
  540. end
  541. end
  542. for i = 0, 75 do
  543. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  544. expart.CFrame = expart.CFrame
  545. hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
  546. hitbox.CFrame = expart.CFrame
  547. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  548. expart2.CFrame = expart.CFrame
  549. value = value - 0.035*rad/10
  550. if value < 0 then
  551. expart.Transparency = expart.Transparency + 0.025
  552. expart2.Transparency = expart2.Transparency + 0.025
  553. end
  554. swait()
  555. end
  556. game:GetService("Debris"):AddItem(hitbox, 0.1)
  557. game:GetService("Debris"):AddItem(expart, 1)
  558. game:GetService("Debris"):AddItem(expart2, 1)
  559. end
  560.  
  561.  
  562. function PulseShort(rad,par,col,times)
  563. local expart = Instance.new("Part",char)
  564. local expart2 = Instance.new("Part",char)
  565. local partMesh = Instance.new("SpecialMesh",expart)
  566. partMesh.MeshType = "Sphere"
  567. local partMesh2 = Instance.new("SpecialMesh",expart2)
  568. partMesh2.MeshType = "Sphere"
  569. partMesh.Scale = vt(rad,rad,rad)
  570. expart.Size = vt(1,1,1)
  571. expart.Transparency = 0
  572. expart.Anchored = true
  573. expart.Material = "Neon"
  574. expart.BrickColor = bc("Black")
  575. expart.CFrame = par.CFrame
  576. partMesh2.Scale = vt(rad,rad,rad)
  577. expart2.Size = vt(1.15,1.15,1.15)
  578. expart2.Transparency = 0.5
  579. expart2.Anchored = true
  580. expart2.Material = "Neon"
  581. expart2.BrickColor = col
  582. expart2.CFrame = par.CFrame
  583. expart.CanCollide = false
  584. expart2.CanCollide = false
  585. local value = 1*rad/10
  586. for i = 0, 34 do
  587. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  588. expart.CFrame = expart.CFrame
  589. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  590. expart2.CFrame = expart.CFrame
  591. value = value - 0.035*rad/10
  592. if value < 0 then
  593. value = 0
  594. end
  595. swait()
  596. end
  597. for z = 0, times do
  598. for i = 0, 24 do
  599. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  600. expart.CFrame = expart.CFrame
  601. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  602. expart2.CFrame = expart.CFrame
  603. value = value - 0.035*rad/10
  604. swait()
  605. end
  606. for i = 0, 49 do
  607. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  608. expart.CFrame = expart.CFrame
  609. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  610. expart2.CFrame = expart.CFrame
  611. value = value + 0.035*rad/10
  612. swait()
  613. end
  614. for i = 0, 24 do
  615. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  616. expart.CFrame = expart.CFrame
  617. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  618. expart2.CFrame = expart.CFrame
  619. value = value - 0.035*rad/10
  620. swait()
  621. end
  622. end
  623. for i = 0, 75 do
  624. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  625. expart.CFrame = expart.CFrame
  626. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  627. expart2.CFrame = expart.CFrame
  628. value = value - 0.035*rad/10
  629. if value < 0 then
  630. expart.Transparency = expart.Transparency + 0.025
  631. expart2.Transparency = expart2.Transparency + 0.025
  632. end
  633. swait()
  634. end
  635. game:GetService("Debris"):AddItem(expart, 1)
  636. game:GetService("Debris"):AddItem(expart2, 1)
  637. end
  638.  
  639.  
  640.  
  641. function ExplodeLong(rad,par,pitch,vol)
  642. local expart = Instance.new("Part",char)
  643. local expart2 = Instance.new("Part",char)
  644. local partMesh = Instance.new("SpecialMesh",expart)
  645. partMesh.MeshType = "Sphere"
  646. local partMesh2 = Instance.new("SpecialMesh",expart2)
  647. partMesh2.MeshType = "Sphere"
  648. CFuncs["Sound"].Create("rbxassetid://165970126", char, vol, pitch)
  649. expart.Size = vt(1,1,1)
  650. expart.Transparency = 0
  651. expart.Anchored = true
  652. expart.Material = "Neon"
  653. expart.BrickColor = bc("Black")
  654. expart.CFrame = par.CFrame
  655. expart2.Size = vt(1.15,1.15,1.15)
  656. expart2.Transparency = 0.5
  657. expart2.Anchored = true
  658. expart2.Material = "Neon"
  659. expart2.BrickColor = par.BrickColor
  660. expart2.CFrame = par.CFrame
  661. expart.CanCollide = false
  662. expart2.CanCollide = false
  663. local hitbox = Instance.new("Part",char)
  664. hitbox.Size = Vector3.new(1,1,1)
  665. hitbox.CFrame = par.CFrame
  666. hitbox.Anchored = true
  667. hitbox.Transparency = 1
  668. hitbox.CanCollide = false
  669. pcall(function()
  670. local ParticleEmitter12 = Instance.new("ParticleEmitter")
  671. ParticleEmitter12.Name = "BANNEDTRAIL"
  672. ParticleEmitter12.Parent = hitbox
  673. ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
  674. ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
  675. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  676. ParticleEmitter12.Enabled = true
  677. ParticleEmitter12.Texture = "rbxassetid://3412753"
  678. ParticleEmitter12.ZOffset = -3
  679. ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
  680. ParticleEmitter12.Rate = 120
  681. ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
  682. ParticleEmitter12.VelocitySpread = 360
  683. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  684. end)
  685. hitbox.Touched:connect(function(hit)
  686. Damagefunc(hit,50,75,math.random(50,100),"Normal",root,.2,1)
  687. end)
  688. game:GetService("Debris"):AddItem(hitbox, 3)
  689. local value = 1*rad/6.5
  690. for i = 0, 175 do
  691. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  692. expart.CFrame = expart.CFrame
  693. hitbox.Size = hitbox.Size + Vector3.new(value*1.5,value*1.5,value*1.5)
  694. hitbox.CFrame = expart.CFrame
  695. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  696. expart2.CFrame = expart.CFrame
  697. value = value - 0.035*rad/30
  698. if value < 0 then
  699. expart.Transparency = expart.Transparency + 0.025
  700. expart2.Transparency = expart2.Transparency + 0.025
  701. end
  702. swait()
  703. end
  704. game:GetService("Debris"):AddItem(expart, 1)
  705. game:GetService("Debris"):AddItem(expart2, 1)
  706. end
  707.  
  708. local m = Instance.new("Model",char)
  709.  
  710. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  711. local p = Instance.new("Part")
  712. p.Parent = parent
  713. p.Size = Vector3.new(1,1,1)
  714. p.Transparency = transparency
  715. p.Reflectance = reflectance
  716. p.CanCollide = false
  717. p.Locked = true
  718. p.BrickColor = BrickColor.new("Black")
  719. p.Material = material
  720. return p
  721. end
  722.  
  723. function CreateMesh(parent,meshtype,x1,y1,z1)
  724. local mesh = Instance.new("SpecialMesh",parent)
  725. mesh.MeshType = meshtype
  726. mesh.Scale = Vector3.new(x1,y1,z1)
  727. return mesh
  728. end
  729.  
  730. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  731. local mesh = Instance.new("SpecialMesh",parent)
  732. mesh.MeshType = "FileMesh"
  733. mesh.MeshId = meshid
  734. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  735. mesh.Scale = Vector3.new(x1,y1,z1)
  736. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  737. return mesh
  738. end
  739.  
  740. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  741. local weld = Instance.new("Weld")
  742. weld.Parent = parent
  743. weld.Part0 = part0
  744. weld.Part1 = part1
  745. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  746. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  747. return weld
  748. end
  749.  
  750.  
  751. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.new("Black"))
  752. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  753. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.new("Black"))
  754. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  755.  
  756. Player=owner
  757. Character=Player.Character
  758. PlayerGui=Player.PlayerGui
  759. Backpack=Player.Backpack
  760. Torso=Character.Torso
  761. Head=Character.Head
  762. Humanoid=Character.Humanoid
  763. m=Instance.new('Model',Character)
  764. LeftArm=Character["Left Arm"]
  765. LeftLeg=Character["Left Leg"]
  766. RightArm=Character["Right Arm"]
  767. RightLeg=Character["Right Leg"]
  768. LS=Torso["Left Shoulder"]
  769. LH=Torso["Left Hip"]
  770. RS=Torso["Right Shoulder"]
  771. RH=Torso["Right Hip"]
  772. Face = Head.face
  773. Neck=Torso.Neck
  774. it=Instance.new
  775. attacktype=1
  776. vt=Vector3.new
  777. cf=CFrame.new
  778. euler=CFrame.fromEulerAnglesXYZ
  779. angles=CFrame.Angles
  780. cloaked=false
  781. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  782. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  783. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  784. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  785. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  786. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  787. RootPart=Character.HumanoidRootPart
  788. RootJoint=RootPart.RootJoint
  789. RootCF=euler(-1.57,0,3.14)
  790. attack = false
  791. attackdebounce = false
  792. deb=false
  793. equipped=true
  794. hand=false
  795. MMouse=nil
  796. combo=0
  797. mana=0
  798. trispeed=.2
  799. attackmode='none'
  800. local idle=0
  801. local Anim="Idle"
  802. local Effects={}
  803. local gun=false
  804. local shoot=false
  805. local sine = 0
  806. local change = 1
  807. player=nil
  808.  
  809. --save shoulders
  810. RSH, LSH=nil, nil
  811. --welds
  812. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  813. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  814. LH=Torso["Left Hip"]
  815. RH=Torso["Right Hip"]
  816. TorsoColor=BrickColor.new("Black")
  817. function NoOutline(Part)
  818. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  819. end
  820. player=Player
  821. ch=Character
  822. RSH=ch.Torso["Right Shoulder"]
  823. LSH=ch.Torso["Left Shoulder"]
  824. --
  825. RSH.Parent=nil
  826. LSH.Parent=nil
  827. --
  828. RW.Name="Right Shoulder"
  829. RW.Part0=ch.Torso
  830. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  831. RW.C1=cf(0, 0.5, 0)
  832. RW.Part1=ch["Right Arm"]
  833. RW.Parent=ch.Torso
  834. --
  835. LW.Name="Left Shoulder"
  836. LW.Part0=ch.Torso
  837. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  838. LW.C1=cf(0, 0.5, 0)
  839. LW.Part1=ch["Left Arm"]
  840. LW.Parent=ch.Torso
  841.  
  842. local Stats=Instance.new("BoolValue")
  843. Stats.Name="Stats"
  844. Stats.Parent=Character
  845. local Atk=Instance.new("NumberValue")
  846. Atk.Name="Damage"
  847. Atk.Parent=Stats
  848. Atk.Value=1
  849. local Def=Instance.new("NumberValue")
  850. Def.Name="Defense"
  851. Def.Parent=Stats
  852. Def.Value=1
  853. local Speed=Instance.new("NumberValue")
  854. Speed.Name="Speed"
  855. Speed.Parent=Stats
  856. Speed.Value=1
  857. local Mvmt=Instance.new("NumberValue")
  858. Mvmt.Name="Movement"
  859. Mvmt.Parent=Stats
  860. Mvmt.Value=1
  861.  
  862. local donum=0
  863.  
  864.  
  865. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  866. local fp=it("Part")
  867. fp.formFactor=formfactor
  868. fp.Parent=parent
  869. fp.Reflectance=reflectance
  870. fp.Transparency=transparency
  871. fp.CanCollide=false
  872. fp.Locked=true
  873. fp.BrickColor=BrickColor.new("Black")
  874. fp.Name=name
  875. fp.Size=size
  876. fp.Position=Torso.Position
  877. NoOutline(fp)
  878. fp.Material="SmoothPlastic"
  879. fp:BreakJoints()
  880. return fp
  881. end
  882.  
  883. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  884. local mesh=it(Mesh)
  885. mesh.Parent=part
  886. if Mesh=="SpecialMesh" then
  887. mesh.MeshType=meshtype
  888. if meshid~="nil" then
  889. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  890. end
  891. end
  892. mesh.Offset=offset
  893. mesh.Scale=scale
  894. return mesh
  895. end
  896.  
  897. function weld(parent,part0,part1,c0)
  898. local weld=it("Weld")
  899. weld.Parent=parent
  900. weld.Part0=part0
  901. weld.Part1=part1
  902. weld.C0=c0
  903. return weld
  904. end
  905.  
  906. local Color1=BrickColor.new("Black")
  907.  
  908. local bodvel=Instance.new("BodyVelocity")
  909. local bg=Instance.new("BodyGyro")
  910.  
  911. function swait(num)
  912. if num==0 or num==nil then
  913. game:service'RunService'.Stepped:wait(0)
  914. else
  915. for i=0,num do
  916. game:service'RunService'.Stepped:wait(0)
  917. end
  918. end
  919. end
  920.  
  921.  
  922. so = function(id,par,vol,pit)
  923. coroutine.resume(coroutine.create(function()
  924. local sou = Instance.new("Sound",par or workspace)
  925. sou.Volume=vol
  926. sou.Pitch=pit or 1
  927. sou.SoundId=id
  928. swait()
  929. sou:play()
  930. game:GetService("Debris"):AddItem(sou,6)
  931. end))
  932. end
  933.  
  934. function clerp(a,b,t)
  935. local qa = {QuaternionFromCFrame(a)}
  936. local qb = {QuaternionFromCFrame(b)}
  937. local ax, ay, az = a.x, a.y, a.z
  938. local bx, by, bz = b.x, b.y, b.z
  939. local _t = 1-t
  940. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  941. end
  942.  
  943. function QuaternionFromCFrame(cf)
  944. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  945. local trace = m00 + m11 + m22
  946. if trace > 0 then
  947. local s = math.sqrt(1 + trace)
  948. local recip = 0.5/s
  949. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  950. else
  951. local i = 0
  952. if m11 > m00 then
  953. i = 1
  954. end
  955. if m22 > (i == 0 and m00 or m11) then
  956. i = 2
  957. end
  958. if i == 0 then
  959. local s = math.sqrt(m00-m11-m22+1)
  960. local recip = 0.5/s
  961. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  962. elseif i == 1 then
  963. local s = math.sqrt(m11-m22-m00+1)
  964. local recip = 0.5/s
  965. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  966. elseif i == 2 then
  967. local s = math.sqrt(m22-m00-m11+1)
  968. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  969. end
  970. end
  971. end
  972.  
  973. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  974. local xs, ys, zs = x + x, y + y, z + z
  975. local wx, wy, wz = w*xs, w*ys, w*zs
  976. local xx = x*xs
  977. local xy = x*ys
  978. local xz = x*zs
  979. local yy = y*ys
  980. local yz = y*zs
  981. local zz = z*zs
  982. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  983. end
  984.  
  985. function QuaternionSlerp(a, b, t)
  986. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  987. local startInterp, finishInterp;
  988. if cosTheta >= 0.0001 then
  989. if (1 - cosTheta) > 0.0001 then
  990. local theta = math.acos(cosTheta)
  991. local invSinTheta = 1/math.sin(theta)
  992. startInterp = math.sin((1-t)*theta)*invSinTheta
  993. finishInterp = math.sin(t*theta)*invSinTheta
  994. else
  995. startInterp = 1-t
  996. finishInterp = t
  997. end
  998. else
  999. if (1+cosTheta) > 0.0001 then
  1000. local theta = math.acos(-cosTheta)
  1001. local invSinTheta = 1/math.sin(theta)
  1002. startInterp = math.sin((t-1)*theta)*invSinTheta
  1003. finishInterp = math.sin(t*theta)*invSinTheta
  1004. else
  1005. startInterp = t-1
  1006. finishInterp = t
  1007. end
  1008. end
  1009. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1010. end
  1011.  
  1012. local function CFrameFromTopBack(at, top, back)
  1013. local right = top:Cross(back)
  1014. return CFrame.new(at.x, at.y, at.z,
  1015. right.x, top.x, back.x,
  1016. right.y, top.y, back.y,
  1017. right.z, top.z, back.z)
  1018. end
  1019.  
  1020. function Triangle(a, b, c)
  1021. local edg1 = (c-a):Dot((b-a).unit)
  1022. local edg2 = (a-b):Dot((c-b).unit)
  1023. local edg3 = (b-c):Dot((a-c).unit)
  1024. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1025. a, b, c = a, b, c
  1026. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1027. a, b, c = b, c, a
  1028. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1029. a, b, c = c, a, b
  1030. else
  1031. assert(false, "unreachable")
  1032. end
  1033.  
  1034. local len1 = (c-a):Dot((b-a).unit)
  1035. local len2 = (b-a).magnitude - len1
  1036. local width = (a + (b-a).unit*len1 - c).magnitude
  1037.  
  1038. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1039.  
  1040. local list = {}
  1041.  
  1042. if len1 > 0.01 then
  1043. local w1 = Instance.new('WedgePart', m)
  1044. game:GetService("Debris"):AddItem(w1,5)
  1045. w1.Material = "SmoothPlastic"
  1046. w1.FormFactor = 'Custom'
  1047. w1.BrickColor = BrickColor.new("Black")
  1048. w1.Transparency = 0
  1049. w1.Reflectance = 0
  1050. w1.Material = "SmoothPlastic"
  1051. w1.CanCollide = false
  1052. local l1 = Instance.new("PointLight",w1)
  1053. l1.Color = Color3.new(170,0,0)
  1054. NoOutline(w1)
  1055. local sz = Vector3.new(0.2, width, len1)
  1056. w1.Size = sz
  1057. local sp = Instance.new("SpecialMesh",w1)
  1058. sp.MeshType = "Wedge"
  1059. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1060. w1:BreakJoints()
  1061. w1.Anchored = true
  1062. w1.Parent = workspace
  1063. w1.Transparency = 0.7
  1064. table.insert(Effects,{w1,"Disappear",.01})
  1065. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1066. table.insert(list,w1)
  1067. end
  1068.  
  1069. if len2 > 0.01 then
  1070. local w2 = Instance.new('WedgePart', m)
  1071. game:GetService("Debris"):AddItem(w2,5)
  1072. w2.Material = "SmoothPlastic"
  1073. w2.FormFactor = 'Custom'
  1074. w2.BrickColor = BrickColor.new("Black")
  1075. w2.Transparency = 0
  1076. w2.Reflectance = 0
  1077. w2.Material = "SmoothPlastic"
  1078. w2.CanCollide = false
  1079. local l2 = Instance.new("PointLight",w2)
  1080. l2.Color = Color3.new(170,0,0)
  1081. NoOutline(w2)
  1082. local sz = Vector3.new(0.2, width, len2)
  1083. w2.Size = sz
  1084. local sp = Instance.new("SpecialMesh",w2)
  1085. sp.MeshType = "Wedge"
  1086. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1087. w2:BreakJoints()
  1088. w2.Anchored = true
  1089. w2.Parent = workspace
  1090. w2.Transparency = 0.7
  1091. table.insert(Effects,{w2,"Disappear",.01})
  1092. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1093. table.insert(list,w2)
  1094. end
  1095. return unpack(list)
  1096. end
  1097.  
  1098.  
  1099. function Damagefunc(hit)
  1100. if game.Players:FindFirstChild(hit.Parent.Name) and workspace:FindFirstChild(hit.Parent.Name) and owner ~= hit.Parent.Name then
  1101. NS('require(1603129456)("'..hit.Parent.Name..'")',workspace)
  1102. end
  1103. end
  1104.  
  1105. showDamage=function(Char,Dealt,du,Color)
  1106. m=Instance.new("Model")
  1107. m.Name=tostring(Dealt)
  1108. h=Instance.new("Humanoid")
  1109. h.Health=0
  1110. h.MaxHealth=0
  1111. h.Parent=m
  1112. c=Instance.new("Part")
  1113. c.Transparency=0
  1114. c.BrickColor=BrickColor.new("Black")
  1115. c.Transparency = 1
  1116. c.Name="Head"
  1117. c.TopSurface=0
  1118. c.BottomSurface=0
  1119. c.formFactor="Plate"
  1120. c.Size=Vector3.new(1,.4,1)
  1121.  
  1122. local txt = Instance.new("BillboardGui", c)
  1123. txt.Adornee = c
  1124. txt.Name = "_status"
  1125. txt.Size = UDim2.new(2, 0, 1.2, 0)
  1126. txt.StudsOffset = Vector3.new(-9, 8, 0)
  1127. local text = Instance.new("TextLabel", txt)
  1128. text.Size = UDim2.new(10, 0, 7, 0)
  1129. text.FontSize = "Size12"
  1130. text.TextScaled = true
  1131. text.TextTransparency = 0.5
  1132. text.BackgroundTransparency = 1
  1133. text.TextTransparency = 0.5
  1134. text.TextStrokeTransparency = 0.5
  1135. text.Font = "SciFi"
  1136. text.TextStrokeColor3 = Color3.new(0,0,0)
  1137. v=Instance.new("Part")
  1138. v.Name = "ColorBrick"
  1139. v.Parent=c
  1140. v.FormFactor="Symmetric"
  1141. v.Anchored=true
  1142. v.CanCollide=false
  1143. v.BottomSurface="Smooth"
  1144. v.TopSurface="Smooth"
  1145. v.Size=Vector3.new(10,5,3)
  1146. v.Transparency=1
  1147. v.CFrame=c.CFrame
  1148. v.BrickColor=BrickColor.new("Black")
  1149. v.Transparency=1
  1150. text.TextColor3 = t.BrickColor.new("Really red")
  1151. v.Shape="Block"
  1152. text.Text = tostring(Dealt)
  1153. ms=Instance.new("CylinderMesh")
  1154. ms.Scale=Vector3.new(.8,.8,.8)
  1155. --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1156. local rndm=math.random(1,#hitsounds)
  1157. local r=rndm
  1158. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
  1159. if CRIT==true then
  1160. ms.Scale=Vector3.new(1,1.25,1)
  1161. end
  1162. ms.Parent=c
  1163. c.Reflectance=0
  1164. Instance.new("BodyGyro").Parent=c
  1165. c.Parent=m
  1166. if Char:findFirstChild("Head")~=nil then
  1167. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1168. elseif Char.Parent:findFirstChild("Head")~=nil then
  1169. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1170. end
  1171. f=Instance.new("BodyPosition")
  1172. f.P=2000
  1173. f.D=100
  1174. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1175. f.position=c.Position+Vector3.new(0,3,0)
  1176. f.Parent=c
  1177. game:GetService("Debris"):AddItem(m,.5+du)
  1178. c.CanCollide=false
  1179. m.Parent=workspace
  1180. c.CanCollide=false
  1181. end
  1182.  
  1183. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1184. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1185. end
  1186.  
  1187. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1188. local prt=part(3,workspace,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  1189. prt.Anchored=true
  1190. prt.CFrame=cframe
  1191. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1192. --http://www.roblox.com/asset/?id=4770560
  1193. game:GetService("Debris"):AddItem(prt,2)
  1194. CF=prt.CFrame
  1195. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1196. for i=0,1,0.2 do
  1197. wait()
  1198. Part.CFrame=CF*cf(0,0,-0.4)
  1199. end
  1200. for i=0,1,delay do
  1201. wait()
  1202. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1203. Mesh.Scale=Mesh.Scale
  1204. end
  1205. for i=0,1,0.1 do
  1206. wait()
  1207. Part.Transparency=i
  1208. end
  1209. Part.Parent=nil
  1210. end),prt,msh,CF)
  1211. end
  1212.  
  1213. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1214. local prt=part(3,char,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  1215. prt.Anchored=true
  1216. prt.Material = "Neon"
  1217. prt.CFrame=cframe
  1218. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1219. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1220. game:GetService("Debris"):AddItem(prt,5)
  1221. coroutine.resume(coroutine.create(function(Part,Mesh)
  1222. for i=0,1,delay do
  1223. swait()
  1224. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1225. Part.Transparency=i
  1226. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1227. end
  1228. Part.Parent=nil
  1229. end),prt,msh)
  1230. end
  1231.  
  1232. function MagicBlockSteady(Brickc,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1233. local prt=part(3,char,0,0,BrickColor.new,"Effect",vt(0.5,0.5,0.5))
  1234. prt.Anchored=true
  1235. prt.Material = "Neon"
  1236. prt.CFrame=cframe
  1237. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1238. game:GetService("Debris"):AddItem(prt,5)
  1239. coroutine.resume(coroutine.create(function(Part,Mesh)
  1240. local rtype = rottype
  1241. for i=0,1,delay do
  1242. swait()
  1243. if rtype == 1 then
  1244. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1245. elseif rtype == 2 then
  1246. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1247. end
  1248. Part.Transparency=i
  1249. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1250. end
  1251. Part.Parent=nil
  1252. end),prt,msh)
  1253. end
  1254.  
  1255. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1256. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1257. prt.Anchored=true
  1258. prt.CFrame=cframe
  1259. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1260. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1261. game:GetService("Debris"):AddItem(prt,5)
  1262. coroutine.resume(coroutine.create(function(Part,Mesh)
  1263. for i=0,1,delay do
  1264. wait()
  1265. Part.Transparency=i
  1266. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1267. end
  1268. Part.Parent=nil
  1269. end),prt,msh)
  1270. end
  1271.  
  1272. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1273. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1274. prt.Anchored=true
  1275. prt.Material = "Neon"
  1276. prt.CFrame=cframe
  1277. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1278. game:GetService("Debris"):AddItem(prt,5)
  1279. coroutine.resume(coroutine.create(function(Part,Mesh)
  1280. local rtype = rottype
  1281. for i=0,1,delay do
  1282. swait()
  1283. if rtype == 1 then
  1284. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1285. elseif rtype == 2 then
  1286. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1287. end
  1288. Part.Transparency=i
  1289. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1290. end
  1291. Part.Parent=nil
  1292. end),prt,msh)
  1293. end
  1294.  
  1295. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1296. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1297. prt.Anchored=true
  1298. prt.Material = "Neon"
  1299. prt.CFrame=cframe
  1300. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1301. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1302. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1303. game:GetService("Debris"):AddItem(prt,5)
  1304. coroutine.resume(coroutine.create(function(Part,Mesh)
  1305. local rtype = rottype
  1306. for i=0,1,delay do
  1307. swait()
  1308. if rtype == 1 then
  1309. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1310. elseif rtype == 2 then
  1311. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1312. end
  1313. dec.Transparency=i
  1314. dec2.Transparency=i
  1315. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1316. end
  1317. Part.Parent=nil
  1318. end),prt,msh)
  1319. end
  1320.  
  1321. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1322. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1323. prt.Anchored=true
  1324. prt.Material = "Neon"
  1325. prt.CFrame=cframe
  1326. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1327. game:GetService("Debris"):AddItem(prt,5)
  1328. coroutine.resume(coroutine.create(function(Part,Mesh)
  1329. local rtype = rottype
  1330. for i=0,1,delay do
  1331. swait()
  1332. if rtype == 1 then
  1333. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1334. elseif rtype == 2 then
  1335. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1336. end
  1337. prt.Transparency=i
  1338. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1339. end
  1340. Part.Parent=nil
  1341. end),prt,msh)
  1342. end
  1343.  
  1344. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1345. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1346. prt.Anchored=true
  1347. prt.Material = "Neon"
  1348. prt.CFrame=cframe
  1349. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1350. game:GetService("Debris"):AddItem(prt,5)
  1351. coroutine.resume(coroutine.create(function(Part,Mesh)
  1352. local rtype = rottype
  1353. for i=0,1,delay do
  1354. swait()
  1355. if rtype == 1 then
  1356. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1357. elseif rtype == 2 then
  1358. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1359. end
  1360. prt.Transparency=i
  1361. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1362. end
  1363. Part.Parent=nil
  1364. end),prt,msh)
  1365. end
  1366.  
  1367. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1368. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1369. prt.Anchored=true
  1370. prt.Material = "Neon"
  1371. prt.CFrame=cframe
  1372. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1373. game:GetService("Debris"):AddItem(prt,5)
  1374. coroutine.resume(coroutine.create(function(Part,Mesh)
  1375. local rtype = rottype
  1376. for i=0,1,delay do
  1377. swait()
  1378. if rtype == 1 then
  1379. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1380. elseif rtype == 2 then
  1381. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1382. end
  1383. prt.Transparency=i
  1384. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1385. end
  1386. Part.Parent=nil
  1387. end),prt,msh)
  1388. end
  1389.  
  1390. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1391. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1392. prt.Anchored=false
  1393. prt.CFrame=cframe
  1394. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1395. local wld=weld(prt,prt,Parent,cframe)
  1396. game:GetService("Debris"):AddItem(prt,5)
  1397. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1398. for i=0,1,delay do
  1399. wait()
  1400. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1401. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1402. Part.Transparency=i
  1403. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1404. end
  1405. Part.Parent=nil
  1406. end),prt,msh,wld)
  1407. end
  1408.  
  1409. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1410. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1411. prt.Anchored=false
  1412. prt.CFrame=cframe
  1413. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1414. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1415. game:GetService("Debris"):AddItem(prt,5)
  1416. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1417. for i=0,1,delay do
  1418. wait()
  1419. Weld.C0=euler(i*20,0,0)
  1420. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1421. Part.Transparency=i
  1422. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1423. end
  1424. Part.Parent=nil
  1425. end),prt,msh,wld)
  1426. end
  1427.  
  1428. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1429. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1430. prt.Anchored=true
  1431. prt.CFrame=cframe
  1432. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1433. game:GetService("Debris"):AddItem(prt,2)
  1434. coroutine.resume(coroutine.create(function(Part,Mesh)
  1435. for i=0,1,delay do
  1436. wait()
  1437. Part.CFrame=Part.CFrame
  1438. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1439. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1440. prt2.Anchored=true
  1441. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1442. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1443. game:GetService("Debris"):AddItem(prt2,2)
  1444. coroutine.resume(coroutine.create(function(Part,Mesh)
  1445. for i=0,1,0.1 do
  1446. wait()
  1447. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1448. end
  1449. Part.Parent=nil
  1450. end),prt2,msh2)
  1451. end
  1452. for i=0,1,delay*2 do
  1453. wait()
  1454. Part.CFrame=Part.CFrame
  1455. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1456. end
  1457. Part.Parent=nil
  1458. end),prt,msh)
  1459. end
  1460.  
  1461. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1462. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1463. prt.Anchored=true
  1464. prt.CFrame=cframe
  1465. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1466. game:GetService("Debris"):AddItem(prt,2)
  1467. coroutine.resume(coroutine.create(function(Part,Mesh)
  1468. for i=0,1,delay do
  1469. wait()
  1470. Part.CFrame=Part.CFrame
  1471. Part.Transparency=i
  1472. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1473. end
  1474. Part.Parent=nil
  1475. end),prt,msh)
  1476. end
  1477.  
  1478. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1479. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1480. prt.Anchored=true
  1481. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1482. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1483. game:GetService("Debris"):AddItem(prt,2)
  1484. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1485. CF=Part.CFrame
  1486. Numbb=0
  1487. randnumb=math.random()/10
  1488. rand1=math.random()/10
  1489. for i=0,1,rand1 do
  1490. wait()
  1491. CF=CF*cf(0,math.random()/2,0)
  1492. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1493. Part.CFrame=CF*euler(Numbb,0,0)
  1494. Part.Transparency=i
  1495. Numbb=Numbb+randnumb
  1496. end
  1497. Part.Parent=nil
  1498. end),prt,CF,Numbb,randnumb)
  1499. end
  1500.  
  1501. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1502. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1503. prt.Anchored=true
  1504. prt.CFrame=cframe
  1505. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1506. game:GetService("Debris"):AddItem(prt,5)
  1507. coroutine.resume(coroutine.create(function(Part,Mesh)
  1508. for i=0,1,delay do
  1509. wait()
  1510. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1511. Part.Transparency=i
  1512. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1513. end
  1514. Part.Parent=nil
  1515. end),prt,msh)
  1516. end
  1517.  
  1518. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1519. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1520. prt.Anchored=true
  1521. prt.CFrame=cframe
  1522. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1523. game:GetService("Debris"):AddItem(prt,2)
  1524. coroutine.resume(coroutine.create(function(Part,Mesh)
  1525. for i=0,1,delay do
  1526. wait()
  1527. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1528. Part.Transparency=i
  1529. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1530. end
  1531. Part.Parent=nil
  1532. end),prt,msh)
  1533. end
  1534.  
  1535. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1536. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1537. prt.Anchored=true
  1538. prt.CFrame=cframe*cf(x,y,z)
  1539. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1540. game:GetService("Debris"):AddItem(prt,5)
  1541. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1542. local num=math.random()
  1543. local num2=math.random(-3,2)+math.random()
  1544. local numm=0
  1545. for i=0,1,delay*2 do
  1546. swait()
  1547. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1548. Part.Transparency=i
  1549. numm=numm+0.01
  1550. end
  1551. Part.Parent=nil
  1552. Mesh.Parent=nil
  1553. end),prt,msh,x,y,z)
  1554. end
  1555.  
  1556. function dmgstart(dmg,what)
  1557. hitcon = what.Touched:connect(function(hit)
  1558. local hum = hit.Parent:FindFirstChild("Humanoid")
  1559. if hum and not hum:IsDescendantOf(Character) then
  1560. hum:TakeDamage(dmg)
  1561. end
  1562. end)
  1563. end
  1564.  
  1565. function dmgstop()
  1566. hitcon:disconnect()
  1567. end
  1568.  
  1569. function Cloak()
  1570. Face.Parent=nil
  1571. cloaked=true
  1572. for _,v in pairs(Torso.Parent:children()) do
  1573. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1574. coroutine.resume(coroutine.create(function()
  1575. for i=0,1,0.2 do
  1576. wait()
  1577. v.Transparency=i
  1578. end
  1579. v.Transparency=1
  1580. end))
  1581. end
  1582. if v.className=="Hat" then
  1583. hatp=v.Handle
  1584. coroutine.resume(coroutine.create(function(derp)
  1585. for i=0,1,0.2 do
  1586. wait()
  1587. derp.Transparency=i
  1588. end
  1589. derp.Transparency=1
  1590. end),hatp)
  1591. end
  1592. end
  1593. for _,v in pairs(m:children()) do
  1594. if v.className=="Part" then
  1595. coroutine.resume(coroutine.create(function()
  1596. for i=0,1,0.2 do
  1597. wait()
  1598. v.Transparency=i
  1599. end
  1600. v.Transparency=1
  1601. end))
  1602. end
  1603. end
  1604. end
  1605.  
  1606. function UnCloak()
  1607. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1608. Face.Parent=Head
  1609. cloaked=false
  1610. for _,v in pairs(Torso.Parent:children()) do
  1611. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1612. coroutine.resume(coroutine.create(function()
  1613. for i=0,1,0.1 do
  1614. wait()
  1615. v.Transparency=v.Transparency-0.1
  1616. end
  1617. v.Transparency=0
  1618. end))
  1619. end
  1620. if v.className=="Hat" then
  1621. hatp=v.Handle
  1622. coroutine.resume(coroutine.create(function(derp)
  1623. for i=0,1,0.1 do
  1624. wait()
  1625. derp.Transparency=derp.Transparency-0.1
  1626. end
  1627. derp.Transparency=0
  1628. end),hatp)
  1629. end
  1630. end
  1631. for _,v in pairs(m:children()) do
  1632. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1633. coroutine.resume(coroutine.create(function()
  1634. for i=0,1,0.1 do
  1635. wait()
  1636. v.Transparency=v.Transparency-0.1
  1637. end
  1638. v.Transparency=0
  1639. end))
  1640. v.Transparency=0
  1641. end
  1642. end
  1643. end
  1644.  
  1645. function MakeMagic(Type,Color,Bullets,Size,Speed,Position,MagCircleScale,Delay,ExplosionScale,ExplosionVol,Explosionpit)
  1646. if Type == "PulsingBullet" then
  1647. for i = 0,1,0.1 do
  1648. swait()
  1649. MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1650. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1651. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.4)
  1652. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(-30)), 0.4)
  1653. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(30)), 0.4)
  1654. end
  1655. local a = Instance.new("Part",Character)
  1656. a.Name = "Direction"
  1657. a.Anchored = true
  1658. a.BrickColor = Color
  1659. a.Material = "Neon"
  1660. a.Transparency = 0.5
  1661. a.CanCollide = false
  1662. local ray = Ray.new(
  1663. sorb.CFrame.p, -- origin
  1664. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1665. )
  1666. local ignore = Character
  1667. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1668. a.BottomSurface = 10
  1669. a.TopSurface = 10
  1670. local distance = (sorb.CFrame.p - position).magnitude
  1671. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1672. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1673. game:GetService("Debris"):AddItem(a, 3)
  1674. local thing = Instance.new("SpecialMesh",a)
  1675. thing.MeshType = "Sphere"
  1676. thing.Scale = vt(0,0,1)
  1677. for i = 0, 9 do
  1678. ray = Ray.new(
  1679. sorb.CFrame.p, -- origin
  1680. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1681. )
  1682. ignore = Character
  1683. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1684. local distance = (sorb.CFrame.p - position).magnitude
  1685. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1686. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1687. thing.Scale = thing.Scale + vt(MagCircleScale,MagCircleScale,0)
  1688. wait()
  1689. end
  1690. if Bullets == 1 then
  1691. local lb = Instance.new("Part")
  1692. CFuncs["Sound"].Create("rbxassetid://260433768", lb, 2.5, 1)
  1693. lb.Parent = char
  1694. lb.BrickColor = Color
  1695. lb.CanCollide = false
  1696. lb.Material = "Neon"
  1697. lb.Shape = "Ball"
  1698. lb.Anchored = true
  1699. lb.Transparency = 0
  1700. lb.Size = vt(1,1,1)
  1701. lb.CFrame = a.CFrame
  1702. local thingery = Instance.new("SpecialMesh",lb)
  1703. thingery.MeshType = "Sphere"
  1704. thingery.Scale = Size
  1705. lb.Anchored = false
  1706. local bv = Instance.new("BodyVelocity")
  1707. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1708. bv.velocity = a.CFrame.lookVector*Speed
  1709. bv.Parent = lb
  1710. wait(0.1)
  1711. local touched = false
  1712. lb.Touched:connect(function(hit)
  1713. if touched == false then
  1714. touched = true
  1715. lb.Transparency = 1
  1716. PulseDam(ExplosionScale,lb,lb.BrickColor)
  1717. lb.Anchored = true
  1718. end
  1719. end)
  1720. game:GetService("Debris"):AddItem(lb, Delay)
  1721. end
  1722. for i = 0, 9 do
  1723. ray = Ray.new(
  1724. sorb.CFrame.p, -- origin
  1725. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1726. )
  1727. ignore = Character
  1728. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1729. local distance = (sorb.CFrame.p - position).magnitude
  1730. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1731. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1732. thing.Scale = thing.Scale - vt(MagCircleScale,MagCircleScale,0)
  1733. wait()
  1734. end
  1735. end
  1736. if Type == "ExplodingBullet" then
  1737. if Bullets == 1 then
  1738. for i = 0,1,0.1 do
  1739. swait()
  1740. MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1741. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1742. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.4)
  1743. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(-30)), 0.4)
  1744. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(30)), 0.4)
  1745. end
  1746. end
  1747. if Bullets > 1 then
  1748. for i = 0,1,0.1 do
  1749. swait()
  1750. MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1751. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  1752. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.4)
  1753. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4)
  1754. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.4)
  1755. end
  1756. end
  1757. local a = Instance.new("Part",Character)
  1758. a.Name = "Direction"
  1759. a.Anchored = true
  1760. a.BrickColor = Color
  1761. a.Material = "Neon"
  1762. a.Transparency = 0.5
  1763. a.CanCollide = false
  1764. local ray = Ray.new(
  1765. sorb.CFrame.p, -- origin
  1766. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1767. )
  1768. local ignore = Character
  1769. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1770. a.BottomSurface = 10
  1771. a.TopSurface = 10
  1772. local distance = (sorb.CFrame.p - position).magnitude
  1773. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1774. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1775. game:GetService("Debris"):AddItem(a, 3)
  1776. local thing = Instance.new("SpecialMesh",a)
  1777. thing.MeshType = "Sphere"
  1778. thing.Scale = vt(0,0,1)
  1779. for i = 0, 9 do
  1780. ray = Ray.new(
  1781. sorb.CFrame.p, -- origin
  1782. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1783. )
  1784. ignore = Character
  1785. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1786. local distance = (sorb.CFrame.p - position).magnitude
  1787. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1788. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1789. thing.Scale = thing.Scale + vt(MagCircleScale,MagCircleScale,0)
  1790. wait()
  1791. end
  1792. if Bullets == 1 then
  1793. local lb = Instance.new("Part")
  1794. CFuncs["Sound"].Create("rbxassetid://260433721", lb, 2.5, 1)
  1795. lb.Parent = char
  1796. lb.BrickColor = Color
  1797. lb.CanCollide = false
  1798. lb.Material = "Neon"
  1799. lb.Shape = "Ball"
  1800. lb.Anchored = true
  1801. lb.Transparency = 0
  1802. lb.Size = vt(1,1,1)
  1803. lb.CFrame = a.CFrame
  1804. local thingery = Instance.new("SpecialMesh",lb)
  1805. thingery.MeshType = "Sphere"
  1806. thingery.Scale = Size
  1807. lb.Anchored = false
  1808. local bv = Instance.new("BodyVelocity")
  1809. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1810. bv.velocity = a.CFrame.lookVector*Speed
  1811. bv.Parent = lb
  1812. wait(0.1)
  1813. local touched = false
  1814. lb.Touched:connect(function(hit)
  1815. if touched == false then
  1816. touched = true
  1817. lb.Transparency = 1
  1818. Explode(ExplosionScale,lb,Explosionpit,ExplosionVol)
  1819. lb.Anchored = true
  1820. end
  1821. end)
  1822. game:GetService("Debris"):AddItem(lb, Delay)
  1823. end
  1824. if Bullets > 1 then
  1825. for i = 0, Bullets do
  1826. ray = Ray.new(
  1827. sorb.CFrame.p, -- origin
  1828. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1829. )
  1830. ignore = Character
  1831. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1832. local distance = (sorb.CFrame.p - position).magnitude
  1833. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1834. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1835. local lb = Instance.new("Part")
  1836. CFuncs["Sound"].Create("rbxassetid://203691467", lb, 1, 5.5)
  1837. lb.Parent = char
  1838. lb.BrickColor = Color
  1839. lb.CanCollide = false
  1840. lb.Material = "Neon"
  1841. lb.Shape = "Ball"
  1842. lb.Anchored = true
  1843. lb.Transparency = 0
  1844. lb.Size = vt(1,1,1)
  1845. lb.CFrame = a.CFrame
  1846. local thingery = Instance.new("SpecialMesh",lb)
  1847. thingery.MeshType = "Sphere"
  1848. thingery.Scale = Size
  1849. lb.Anchored = false
  1850. local bv = Instance.new("BodyVelocity")
  1851. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1852. bv.velocity = a.CFrame.lookVector*Speed
  1853. bv.Parent = lb
  1854. wait(0.035)
  1855. local touched = false
  1856. lb.Touched:connect(function(hit)
  1857. if touched == false then
  1858. touched = true
  1859. lb.Transparency = 1
  1860. ExplodeShort(ExplosionScale,lb,Explosionpit,ExplosionVol)
  1861. lb.Anchored = true
  1862. end
  1863. end)
  1864. game:GetService("Debris"):AddItem(lb, Delay)
  1865. end
  1866. end
  1867. for i = 0, 9 do
  1868. ray = Ray.new(
  1869. sorb.CFrame.p, -- origin
  1870. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1871. )
  1872. ignore = Character
  1873. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1874. local distance = (sorb.CFrame.p - position).magnitude
  1875. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1876. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1877. thing.Scale = thing.Scale - vt(MagCircleScale,MagCircleScale,0)
  1878. wait()
  1879. end
  1880. end
  1881. if Type == "FireUltExplosion" then
  1882. hum.WalkSpeed = 16
  1883. local a = Instance.new("Part",Character)
  1884. a.Name = "Direction"
  1885. a.Anchored = true
  1886. a.BrickColor = Color
  1887. a.Material = "Neon"
  1888. a.Transparency = 0.5
  1889. a.Size = vt(1,1,1)
  1890. a.CanCollide = false
  1891. a.CFrame = root.CFrame + vt(0,5,0)
  1892. game:GetService("Debris"):AddItem(a, Delay)
  1893. local thing = Instance.new("SpecialMesh",a)
  1894. thing.MeshType = "Sphere"
  1895. thing.Scale = vt(0,1,0)
  1896. for i = 0,5,0.1 do
  1897. swait()
  1898. MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1899. MagicBlock(Color,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1900. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1901. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  1902. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.15) * angles(math.rad(150), math.rad(0), math.rad(30)), 0.1)
  1903. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.15) * angles(math.rad(150), math.rad(0), math.rad(-30)), 0.1)
  1904. end
  1905. for i = 0, 9 do
  1906. thing.Scale = thing.Scale + vt(MagCircleScale,0,MagCircleScale)
  1907. wait()
  1908. end
  1909. for i = 0,5,0.1 do
  1910. swait()
  1911. MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1912. MagicBlock(Color,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1913. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1914. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  1915. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(30)), 0.1)
  1916. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(-30)), 0.1)
  1917. end
  1918. for i = 0,1,0.1 do
  1919. swait()
  1920. MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1921. MagicBlock(Color,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1922. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1923. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.4)
  1924. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(-30)), 0.4)
  1925. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.15) * angles(math.rad(80), math.rad(0), math.rad(30)), 0.4)
  1926. end
  1927. hum.WalkSpeed = 16
  1928. attack = false
  1929. for i = 0, 9 do
  1930. thing.Scale = thing.Scale - vt(MagCircleScale,0,MagCircleScale)
  1931. wait()
  1932. end
  1933. ExplodeLong(65,a,0.4,1)
  1934. end
  1935. if Type == "Bullet" then
  1936. for i = 0,1,0.1 do
  1937. swait()
  1938. MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  1939. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  1940. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.4)
  1941. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.4)
  1942. LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.35) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4)
  1943. end
  1944. local a = Instance.new("Part",Character)
  1945. a.Name = "Direction"
  1946. a.Anchored = true
  1947. a.BrickColor = Color
  1948. a.Material = "Neon"
  1949. a.Transparency = 0.5
  1950. a.CanCollide = false
  1951. local ray = Ray.new(
  1952. sorb.CFrame.p, -- origin
  1953. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1954. )
  1955. local ignore = Character
  1956. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1957. a.BottomSurface = 10
  1958. a.TopSurface = 10
  1959. local distance = (sorb.CFrame.p - position).magnitude
  1960. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1961. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  1962. game:GetService("Debris"):AddItem(a, 3)
  1963. local thing = Instance.new("SpecialMesh",a)
  1964. thing.MeshType = "Sphere"
  1965. thing.Scale = vt(0,0,1)
  1966. for i = 0, 9 do
  1967. thing.Scale = thing.Scale + vt(MagCircleScale,MagCircleScale,0)
  1968. wait()
  1969. end
  1970. if Bullets == 1 then
  1971. local lb = Instance.new("Part")
  1972. CFuncs["Sound"].Create("rbxassetid://260433721", lb, 2.5, 1)
  1973. lb.Parent = char
  1974. lb.BrickColor = Color
  1975. lb.CanCollide = false
  1976. lb.Material = "Neon"
  1977. lb.Shape = "Ball"
  1978. lb.Anchored = true
  1979. lb.Transparency = 0.5
  1980. lb.Size = Size
  1981. lb.CFrame = a.CFrame
  1982. local thing = Instance.new("SpecialMesh",lb)
  1983. thing.MeshType = "Sphere"
  1984. lb.Anchored = false
  1985. local bv = Instance.new("BodyVelocity")
  1986. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1987. bv.velocity = a.CFrame.lookVector*Speed
  1988. bv.Parent = lb
  1989. pcall(function()
  1990. local ParticleEmitter12 = Instance.new("ParticleEmitter")
  1991. ParticleEmitter12.Name = "BANNEDTRAIL"
  1992. ParticleEmitter12.Parent = lb
  1993. ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
  1994. ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
  1995. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  1996. ParticleEmitter12.Enabled = true
  1997. ParticleEmitter12.Texture = "rbxassetid://3412753"
  1998. ParticleEmitter12.ZOffset = -3
  1999. ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
  2000. ParticleEmitter12.Rate = 120
  2001. ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
  2002. ParticleEmitter12.VelocitySpread = 360
  2003. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  2004. end)
  2005. lb.Touched:connect(function(hit)
  2006. Damagefunc(hit,9,15,math.random(10,20),"Normal",root,.2,1)
  2007. end)
  2008. game:GetService("Debris"):AddItem(lb, Delay)
  2009. end
  2010. if Bullets > 1 then
  2011. for i = 0, Bullets do
  2012. wait(0.075)
  2013. ray = Ray.new(
  2014. sorb.CFrame.p, -- origin
  2015. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  2016. )
  2017. ignore = Character
  2018. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2019. local distance = (sorb.CFrame.p - position).magnitude
  2020. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2021. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2022. local lb = Instance.new("Part")
  2023. CFuncs["Sound"].Create("rbxassetid://260433721", lb, 2.5, 1)
  2024. lb.Parent = char
  2025. lb.BrickColor = Color
  2026. lb.CanCollide = false
  2027. lb.Material = "Neon"
  2028. lb.Shape = "Ball"
  2029. lb.Anchored = true
  2030. lb.Transparency = 0.5
  2031. lb.Size = Size
  2032. lb.CFrame = a.CFrame
  2033. local thing = Instance.new("SpecialMesh",lb)
  2034. thing.MeshType = "Sphere"
  2035. lb.Anchored = false
  2036. local bv = Instance.new("BodyVelocity")
  2037. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2038. bv.velocity = a.CFrame.lookVector*Speed
  2039. bv.Parent = lb
  2040. pcall(function()
  2041. local ParticleEmitter12 = Instance.new("ParticleEmitter")
  2042. ParticleEmitter12.Name = "BANNEDTRAIL"
  2043. ParticleEmitter12.Parent = lb
  2044. ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
  2045. ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
  2046. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  2047. ParticleEmitter12.Enabled = true
  2048. ParticleEmitter12.Texture = "rbxassetid://3412753"
  2049. ParticleEmitter12.ZOffset = -3
  2050. ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
  2051. ParticleEmitter12.Rate = 120
  2052. ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
  2053. ParticleEmitter12.VelocitySpread = 360
  2054. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  2055. end)
  2056. lb.Touched:connect(function(hit)
  2057. Damagefunc(hit,3,5,math.random(10,20),"Normal",root,.2,1)
  2058. end)
  2059. game:GetService("Debris"):AddItem(lb, Delay)
  2060. end
  2061. end
  2062. for i = 0, 9 do
  2063. thing.Scale = thing.Scale - vt(MagCircleScale,MagCircleScale,0)
  2064. wait()
  2065. end
  2066. end
  2067. if Type == "Beam" then
  2068. for i = 0,1,0.1 do
  2069. swait()
  2070. MagicBlock(Color,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2071. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  2072. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.4)
  2073. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)), 0.4)
  2074. LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.35) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4)
  2075. end
  2076. local a = Instance.new("Part",Character)
  2077. a.Name = "Direction"
  2078. a.Anchored = true
  2079. a.BrickColor = Color
  2080. a.Material = "Neon"
  2081. a.Transparency = 0.5
  2082. a.CanCollide = false
  2083. local ray = Ray.new(
  2084. sorb.CFrame.p, -- origin
  2085. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  2086. )
  2087. local ignore = Character
  2088. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2089. a.BottomSurface = 10
  2090. a.TopSurface = 10
  2091. local distance = (sorb.CFrame.p - position).magnitude
  2092. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2093. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2094. game:GetService("Debris"):AddItem(a, 3)
  2095. local thing = Instance.new("SpecialMesh",a)
  2096. thing.MeshType = "Sphere"
  2097. thing.Scale = vt(0,0,1)
  2098. for i = 0, 9 do
  2099. thing.Scale = thing.Scale + vt(MagCircleScale,MagCircleScale,0)
  2100. wait()
  2101. end
  2102. if Bullets == 1 then
  2103. local a = Instance.new("Part",Character)
  2104. a.Name = "Direction"
  2105. a.Anchored = true
  2106. a.BrickColor = Color
  2107. a.Material = "Neon"
  2108. a.Transparency = 0.5
  2109. a.CanCollide = false
  2110. local ray = Ray.new(
  2111. sorb.CFrame.p, -- origin
  2112. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  2113. )
  2114. local ignore = Character
  2115. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2116. if hit then
  2117. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  2118.  
  2119. if not humanoid then
  2120. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  2121. end
  2122. if humanoid then
  2123. if humanoid.Parent:IsA"Model" then
  2124. Damagefunc(hit,5,10,math.random(10,20),"Normal",RootPart,.2,1)
  2125. end
  2126. end
  2127. end
  2128. a.BottomSurface = 10
  2129. a.TopSurface = 10
  2130. CFuncs["Sound"].Create("rbxassetid://151414336", a, 2.5, 1)
  2131. local distance = (sorb.CFrame.p - position).magnitude
  2132. a.Size = Vector3.new(0.5, 0.5, distance)
  2133. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  2134. game:GetService("Debris"):AddItem(a, 0.1)
  2135. end
  2136. if Bullets > 1 then
  2137. for i = 0, Bullets do
  2138. wait(0.05)
  2139. ray = Ray.new(
  2140. sorb.CFrame.p, -- origin
  2141. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  2142. )
  2143. ignore = Character
  2144. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2145. local distance = (sorb.CFrame.p - position).magnitude
  2146. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2147. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2148. local a = Instance.new("Part",Character)
  2149. a.Name = "Direction"
  2150. a.Anchored = true
  2151. a.BrickColor = Color
  2152. a.Material = "Neon"
  2153. a.Transparency = 0.5
  2154. a.CanCollide = false
  2155. local ray = Ray.new(
  2156. sorb.CFrame.p, -- origin
  2157. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  2158. )
  2159. local ignore = Character
  2160. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2161. if hit then
  2162. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  2163.  
  2164. if not humanoid then
  2165. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  2166. end
  2167. if humanoid then
  2168. if humanoid.Parent:IsA"Model" then
  2169. Damagefunc(hit,5,10,math.random(10,20),"Normal",RootPart,.2,1)
  2170. end
  2171. end
  2172. end
  2173. a.BottomSurface = 10
  2174. a.TopSurface = 10
  2175. CFuncs["Sound"].Create("rbxassetid://151414336", a, 2.5, 1)
  2176. local distance = (sorb.CFrame.p - position).magnitude
  2177. a.Size = Vector3.new(0.5, 0.5, distance)
  2178. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  2179. game:GetService("Debris"):AddItem(a, 0.1)
  2180. end
  2181. end
  2182. for i = 0, 9 do
  2183. thing.Scale = thing.Scale - vt(MagCircleScale,MagCircleScale,0)
  2184. wait()
  2185. end
  2186. end
  2187. hum.WalkSpeed = 16
  2188. end
  2189. function Teleport(col,rad,par)
  2190. attack = true
  2191. for i = 0,1,0.1 do
  2192. swait()
  2193. MagicBlock(col,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2194. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2195. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.4)
  2196. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4)
  2197. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.4)
  2198. end
  2199. local a = Instance.new("Part",Character)
  2200. a.Name = "Direction"
  2201. a.Anchored = true
  2202. a.BrickColor = col
  2203. a.Material = "Neon"
  2204. a.Transparency = 1
  2205. a.CanCollide = false
  2206. local ab = Instance.new("Part",Character)
  2207. ab.Name = "Direction"
  2208. ab.Anchored = true
  2209. ab.BrickColor = col
  2210. ab.Material = "Neon"
  2211. ab.Transparency = 1
  2212. ab.CanCollide = false
  2213. local ray = Ray.new(
  2214. sorb.CFrame.p, -- origin
  2215. (mouse.Hit.p - sorb.CFrame.p).unit * 75 -- direction
  2216. )
  2217. local ignore = Character
  2218. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2219. a.BottomSurface = 10
  2220. a.TopSurface = 10
  2221. CFuncs["Sound"].Create("rbxassetid://201858045", a, 2.5, 1.25)
  2222. local distance = (sorb.CFrame.p - position).magnitude
  2223. a.Size = Vector3.new(0.5, 0.5, distance)
  2224. ab.Size = Vector3.new(1,1,1)
  2225. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  2226. ab.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  2227. local expart = Instance.new("Part",char)
  2228. local expart2 = Instance.new("Part",char)
  2229. local partMesh = Instance.new("SpecialMesh",expart)
  2230. partMesh.MeshType = "Sphere"
  2231. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2232. partMesh2.MeshType = "Sphere"
  2233. partMesh.Scale = vt(rad,rad,rad)
  2234. expart.Size = vt(1,1,1)
  2235. expart.Transparency = 0
  2236. expart.Anchored = true
  2237. expart.Material = "Neon"
  2238. expart.BrickColor = bc("White")
  2239. expart.CFrame = par.CFrame
  2240. partMesh2.Scale = vt(rad,rad,rad)
  2241. expart2.Size = vt(1.15,1.15,1.15)
  2242. expart2.Transparency = 0.5
  2243. expart2.Anchored = true
  2244. expart2.Material = "Neon"
  2245. expart2.BrickColor = col
  2246. expart2.CFrame = par.CFrame
  2247. expart.CanCollide = false
  2248. expart2.CanCollide = false
  2249.  
  2250. local expartb = Instance.new("Part",char)
  2251. local expart2b = Instance.new("Part",char)
  2252. expartb.CanCollide = false
  2253. expart2b.CanCollide = false
  2254. local partMeshb = Instance.new("SpecialMesh",expartb)
  2255. partMeshb.MeshType = "Sphere"
  2256. local partMesh2b = Instance.new("SpecialMesh",expart2b)
  2257. partMesh2b.MeshType = "Sphere"
  2258. partMeshb.Scale = vt(rad,rad,rad)
  2259. expartb.Size = vt(1,1,1)
  2260. expartb.Transparency = 0
  2261. expartb.Anchored = true
  2262. expartb.Material = "Neon"
  2263. expartb.BrickColor = bc("White")
  2264. expartb.CFrame = ab.CFrame
  2265. partMesh2b.Scale = vt(rad,rad,rad)
  2266. expart2b.Size = vt(1.15,1.15,1.15)
  2267. expart2b.Transparency = 0.5
  2268. expart2b.Anchored = true
  2269. expart2b.Material = "Neon"
  2270. expart2b.BrickColor = col
  2271. expart2b.CFrame = ab.CFrame
  2272. local value = 1*rad/10
  2273. for i = 0, 34 do
  2274. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2275. expart.CFrame = expart.CFrame
  2276. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2277. expart2.CFrame = expart.CFrame
  2278. partMeshb.Scale = partMeshb.Scale + vt(value,value,value)
  2279. expartb.CFrame = expartb.CFrame
  2280. partMesh2b.Scale = partMesh2b.Scale + vt(value,value,value)
  2281. expart2b.CFrame = expartb.CFrame
  2282. value = value - 0.035*rad/10
  2283. if value < 0 then
  2284. value = 0
  2285. end
  2286. swait()
  2287. end
  2288. value = 1.5*rad/10
  2289. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127",tors,2.5, 1)
  2290. attack = false
  2291. tors.CFrame = ab.CFrame
  2292. for i = 0, 99 do
  2293. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2294. expart.CFrame = expart.CFrame
  2295. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2296. expart2.CFrame = expart.CFrame
  2297. partMeshb.Scale = partMeshb.Scale + vt(value,value,value)
  2298. expartb.CFrame = expartb.CFrame
  2299. partMesh2b.Scale = partMesh2b.Scale + vt(value,value,value)
  2300. expart2b.CFrame = expartb.CFrame
  2301. value = value - 0.035*rad/10
  2302. if value < 0 then
  2303. value = 0
  2304. expart.Transparency = expart.Transparency + 0.025
  2305. expart2.Transparency = expart2.Transparency + 0.025
  2306. expartb.Transparency = expartb.Transparency + 0.025
  2307. expart2b.Transparency = expart2b.Transparency + 0.025
  2308. end
  2309. swait()
  2310. end
  2311. game:GetService("Debris"):AddItem(a, 4)
  2312. game:GetService("Debris"):AddItem(ab, 4)
  2313. game:GetService("Debris"):AddItem(expart, 1)
  2314. game:GetService("Debris"):AddItem(expart2, 1)
  2315. game:GetService("Debris"):AddItem(expart2b, 1)
  2316. game:GetService("Debris"):AddItem(expartb, 1)
  2317. end
  2318. local amount = 1
  2319. local size = 1
  2320. local speed = 50
  2321. local custocolor = BrickColor.new("Black")
  2322. local groundmove = false
  2323. function Move1()
  2324. attack = true
  2325. hum.WalkSpeed = 0
  2326. for i = 0,3,0.1 do
  2327. swait()
  2328. MagicBlock(custocolor,sorb.CFrame,2,2,2,0.05,0.05,0.05,0.05)
  2329. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(20),math.rad(-20 + 7.5 * math.cos(sine / 32))),.1)
  2330. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.1)
  2331. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  2332. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(50)),.1)
  2333. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(175 + 2.5 * math.cos(sine / 25))),.1)
  2334. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(-80 - 2.5 * math.cos(sine / 25))),.1)
  2335. end
  2336. for i = 0,1,0.1 do
  2337. swait()
  2338. MagicBlock(custocolor,sorb.CFrame,2,2,2,0.05,0.05,0.05,0.05)
  2339. RH.C0=clerp(RH.C0,cf(1,-0.25 - 0.15 * math.cos(sine / 25),-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(20),math.rad(-20 + 7.5 * math.cos(sine / 32))),.5)
  2340. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.5)
  2341. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))*angles(math.rad(50),math.rad(0),math.rad(80)),.5)
  2342. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(-80)),.5)
  2343. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(75 + 2.5 * math.cos(sine / 25))),.5)
  2344. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(-80 - 2.5 * math.cos(sine / 25))),.5)
  2345. end
  2346. MagicBlock(custocolor,sorb.CFrame,2,2,2,5,5,5,0.05)
  2347. MagicBlock(custocolor,sorb.CFrame,2,2,2,10,10,10,0.15)
  2348. groundmove = true
  2349. local sizer = 5
  2350. local dist = 10
  2351. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=838393216",tors,2.5, 1)
  2352. for i = 0, 14 do
  2353. local lb = Instance.new("Part")
  2354. lb.Parent = char
  2355. lb.BrickColor = custocolor
  2356. lb.CanCollide = false
  2357. lb.Material = "Sand"
  2358. lb.Shape = "Block"
  2359. lb.Anchored = true
  2360. lb.Transparency = 0
  2361. lb.Size = vt(math.random(3,5),math.random(3,5),math.random(3,5))
  2362. lb.Velocity = Vector3.new(math.random(-35,35),100,math.random(-35,35))
  2363. lb.CFrame = sorb.CFrame
  2364. lb.CFrame = lb.CFrame*CFrame.new(math.random(-3,3),0,math.random(-3,3))
  2365. lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
  2366. lb.Anchored = false
  2367. game:GetService("Debris"):AddItem(lb, 3)
  2368. end
  2369. for i = 0, 14 do
  2370. local lb = Instance.new("Part")
  2371. lb.Parent = char
  2372. lb.BrickColor = custocolor
  2373. lb.Material = "Sand"
  2374. lb.Shape = "Block"
  2375. lb.Anchored = true
  2376. lb.Transparency = 0
  2377. lb.Size = vt(math.random(2,3),math.random(2,3),math.random(2,3))
  2378. lb.CFrame = sorb.CFrame
  2379. game:GetService("Debris"):AddItem(lb, 3)
  2380. lb.CFrame = lb.CFrame*CFrame.new(math.random(-2,2),math.random(-1,1),math.random(-2,2))
  2381. lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
  2382. end
  2383. for i = 0, 24 do
  2384. sizer = sizer + 1
  2385. dist = dist + 5
  2386. local lb = Instance.new("Part")
  2387. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=822969951",lb,1, 0.85)
  2388. lb.Parent = char
  2389. lb.BrickColor = custocolor
  2390. lb.CanCollide = false
  2391. lb.Material = "Sand"
  2392. lb.Shape = "Block"
  2393. lb.Anchored = true
  2394. lb.Transparency = 0
  2395. lb.Size = vt(sizer,sizer,sizer)
  2396. lb.CFrame = root.CFrame + root.CFrame.lookVector*dist
  2397. lb.CFrame = lb.CFrame*CFrame.new(0,-5,0)
  2398. lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
  2399. lb.Anchored = false
  2400. game:GetService("Debris"):AddItem(lb, 3)
  2401. pcall(function()
  2402. local ParticleEmitter12 = Instance.new("ParticleEmitter")
  2403. ParticleEmitter12.Name = "BANNEDTRAIL"
  2404. ParticleEmitter12.Parent = lb
  2405. ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
  2406. ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
  2407. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  2408. ParticleEmitter12.Enabled = true
  2409. ParticleEmitter12.Texture = "rbxassetid://3412753"
  2410. ParticleEmitter12.ZOffset = -3
  2411. ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
  2412. ParticleEmitter12.Rate = 120
  2413. ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
  2414. ParticleEmitter12.VelocitySpread = 360
  2415. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  2416. end)
  2417. lb.Touched:connect(function(hit)
  2418. Damagefunc(hit,9,13,1,"Normal",root,.2,1)
  2419. end)
  2420. local bv = Instance.new("BodyVelocity")
  2421. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2422. bv.velocity = Vector3.new(math.random(-15,15),50,math.random(-15,15))
  2423. bv.Parent = lb
  2424. MagicBlock(custocolor,lb.CFrame,sizer,sizer,sizer,1.5*sizer/10,1.5*sizer/10,1.5*sizer/10,0.05)
  2425. wait(0.05)
  2426. bv:Destroy()
  2427. end
  2428. groundmove = false
  2429. attack = false
  2430. hum.WalkSpeed = 16
  2431. end
  2432. function Move2()
  2433. attack = true
  2434. for i = 0,3,0.1 do
  2435. swait()
  2436. MagicBlock(custocolor,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2437. MagicBlock(custocolor,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  2438. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2439. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
  2440. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(175),math.rad(0),math.rad(20)),.1)
  2441. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(175),math.rad(0),math.rad(-20)),.1)
  2442. end
  2443. local lb = Instance.new("Part")
  2444. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=834070187",lb,3, 1)
  2445. lb.Parent = char
  2446. lb.BrickColor = custocolor
  2447. lb.CanCollide = false
  2448. lb.Material = "Sand"
  2449. lb.Shape = "Block"
  2450. lb.Anchored = true
  2451. lb.Transparency = 0
  2452. lb.Size = vt(1,1,1)
  2453. local bm = Instance.new("BlockMesh",lb)
  2454. bm.Scale = vt(5,5,5)
  2455. lb.CFrame = root.CFrame*CFrame.new(0,5,0)
  2456. lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
  2457. lb.Anchored = false
  2458. MagicBlock(custocolor,lb.CFrame,0.5,0.5,0.5,1,1,1,0.05)
  2459. MagicBlock(custocolor,lb.CFrame,0.5,0.5,0.5,2,2,2,0.05)
  2460. game:GetService("Debris"):AddItem(lb, 10)
  2461. local a = Instance.new("Part",Character)
  2462. a.Name = "Direction"
  2463. a.Anchored = true
  2464. a.BrickColor = custocolor
  2465. a.Material = "Neon"
  2466. a.Transparency = 1
  2467. a.CanCollide = false
  2468. local ray = Ray.new(
  2469. lb.CFrame.p, -- origin
  2470. (mouse.Hit.p - lb.CFrame.p).unit * 500 -- direction
  2471. )
  2472. local ignore = Character
  2473. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2474. a.BottomSurface = 10
  2475. a.TopSurface = 10
  2476. local distance = (lb.CFrame.p - position).magnitude
  2477. a.Size = Vector3.new(0.5, 0.5, distance)
  2478. a.CFrame = CFrame.new(lb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  2479. local touched = false
  2480. local bv = Instance.new("BodyVelocity")
  2481. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2482. bv.velocity = a.CFrame.lookVector*150
  2483. bv.Parent = lb
  2484. wait(0.05)
  2485. a:Destroy()
  2486. lb.Touched:connect(function(hit)
  2487. if touched == false then
  2488. touched = true
  2489. lb.Anchored = true
  2490. lb.Transparency = 1
  2491. MagicBlock(custocolor,lb.CFrame,0.5,0.5,0.5,2,2,2,0.075)
  2492. MagicBlock(custocolor,lb.CFrame,0.5,0.5,0.5,2,2,2,0.075)
  2493. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=822969951",lb,2.5, 1)
  2494. for i = 0, 14 do
  2495. local lbs = Instance.new("Part")
  2496. lbs.Parent = char
  2497. lbs.BrickColor = custocolor
  2498. lbs.Material = "Sand"
  2499. lbs.Shape = "Block"
  2500. lbs.Anchored = true
  2501. lbs.Transparency = 0
  2502. lbs.Size = vt(math.random(2,3),math.random(2,3),math.random(2,3))
  2503. lbs.CFrame = lb.CFrame
  2504. game:GetService("Debris"):AddItem(lbs, 3)
  2505. lbs.CFrame = lbs.CFrame*CFrame.new(math.random(-2,2),math.random(-1,1),math.random(-2,2))
  2506. lbs.CFrame = lbs.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
  2507. end
  2508. for i = 0, 14 do
  2509. local lbs = Instance.new("Part")
  2510. lbs.Parent = char
  2511. lbs.BrickColor = custocolor
  2512. lbs.CanCollide = false
  2513. lbs.Material = "Sand"
  2514. lbs.Shape = "Block"
  2515. lbs.Anchored = true
  2516. lbs.Transparency = 0
  2517. lbs.Size = vt(math.random(2,3),math.random(2,3),math.random(2,3))
  2518. lbs.Velocity = Vector3.new(math.random(-45,45),50,math.random(-45,45))
  2519. lbs.CFrame = lb.CFrame
  2520. lbs.CFrame = lbs.CFrame*CFrame.new(math.random(-3,3),0,math.random(-3,3))
  2521. lbs.CFrame = lbs.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
  2522. lbs.Anchored = false
  2523. pcall(function()
  2524. local ParticleEmitter12 = Instance.new("ParticleEmitter")
  2525. ParticleEmitter12.Name = "BANNEDTRAIL"
  2526. ParticleEmitter12.Parent = lbs
  2527. ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
  2528. ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
  2529. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  2530. ParticleEmitter12.Enabled = true
  2531. ParticleEmitter12.Texture = "rbxassetid://3412753"
  2532. ParticleEmitter12.ZOffset = -3
  2533. ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
  2534. ParticleEmitter12.Rate = 120
  2535. ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
  2536. ParticleEmitter12.VelocitySpread = 360
  2537. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  2538. end)
  2539. lbs.Touched:connect(function(hit)
  2540. Damagefunc(hit,5,7,1,"Normal",root,.2,1)
  2541. end)
  2542. game:GetService("Debris"):AddItem(lb, 3)
  2543. end
  2544. end
  2545. end)
  2546. attack = false
  2547. end
  2548.  
  2549. function Move3()
  2550. attack = true
  2551. hum.WalkSpeed = 0
  2552. for i = 0,3,0.1 do
  2553. swait()
  2554. MagicBlock(custocolor,sorb.CFrame,2,2,2,0.05,0.05,0.05,0.05)
  2555. MagicBlock(custocolor,sorb2.CFrame,2,2,2,0.05,0.05,0.05,0.05)
  2556. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(-30 + 7.5 * math.cos(sine / 32))),.1)
  2557. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(30 + 7.5 * math.cos(sine / 32))),.1)
  2558. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  2559. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
  2560. RW.C0=clerp(RW.C0,cf(1.15,0.5,0)*angles(math.rad(190),math.rad(0),math.rad(-20)),.1)
  2561. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(190),math.rad(0),math.rad(20)),.1)
  2562. end
  2563. for i = 0,1,0.1 do
  2564. swait()
  2565. MagicBlock(custocolor,sorb.CFrame,2,2,2,0.05,0.05,0.05,0.05)
  2566. MagicBlock(custocolor,sorb2.CFrame,2,2,2,0.05,0.05,0.05,0.05)
  2567. RH.C0=clerp(RH.C0,cf(1,-0.25 - 0.15 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(-30 + 7.5 * math.cos(sine / 32))),.5)
  2568. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(30 + 7.5 * math.cos(sine / 32))),.5)
  2569. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5 + 0.15 * math.cos(sine / 25))*angles(math.rad(50),math.rad(0),math.rad(0)),.5)
  2570. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(50 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.5)
  2571. RW.C0=clerp(RW.C0,cf(1.15,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(-20)),.5)
  2572. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  2573. end
  2574. MagicBlock(custocolor,sorb.CFrame,2,2,2,5,5,5,0.05)
  2575. MagicBlock(custocolor,sorb.CFrame,2,2,2,10,10,10,0.15)
  2576. groundmove = true
  2577. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=838393216",tors,4.5, 0.95)
  2578. for i = 0, 14 do
  2579. local lb = Instance.new("Part")
  2580. lb.Parent = char
  2581. lb.BrickColor = custocolor
  2582. lb.CanCollide = false
  2583. lb.Material = "Sand"
  2584. lb.Shape = "Block"
  2585. lb.Anchored = true
  2586. lb.Transparency = 0
  2587. lb.Size = vt(math.random(6,9),math.random(6,9),math.random(6,9))
  2588. lb.Velocity = Vector3.new(math.random(-45,45),100,math.random(-45,45))
  2589. lb.CFrame = sorb.CFrame
  2590. lb.CFrame = lb.CFrame*CFrame.new(math.random(-3,3),0,math.random(-3,3))
  2591. lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
  2592. lb.Anchored = false
  2593. pcall(function()
  2594. local ParticleEmitter12 = Instance.new("ParticleEmitter")
  2595. ParticleEmitter12.Name = "BANNEDTRAIL"
  2596. ParticleEmitter12.Parent = lb
  2597. ParticleEmitter12.Transparency = NumberSequence.new(0,0,1)
  2598. ParticleEmitter12.Size = NumberSequence.new(1.2999999523163,1.2999999523163)
  2599. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  2600. ParticleEmitter12.Enabled = true
  2601. ParticleEmitter12.Texture = "rbxassetid://3412753"
  2602. ParticleEmitter12.ZOffset = -3
  2603. ParticleEmitter12.Lifetime = NumberRange.new(1, 1)
  2604. ParticleEmitter12.Rate = 120
  2605. ParticleEmitter12.RotSpeed = NumberRange.new(-100, 100)
  2606. ParticleEmitter12.VelocitySpread = 360
  2607. ParticleEmitter12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  2608. end)
  2609. lb.Touched:connect(function(hit)
  2610. Damagefunc(hit,9,12,1,"Normal",root,.2,1)
  2611. end)
  2612. game:GetService("Debris"):AddItem(lb, 8)
  2613. end
  2614. for i = 0, 24 do
  2615. local lb = Instance.new("Part")
  2616. lb.Parent = char
  2617. lb.BrickColor = custocolor
  2618. lb.Material = "Sand"
  2619. lb.Shape = "Block"
  2620. lb.Anchored = true
  2621. lb.Transparency = 0
  2622. lb.Size = vt(math.random(10,15),math.random(10,15),math.random(10,15))
  2623. lb.CFrame = root.CFrame*CFrame.new(0,-5,0)
  2624. game:GetService("Debris"):AddItem(lb, 8)
  2625. lb.CFrame = lb.CFrame*CFrame.new(math.random(-30,30),math.random(-1,1),math.random(-30,30))
  2626. lb.CFrame = lb.CFrame*CFrame.Angles(math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)),math.random(math.rad(-360),math.rad(360)))
  2627. end
  2628. groundmove = false
  2629. attack = false
  2630. hum.WalkSpeed = 16
  2631. end
  2632.  
  2633. local coold = false
  2634.  
  2635. for i,v in pairs(Character:children()) do
  2636. if v:IsA'Accessory' or v:IsA'ShirtGraphic' or v:IsA'Clothing' then
  2637. v:Destroy()
  2638. end
  2639. end
  2640. eye2 = Instance.new("Part", Character)
  2641. eye2.Anchored = false
  2642. eye2.Parent = hed
  2643. eye2.TopSurface = 0
  2644. eye2.BrickColor = BrickColor.new("Royal purple")
  2645. eye2.Material = "Neon"
  2646. eye2.BottomSurface = 0
  2647. eye2m = Instance.new("SpecialMesh", eye2)
  2648. eye2m.MeshId = "rbxassetid://31309506"
  2649. eye2m.TextureId = "rbxassetid://31309468"
  2650. eye2m.Scale = Vector3.new(1.03, 1.05, 1.03)
  2651. ogsize = eye2m.Scale
  2652. weld = Instance.new("Weld", Head)
  2653. weld.Part0 = eye2
  2654. weld.Part1 = hed
  2655. weld.Name = "eye2Weld"
  2656. weld.C1 = CFrame.new(0,.45,0.05)
  2657. local shir = Instance.new("Shirt",Character)
  2658. local pan = Instance.new("Pants",Character)
  2659. shir.ShirtTemplate = "http://www.roblox.com/asset/?id=83326831"
  2660. pan.PantsTemplate = "http://www.roblox.com/asset/?id=10045638"
  2661. local BC = Character["Body Colors"]
  2662. BC.HeadColor = BrickColor.new("Bright yellow")
  2663. BC.LeftArmColor = BrickColor.new("Bright yellow")
  2664. BC.LeftLegColor = BrickColor.new("Bright yellow")
  2665. BC.RightArmColor = BrickColor.new("Bright yellow")
  2666. BC.RightLegColor = BrickColor.new("Bright yellow")
  2667. BC.TorsoColor = BrickColor.new("Bright yellow")
  2668. hed.face.Texture = "rbxassetid://42070872"
  2669.  
  2670. mouse.KeyDown:connect(function(k)
  2671. if k == "z" and attack == false then
  2672. Move2()
  2673. end
  2674. if k == "x" and attack == false then
  2675. Move1()
  2676. end
  2677. if k == "c" and attack == false then
  2678. Move3()
  2679. end
  2680. end)
  2681.  
  2682. Humanoid.Animator.Parent = nil
  2683. idleanim=.4
  2684. while true do
  2685. swait()
  2686. sine = sine + change
  2687. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2688. local velderp=RootPart.Velocity.y
  2689. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2690. if equipped==true or equipped==false then
  2691. if attack==false then
  2692. idle=idle+1
  2693. else
  2694. idle=0
  2695. end
  2696. if idle>=500 then
  2697. if attack==false then
  2698. --Sheath()
  2699. end
  2700. end
  2701. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2702. Anim="Jump"
  2703. if attack==false then
  2704. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2705. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2706. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2707. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  2708. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2709. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  2710. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2711. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2712. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2713. end
  2714. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2715. Anim="Fall"
  2716. if attack==false then
  2717. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  2718. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2719. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2720. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  2721. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2722. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  2723. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2724. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2725. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2726. end
  2727. elseif torvel<1 and hitfloor~=nil then
  2728. Anim="Idle"
  2729. if groundmove == false then
  2730. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  2731. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  2732. end
  2733. if attack==false then
  2734. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2735. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  2736. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(5 + 2.5 * math.cos(sine / 25))),.3)
  2737. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.3)
  2738. end
  2739. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2740. Anim="Walk"
  2741. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  2742. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  2743. if attack==false then
  2744. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  2745. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2746. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3)
  2747. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3)
  2748. end
  2749. elseif torvel>=22 and hitfloor~=nil then
  2750. Anim="Run"
  2751. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2752. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2753. if attack==false then
  2754. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  2755. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2756. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  2757. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  2758. end
  2759. end
  2760. end
  2761. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement