Advertisement
Oscar55555

Untitled

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