Advertisement
Xector666X

Untitled

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