Advertisement
StarzoZero

Roblox Frisk Script (EDIT)

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