Advertisement
ghostteen14

Untitled

Jun 8th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.68 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]-- (Edit by kiukiubol & lilh3)
  153. wait(1 / 60)
  154. p = game.Players.LocalPlayer
  155. char = p.Character
  156. torso = char.Torso
  157. neck = char.Torso.Neck
  158. hum = char.Humanoid
  159. hum.MaxHealth = 75000
  160. wait()
  161. hum.Health =hum.MaxHealth
  162. char.Head.face.Texture = "rbxassetid://405587215"
  163.  
  164. function startup()
  165. coroutine.resume(coroutine.create(function()
  166. local m = Instance.new("Model", char)
  167. m.Name = "* C"
  168. local chat = Instance.new("Part", m)
  169. chat.TopSurface = "Smooth"
  170. chat.BottomSurface = "Smooth"
  171. chat.Name = "Head"
  172. chat.FormFactor = "Custom"
  173. chat.Size = Vector3.new(0.05, 0.05, 0.1)
  174. chat.Transparency = 0.9
  175. chat.CanCollide = false
  176. local Weld7 = Instance.new("Weld", char)
  177. Weld7.Part0 = char.Head
  178. Weld7.Part1 = chat
  179. Weld7.C1 = CFrame.new(0, -2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  180. local cy7 = Instance.new("BlockMesh", chat)
  181. local h = Instance.new("Humanoid", m)
  182. h.MaxHealth = 0
  183. m.Name = "Star Platinum"
  184. end))
  185. end
  186.  
  187. z = Instance.new("Sound", torso)
  188. z.SoundId = "rbxassetid://264396581" -- Put Music ID Here.
  189. z.Looped = true
  190. z.Volume = 1
  191. wait(.1)
  192. z:Play()
  193.  
  194. char["Body Colors"].HeadColor = BrickColor.new("Pastel Blue")
  195. char["Body Colors"].TorsoColor = BrickColor.new("Pastel Blue")
  196. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel Blue")
  197. char["Body Colors"].RightArmColor = BrickColor.new("Pastel Blue")
  198. char["Body Colors"].LeftLegColor = BrickColor.new("Pastel Blue")
  199. char["Body Colors"].RightLegColor = BrickColor.new("Pastel Blue")
  200.  
  201. shirt = Instance.new("Shirt", char)
  202. shirt.Name = "Shirt"
  203. pants = Instance.new("Pants", char)
  204. pants.Name = "Pants"
  205. char.Shirt.ShirtTemplate = "rbxassetid://496506720"
  206. char.Pants.PantsTemplate = "rbxassetid://496512137"
  207.  
  208. Hat = Instance.new("Model")
  209. Hat.Parent = char
  210. Hat.Name = "Hat"
  211. rh = Instance.new("Part")
  212. rh.Parent = Hat
  213. rh.BrickColor = BrickColor.new("Really black")
  214. rh.Locked = true
  215. rh.CanCollide = false
  216. mesh = Instance.new("SpecialMesh")
  217. rh.formFactor = "Symmetric"
  218. mesh.MeshType = "FileMesh"
  219. mesh.MeshId = "rbxassetid://439736904"
  220. mesh.Parent = rh
  221. local weld = Instance.new("Weld")
  222. weld.Parent = rh
  223. weld.Part0 = rh
  224. weld.Part1 =char.Head
  225. weld.C0 = CFrame.new(0, -0.5, 0.5)*CFrame.Angles(0, 3, 0)
  226. mesh.Scale = Vector3.new(0.002,0.002, 0.002)
  227.  
  228. Effects = { }
  229. local Player = game.Players.localPlayer
  230. local Character = Player.Character
  231. local Humanoid = Character.Humanoid
  232. Humanoid.WalkSpeed = 20
  233. local Mouse = Player:GetMouse()
  234. local LeftArm = Character["Left Arm"]
  235. local RightArm = Character["Right Arm"]
  236. local LeftLeg = Character["Left Leg"]
  237. local RightLeg = Character["Right Leg"]
  238. local Head = Character.Head
  239. local Torso = Character.Torso
  240. local Camera = game.Workspace.CurrentCamera
  241. local RootPart = Character.HumanoidRootPart
  242. local RootJoint = RootPart.RootJoint
  243. local attack = false
  244. local Anim = 'Idle'
  245. local attacktype = 1
  246. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  247. local velocity = RootPart.Velocity.y
  248. local sine = 0
  249. local change = 1
  250. local Create = LoadLibrary("RbxUtility").Create
  251. local TimeStop = false
  252.  
  253. local m = Create("Model"){
  254. Parent = Character,
  255. Name = "WeaponModel",
  256. }
  257.  
  258. Humanoid.Animator.Parent = nil
  259. Character.Animate.Parent = nil
  260.  
  261. local newMotor = function(part0, part1, c0, c1)
  262. local w = Create('Motor'){
  263. Parent = part0,
  264. Part0 = part0,
  265. Part1 = part1,
  266. C0 = c0,
  267. C1 = c1,
  268. }
  269. return w
  270. end
  271.  
  272. function clerp(a, b, t)
  273. return a:lerp(b, t)
  274. end
  275.  
  276. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  277. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  278.  
  279. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  280. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  281. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  282. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  283. RootJoint.C1 = CFrame.new(0, 0, 0)
  284. RootJoint.C0 = CFrame.new(0, 0, 0)
  285. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  286. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  287.  
  288. local rarmc1 = RW.C1
  289. local larmc1 = LW.C1
  290. local rlegc1 = RH.C1
  291. local llegc1 = LH.C1
  292.  
  293. local resetc1 = false
  294.  
  295. function PlayAnimationFromTable(table, speed, bool)
  296. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  297. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  298. RW.C0 = clerp(RW.C0, table[3], speed)
  299. LW.C0 = clerp(LW.C0, table[4], speed)
  300. RH.C0 = clerp(RH.C0, table[5], speed)
  301. LH.C0 = clerp(LH.C0, table[6], speed)
  302. if bool == true then
  303. if resetc1 == false then
  304. resetc1 = true
  305. RootJoint.C1 = RootJoint.C1
  306. Torso.Neck.C1 = Torso.Neck.C1
  307. RW.C1 = rarmc1
  308. LW.C1 = larmc1
  309. RH.C1 = rlegc1
  310. LH.C1 = llegc1
  311. end
  312. end
  313. end
  314.  
  315. ArtificialHB = Create("BindableEvent", script){
  316. Parent = script,
  317. Name = "Heartbeat",
  318. }
  319.  
  320. script:WaitForChild("Heartbeat")
  321.  
  322. frame = 1 / 35
  323. tf = 0
  324. allowframeloss = false
  325. tossremainder = false
  326. lastframe = tick()
  327. script.Heartbeat:Fire()
  328.  
  329. game:GetService("RunService").Heartbeat:connect(function(s, p)
  330. tf = tf + s
  331. if tf >= frame then
  332. if allowframeloss then
  333. script.Heartbeat:Fire()
  334. lastframe = tick()
  335. else
  336. for i = 1, math.floor(tf / frame) do
  337. script.Heartbeat:Fire()
  338. end
  339. lastframe = tick()
  340. end
  341. if tossremainder then
  342. tf = 0
  343. else
  344. tf = tf - frame * math.floor(tf / frame)
  345. end
  346. end
  347. end)
  348.  
  349. function swait(num)
  350. if num == 0 or num == nil then
  351. ArtificialHB.Event:wait()
  352. else
  353. for i = 0, num do
  354. ArtificialHB.Event:wait()
  355. end
  356. end
  357. end
  358.  
  359. function RemoveOutlines(part)
  360. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  361. end
  362.  
  363. CFuncs = {
  364. Part = {
  365. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  366. local Part = Create("Part"){
  367. Parent = Parent,
  368. Reflectance = Reflectance,
  369. Transparency = Transparency,
  370. CanCollide = false,
  371. Locked = true,
  372. BrickColor = BrickColor.new(tostring(BColor)),
  373. Name = Name,
  374. Size = Size,
  375. Material = Material,
  376. }
  377. RemoveOutlines(Part)
  378. return Part
  379. end;
  380. };
  381.  
  382. Mesh = {
  383. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  384. local Msh = Create(Mesh){
  385. Parent = Part,
  386. Offset = OffSet,
  387. Scale = Scale,
  388. }
  389. if Mesh == "SpecialMesh" then
  390. Msh.MeshType = MeshType
  391. Msh.MeshId = MeshId
  392. end
  393. return Msh
  394. end;
  395. };
  396.  
  397. Weld = {
  398. Create = function(Parent, Part0, Part1, C0, C1)
  399. local Weld = Create("Weld"){
  400. Parent = Parent,
  401. Part0 = Part0,
  402. Part1 = Part1,
  403. C0 = C0,
  404. C1 = C1,
  405. }
  406. return Weld
  407. end;
  408. };
  409.  
  410. Sound = {
  411. Create = function(id, par, vol, pit)
  412. local Sound = Create("Sound"){
  413. Volume = vol,
  414. Pitch = pit or 1,
  415. SoundId = "rbxassetid://" .. id,
  416. Parent = par or workspace,
  417. }
  418. Sound:play()
  419. return Sound
  420. end;
  421. };
  422.  
  423. Decal = {
  424. Create = function(Color, Texture, Transparency, Name, Parent)
  425. local Decal = Create("Decal"){
  426. Color3 = Color,
  427. Texture = "rbxassetid://" .. Texture,
  428. Transparency = Transparency,
  429. Name = Name,
  430. Parent = Parent,
  431. }
  432. return Decal
  433. end;
  434. };
  435.  
  436. BillboardGui = {
  437. Create = function(Parent, Image, Position, Size)
  438. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  439. BillPar.CFrame = CFrame.new(Position)
  440. local Bill = Create("BillboardGui"){
  441. Parent = BillPar,
  442. Adornee = BillPar,
  443. Size = UDim2.new(1, 0, 1, 0),
  444. SizeOffset = Vector2.new(Size, Size),
  445. }
  446. local d = Create("ImageLabel", Bill){
  447. Parent = Bill,
  448. BackgroundTransparency = 1,
  449. Size = UDim2.new(1, 0, 1, 0),
  450. Image = "rbxassetid://" .. Image,
  451. }
  452. return BillPar
  453. end
  454. };
  455.  
  456. ParticleEmitter = {
  457. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  458. local Particle = Create("ParticleEmitter"){
  459. Parent = Parent,
  460. Color = ColorSequence.new(Color1, Color2),
  461. LightEmission = LightEmission,
  462. Size = Size,
  463. Texture = Texture,
  464. Transparency = Transparency,
  465. ZOffset = ZOffset,
  466. Acceleration = Accel,
  467. Drag = Drag,
  468. LockedToPart = LockedToPart,
  469. VelocityInheritance = VelocityInheritance,
  470. EmissionDirection = EmissionDirection,
  471. Enabled = Enabled,
  472. Lifetime = LifeTime,
  473. Rate = Rate,
  474. Rotation = Rotation,
  475. RotSpeed = RotSpeed,
  476. Speed = Speed,
  477. VelocitySpread = VelocitySpread,
  478. }
  479. return Particle
  480. end;
  481. };
  482.  
  483. CreateTemplate = {
  484.  
  485. };
  486. }
  487.  
  488. function rayCast(Position, Direction, Range, Ignore)
  489. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  490. end
  491.  
  492. function FindNearestTorso(Position, Distance, SinglePlayer)
  493. if SinglePlayer then
  494. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  495. end
  496. local List = {}
  497. for i, v in pairs(workspace:GetChildren()) do
  498. if v:IsA("Model") then
  499. if v:findFirstChild("Torso") then
  500. if v ~= Character then
  501. if (v.Torso.Position - Position).magnitude <= Distance then
  502. table.insert(List, v)
  503. end
  504. end
  505. end
  506. end
  507. end
  508. return List
  509. end
  510.  
  511. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  512. if hit.Parent == nil then
  513. return
  514. end
  515. local h = hit.Parent:FindFirstChild("Humanoid")
  516. for _, v in pairs(hit.Parent:children()) do
  517. if v:IsA("Humanoid") then
  518. h = v
  519. end
  520. end
  521. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  522. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  523. if hit.Parent.DebounceHit.Value == true then
  524. return
  525. end
  526. end
  527. local c = Create("ObjectValue"){
  528. Name = "creator",
  529. Value = game:service("Players").LocalPlayer,
  530. Parent = h,
  531. }
  532. game:GetService("Debris"):AddItem(c, .5)
  533. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  534. local Damage = math.random(minim, maxim)
  535. local blocked = false
  536. local block = hit.Parent:findFirstChild("Block")
  537. if block ~= nil then
  538. if block.className == "IntValue" then
  539. if block.Value > 0 then
  540. blocked = true
  541. block.Value = block.Value - 1
  542. print(block.Value)
  543. end
  544. end
  545. end
  546. if TimeStop == false then
  547. h.Health = h.Health - Damage
  548. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Deep blue").Color)
  549. elseif TimeStop == true then
  550. repeat wait() until TimeStop == false
  551. h.Health = h.Health - (Damage / 2)
  552. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Deep blue").Color)
  553. end
  554. if Type == "Knockdown" then
  555. local hum = hit.Parent.Humanoid
  556. hum.PlatformStand = true
  557. coroutine.resume(coroutine.create(function(HHumanoid)
  558. swait(1)
  559. HHumanoid.PlatformStand = false
  560. end), hum)
  561. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  562. local bodvol = Create("BodyVelocity"){
  563. velocity = angle * knockback,
  564. P = 5000,
  565. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  566. Parent = hit,
  567. }
  568. local rl = Create("BodyAngularVelocity"){
  569. P = 3000,
  570. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  571. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  572. Parent = hit,
  573. }
  574. game:GetService("Debris"):AddItem(bodvol, .5)
  575. game:GetService("Debris"):AddItem(rl, .5)
  576. elseif Type == "Normal" then
  577. local vp = Create("BodyVelocity"){
  578. P = 500,
  579. maxForce = Vector3.new(math.huge, 0, math.huge),
  580. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  581. }
  582. if knockback > 0 then
  583. vp.Parent = hit.Parent.Torso
  584. end
  585. game:GetService("Debris"):AddItem(vp, .5)
  586. elseif Type == "Up" then
  587. local bodyVelocity = Create("BodyVelocity"){
  588. velocity = Vector3.new(0, 20, 0),
  589. P = 5000,
  590. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  591. Parent = hit,
  592. }
  593. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  594. elseif Type == "DarkUp" then
  595. coroutine.resume(coroutine.create(function()
  596. for i = 0, 1, 0.1 do
  597. swait()
  598. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  599. end
  600. end))
  601. local bodyVelocity = Create("BodyVelocity"){
  602. velocity = Vector3.new(0, 20, 0),
  603. P = 5000,
  604. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  605. Parent = hit,
  606. }
  607. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  608. elseif Type == "Snare" then
  609. local bp = Create("BodyPosition"){
  610. P = 2000,
  611. D = 100,
  612. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  613. position = hit.Parent.Torso.Position,
  614. Parent = hit.Parent.Torso,
  615. }
  616. game:GetService("Debris"):AddItem(bp, 1)
  617. elseif Type == "Freeze" then
  618. local BodPos = Create("BodyPosition"){
  619. P = 50000,
  620. D = 1000,
  621. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  622. position = hit.Parent.Torso.Position,
  623. Parent = hit.Parent.Torso,
  624. }
  625. local BodGy = Create("BodyGyro") {
  626. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  627. P = 20e+003,
  628. Parent = hit.Parent.Torso,
  629. cframe = hit.Parent.Torso.CFrame,
  630. }
  631. hit.Parent.Torso.Anchored = true
  632. coroutine.resume(coroutine.create(function(Part)
  633. swait(1.5)
  634. Part.Anchored = false
  635. end), hit.Parent.Torso)
  636. game:GetService("Debris"):AddItem(BodPos, 3)
  637. game:GetService("Debris"):AddItem(BodGy, 3)
  638. end
  639. local debounce = Create("BoolValue"){
  640. Name = "DebounceHit",
  641. Parent = hit.Parent,
  642. Value = true,
  643. }
  644. game:GetService("Debris"):AddItem(debounce, Delay)
  645. c = Create("ObjectValue"){
  646. Name = "creator",
  647. Value = Player,
  648. Parent = h,
  649. }
  650. game:GetService("Debris"):AddItem(c, .5)
  651. end
  652. end
  653.  
  654. function ShowDamage(Pos, Text, Time, Color)
  655. local Rate = (1 / 30)
  656. local Pos = (Pos or Vector3.new(0, 0, 0))
  657. local Text = (Text or "")
  658. local Time = (Time or 2)
  659. local Color = (Color or Color3.new(1, 0, 1))
  660. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  661. EffectPart.Anchored = true
  662. local BillboardGui = Create("BillboardGui"){
  663. Size = UDim2.new(3, 0, 3, 0),
  664. Adornee = EffectPart,
  665. Parent = EffectPart,
  666. }
  667. local TextLabel = Create("TextLabel"){
  668. BackgroundTransparency = 1,
  669. Size = UDim2.new(1, 0, 1, 0),
  670. Text = Text,
  671. Font = "SciFi",
  672. TextColor3 = Color,
  673. TextScaled = true,
  674. Parent = BillboardGui,
  675. }
  676. game.Debris:AddItem(EffectPart, (Time))
  677. EffectPart.Parent = game:GetService("Workspace")
  678. delay(0, function()
  679. local Frames = (Time / Rate)
  680. for Frame = 1, Frames do
  681. wait(Rate)
  682. local Percent = (Frame / Frames)
  683. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  684. TextLabel.TextTransparency = Percent
  685. end
  686. if EffectPart and EffectPart.Parent then
  687. EffectPart:Destroy()
  688. end
  689. end)
  690. end
  691.  
  692. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  693. for _, c in pairs(workspace:children()) do
  694. local hum = c:findFirstChild("Humanoid")
  695. if hum ~= nil then
  696. local head = c:findFirstChild("Torso")
  697. if head ~= nil then
  698. local targ = head.Position - Part.Position
  699. local mag = targ.magnitude
  700. if mag <= Magnitude and c.Name ~= Player.Name then
  701. for i = 1, 10 do
  702. Effects.Elect.Create(head.CFrame, 10, 10, 10)
  703. end
  704. CFuncs.Sound.Create("0", head, 1, 1)
  705. Effects.Sphere.Create(BrickColor.new("Deep blue"), head.CFrame, .5, .5, .5, .5, .5, .5, .05)
  706. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch)
  707. end
  708. end
  709. end
  710. end
  711. end
  712.  
  713. HandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleR", Vector3.new(0.403949469, 0.452220112, 0.425030977))
  714. HandleRWeld = CFuncs.Weld.Create(m, Character["Right Arm"], HandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.637853563, -0.00997161865, 0.00182324648, 0, -1, 0, 1, 0, 0, 0, -0, 1))
  715. HitboxR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxR", Vector3.new(1.00394952, 1.05222011, 1.02503109))
  716. HitboxRWeld = CFuncs.Weld.Create(m, HandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999999642, 0, 5.96046448e-008, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  717. HandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleL", Vector3.new(0.403949469, 0.452220112, 0.425030977))
  718. HandleLWeld = CFuncs.Weld.Create(m, Character["Left Arm"], HandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.637853563, -0.00997924805, 0.00182324648, 0, -1, 0, 1, 0, 0, 0, -0, 1))
  719. HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxL", Vector3.new(1.00394952, 1.05222011, 1.02503109))
  720. HitboxLWeld = CFuncs.Weld.Create(m, HandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999999642, 3.81469727e-006, 5.96046448e-008, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  721. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  722. sref.Anchored = true
  723.  
  724. EffectModel = Create("Model"){
  725. Parent = Character,
  726. Name = "Effects",
  727. }
  728.  
  729. Effects = {
  730. Block = {
  731. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  732. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  733. prt.Anchored = true
  734. prt.CFrame = cframe
  735. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  736. game:GetService("Debris"):AddItem(prt, 10)
  737. if Type == 1 or Type == nil then
  738. table.insert(Effects, {
  739. prt,
  740. "Block1",
  741. delay,
  742. x3,
  743. y3,
  744. z3,
  745. msh
  746. })
  747. elseif Type == 2 then
  748. table.insert(Effects, {
  749. prt,
  750. "Block2",
  751. delay,
  752. x3,
  753. y3,
  754. z3,
  755. msh
  756. })
  757. end
  758. end;
  759. };
  760.  
  761. Cylinder = {
  762. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  763. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  764. prt.Anchored = true
  765. prt.CFrame = cframe
  766. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  767. game:GetService("Debris"):AddItem(prt, 2)
  768. table.insert(Effects, {
  769. prt,
  770. "Cylinder",
  771. delay,
  772. x3,
  773. y3,
  774. z3,
  775. msh
  776. })
  777. end;
  778. };
  779.  
  780. Head = {
  781. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  782. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  783. prt.Anchored = true
  784. prt.CFrame = cframe
  785. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  786. game:GetService("Debris"):AddItem(prt, 10)
  787. table.insert(Effects, {
  788. prt,
  789. "Cylinder",
  790. delay,
  791. x3,
  792. y3,
  793. z3,
  794. msh
  795. })
  796. end;
  797. };
  798.  
  799. Sphere = {
  800. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  801. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  802. prt.Anchored = true
  803. prt.CFrame = cframe
  804. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  805. game:GetService("Debris"):AddItem(prt, 10)
  806. table.insert(Effects, {
  807. prt,
  808. "Cylinder",
  809. delay,
  810. x3,
  811. y3,
  812. z3,
  813. msh
  814. })
  815. end;
  816. };
  817.  
  818. Elect = {
  819. Create = function(cff, x, y, z)
  820. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Deep blue"), "Part", Vector3.new(1, 1, 1))
  821. prt.Anchored = true
  822. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  823. prt.CFrame = CFrame.new(prt.Position)
  824. game:GetService("Debris"):AddItem(prt, 2)
  825. local xval = math.random() / 2
  826. local yval = math.random() / 2
  827. local zval = math.random() / 2
  828. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  829. table.insert(Effects, {
  830. prt,
  831. "Elec",
  832. 0.1,
  833. x,
  834. y,
  835. z,
  836. xval,
  837. yval,
  838. zval
  839. })
  840. end;
  841.  
  842. };
  843.  
  844. Ring = {
  845. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  846. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  847. prt.Anchored = true
  848. prt.CFrame = cframe
  849. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  850. game:GetService("Debris"):AddItem(prt, 10)
  851. table.insert(Effects, {
  852. prt,
  853. "Cylinder",
  854. delay,
  855. x3,
  856. y3,
  857. z3,
  858. msh
  859. })
  860. end;
  861. };
  862.  
  863.  
  864. Wave = {
  865. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  866. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  867. prt.Anchored = true
  868. prt.CFrame = cframe
  869. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  870. game:GetService("Debris"):AddItem(prt, 10)
  871. table.insert(Effects, {
  872. prt,
  873. "Cylinder",
  874. delay,
  875. x3,
  876. y3,
  877. z3,
  878. msh
  879. })
  880. end;
  881. };
  882.  
  883. Break = {
  884. Create = function(brickcolor, cframe, x1, y1, z1)
  885. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  886. prt.Anchored = true
  887. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  888. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  889. local num = math.random(10, 50) / 1000
  890. game:GetService("Debris"):AddItem(prt, 10)
  891. table.insert(Effects, {
  892. prt,
  893. "Shatter",
  894. num,
  895. prt.CFrame,
  896. math.random() - math.random(),
  897. 0,
  898. math.random(50, 100) / 100
  899. })
  900. end;
  901. };
  902.  
  903. Fire = {
  904. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  905. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  906. prt.Anchored = true
  907. prt.CFrame = cframe
  908. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  909. game:GetService("Debris"):AddItem(prt, 10)
  910. table.insert(Effects, {
  911. prt,
  912. "Fire",
  913. delay,
  914. 1,
  915. 1,
  916. 1,
  917. msh
  918. })
  919. end;
  920. };
  921.  
  922. FireWave = {
  923. Create = function(brickcolor, cframe, x1, y1, z1)
  924. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  925. prt.Anchored = true
  926. prt.CFrame = cframe
  927. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  928. local d = Create("Decal"){
  929. Parent = prt,
  930. Texture = "rbxassetid://26356434",
  931. Face = "Top",
  932. }
  933. local d = Create("Decal"){
  934. Parent = prt,
  935. Texture = "rbxassetid://26356434",
  936. Face = "Bottom",
  937. }
  938. game:GetService("Debris"):AddItem(prt, 10)
  939. table.insert(Effects, {
  940. prt,
  941. "FireWave",
  942. 1,
  943. 30,
  944. math.random(400, 600) / 100,
  945. msh
  946. })
  947. end;
  948. };
  949.  
  950. Lightning = {
  951. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  952. local magz = (p0 - p1).magnitude
  953. local curpos = p0
  954. local trz = {
  955. -ofs,
  956. ofs
  957. }
  958. for i = 1, tym do
  959. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  960. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  961. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  962. li.Material = "Neon"
  963. if tym == i then
  964. local magz2 = (curpos - p1).magnitude
  965. li.Size = Vector3.new(th, th, magz2)
  966. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  967. table.insert(Effects, {
  968. li,
  969. "Disappear",
  970. last
  971. })
  972. else
  973. do
  974. do
  975. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  976. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  977. game.Debris:AddItem(li, 10)
  978. table.insert(Effects, {
  979. li,
  980. "Disappear",
  981. last
  982. })
  983. end
  984. end
  985. end
  986. end
  987. end
  988. };
  989.  
  990. EffectTemplate = {
  991.  
  992. };
  993. }
  994.  
  995. local DORARA = false
  996.  
  997. function ORA()
  998. attack = true
  999. for i = 0, 1, 0.2 do
  1000. swait()
  1001. PlayAnimationFromTable({
  1002. CFrame.new(4.76837158e-007, -0.107780606, -0.0868092626, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1003. CFrame.new(0, 1.4999913, 2.38418608e-007, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1004. CFrame.new(1.50214899, 0.590444803, 0.195881441, 0.965925872, 3.76027884e-007, 0.258818895, 0.257834077, -0.0871552154, -0.962250412, 0.0225570519, 0.99619478, -0.0841855928) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1005. CFrame.new(-1.60470915, 0.600643516, 0.204860806, 0.937436998, -0.0449436344, -0.345242023, -0.345831364, -0.00582624972, -0.938278675, 0.0401581824, 0.998972595, -0.0210046768) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1006. CFrame.new(0.636808395, -1.93472588, -0.370165229, 0.936116338, -0.0517791435, -0.347858071, 0.0266665779, 0.996705353, -0.0765988752, 0.350678325, 0.0624292716, 0.934412897) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1007. CFrame.new(-0.6665681, -1.92173398, -0.343467057, 0.962250233, 0.0613082647, 0.265171379, -0.0410595685, 0.99584806, -0.0812460929, -0.269051433, 0.0672912449, 0.960772276) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1008. }, .3, false)
  1009. end
  1010. local DORA = CFuncs.Sound.Create("161823027", Torso, 1, 1)
  1011. Instance.new("DistortionSoundEffect", DORA).Level = .45
  1012. DORA.Looped = true
  1013. local Con1 = HitboxL.Touched:connect(function(hit) Damage(HitboxL, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end)
  1014. local Con2 = HitboxR.Touched:connect(function(hit) Damage(HitboxR, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end)
  1015. while DORARA == true do
  1016. RootPart.Velocity = RootPart.CFrame.lookVector * 5
  1017. for i = 0, 1, 0.7 do
  1018. swait()
  1019. Effects.Elect.Create(HitboxL.CFrame, 4, 4, 4)
  1020. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15)
  1021. PlayAnimationFromTable({
  1022. CFrame.new(-0.0223142356, -0.107780628, -0.249816686, 0.906307876, 0.0733869597, -0.416197479, 0, 0.98480773, 0.173648462, 0.422617942, -0.157378972, 0.892539084) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1023. CFrame.new(-2.22850417e-007, 1.49999118, 1.16660271e-006, 0.906307936, 1.49011612e-008, 0.422617972, -7.27595761e-009, 1, 0, -0.422618032, 0, 0.906308055) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1024. CFrame.new(1.5318948, 0.588474631, 0.207054406, 0.899958313, 0.340718478, 0.272003621, 0.314965397, -0.0767233223, -0.945997, -0.301449746, 0.9370296, -0.176362336) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1025. CFrame.new(-1.27977741, 0.723447502, -1.20010054, 0.726744413, 0.46058476, -0.509611845, -0.503104627, -0.148215696, -0.851421177, -0.46768418, 0.875153661, 0.124007396) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1026. CFrame.new(0.636807501, -1.93472636, -0.370165735, 0.868198872, -0.0517790169, 0.493507534, 0.075819321, 0.996705353, -0.0288097262, -0.490389913, 0.0624299645, 0.869264364) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1027. CFrame.new(-0.666569352, -1.92173386, -0.343467534, 0.86083132, 0.0613082871, 0.505183935, -0.018632248, 0.995848, -0.0891051888, -0.508549333, 0.0672918186, 0.858399451) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1028. }, .9, false)
  1029. end
  1030. CFuncs.Sound.Create("200632136", HitboxL, 1, 1)
  1031. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 2, 2, 2, .15)
  1032. RootPart.Velocity = RootPart.CFrame.lookVector * 5
  1033. for i = 0, 1, 0.7 do
  1034. swait()
  1035. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .2)
  1036. PlayAnimationFromTable({
  1037. CFrame.new(0.0767437443, -0.107780531, -0.279432267, 0.866025388, -0.0868241936, 0.492404073, 0, 0.98480773, 0.173648342, -0.500000238, -0.150383845, 0.852868438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1038. CFrame.new(-2.61076184e-006, 1.4999913, -6.19508683e-007, 0.866025209, 2.98023224e-007, -0.500000656, -2.56928615e-007, 1, 1.1920929e-007, 0.500000596, 2.98023224e-008, 0.866025209) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1039. CFrame.new(1.40606534, 0.812639356, -1.14933658, 0.82139349, -0.422619373, 0.383021921, 0.349686205, -0.157378837, -0.923553765, 0.450591207, 0.892538428, 0.0185142085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1040. CFrame.new(-1.64197171, 0.599264741, 0.212680459, 0.807513177, -0.456930667, -0.373010725, -0.413006425, 0.0134942085, -0.9106282, 0.421127379, 0.889400065, -0.177818552) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1041. CFrame.new(0.636808515, -1.93472552, -0.37016958, 0.814187765, -0.0517790765, -0.578288436, 0.00593282748, 0.996705353, -0.0808905214, 0.580571651, 0.0624291934, 0.811812401) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1042. CFrame.new(-0.666569233, -1.92173398, -0.343468547, 0.867917657, 0.0613080971, -0.492910266, -0.0864830092, 0.99584806, -0.0284160972, 0.489121556, 0.0672912076, 0.869616032) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1043. }, .9, false)
  1044. end
  1045.  
  1046. fat = Instance.new("BindableEvent", script)
  1047. fat.Name = "Heartbeat"
  1048. script:WaitForChild("Heartbeat")
  1049. frame = 0.013333333333333
  1050. tf = 0
  1051. allowframeloss = false
  1052. tossremainder = false
  1053. lastframe = tick()
  1054. script.Heartbeat:Fire()
  1055. local ss = Instance.new("Sound",char)
  1056. ss.Volume = 3
  1057. ss.Looped = true
  1058. ss.Pitch = 1
  1059. ss.SoundId = "rbxassetid://0"
  1060. ss:Play()
  1061. function sbchat(msg,displayname)
  1062. if not displayname then
  1063. displayname = 'bela'
  1064. end
  1065. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  1066. local st = Instance.new('StringValue')
  1067. st.Name = 'SB_Chat'
  1068. st.Value = displayname..'/'..msg
  1069. delay(0.2,function() st.Parent = v end)
  1070. end
  1071. end
  1072.  
  1073. sbchat("ORA ORA ORA",'[Star Platinum]')
  1074. CFuncs.Sound.Create("200632136", HitboxR, 1, 1)
  1075. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 2, 2, 2, .2)
  1076. end
  1077. Con1:disconnect()
  1078. Con2:disconnect()
  1079. DORA:Stop()
  1080. attack = false
  1081. end
  1082.  
  1083. local stoppedParts = {}
  1084.  
  1085.  
  1086. function getAllParts()
  1087. local rtn = {}
  1088.  
  1089. local function recurse(object)
  1090. for q,e in next, object:children() do
  1091. if e:isA'BasePart' and e.Name ~= "HumanoidRootPart" then
  1092. table.insert(rtn, e)
  1093. end
  1094. recurse(e)
  1095. end
  1096. end
  1097.  
  1098. recurse(workspace)
  1099. return rtn
  1100. end
  1101.  
  1102. function stopParts(distance)
  1103. stoppedParts = {}
  1104. for nada, part in next, getAllParts() do
  1105. local dist = (Torso.Position-part.Position).magnitude
  1106. if dist <= distance and part.Name ~='Base' and part.Name ~= 'Baseplate' and not part:isDescendantOf(Torso.Parent) and part.Anchored ~= true then
  1107. table.insert(stoppedParts, part)
  1108. if part.Name ~= "Torso" and part.Anchored ~= true then
  1109. part.Anchored = true
  1110. end
  1111. end
  1112. end
  1113. end
  1114.  
  1115.  
  1116. function freeParts()
  1117. for q,e in next, stoppedParts do
  1118. stoppedParts[q] = nil
  1119. e.Anchored = false
  1120. end
  1121. end
  1122.  
  1123. local effect = Instance.new('ColorCorrectionEffect')
  1124. function TheWorld(Mode)
  1125. if Mode == "Time Start" then
  1126. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15)
  1127. for i = 1,50 do
  1128. if effect.Saturation <= 0 then
  1129. effect.Saturation = effect.Saturation + i/50
  1130. end
  1131. swait(1/30)
  1132. end
  1133. freeParts()
  1134. effect.Saturation = 0
  1135. effect.Contrast = 0
  1136. effect.Parent = nil
  1137. workspace.Gravity = 196.2
  1138. end
  1139. if Mode == "Quick Stop" then
  1140.  
  1141. fat = Instance.new("BindableEvent", script)
  1142. fat.Name = "Heartbeat"
  1143. script:WaitForChild("Heartbeat")
  1144. frame = 0.013333333333333
  1145. tf = 0
  1146. allowframeloss = false
  1147. tossremainder = false
  1148. lastframe = tick()
  1149. script.Heartbeat:Fire()
  1150. local ss = Instance.new("Sound",char)
  1151. ss.Volume = 3
  1152. ss.Looped = true
  1153. ss.Pitch = 1
  1154. ss.SoundId = "rbxassetid://0"
  1155. ss:Play()
  1156. function sbchat(msg,displayname)
  1157. if not displayname then
  1158. displayname = 'bela'
  1159. end
  1160. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  1161. local st = Instance.new('StringValue')
  1162. st.Name = 'SB_Chat'
  1163. st.Value = displayname..'/'..msg
  1164. delay(0.2,function() st.Parent = v end)
  1165. end
  1166. end
  1167.  
  1168. sbchat("THE WORLD!",'[Star Platinum]')
  1169. local zawarudo = CFuncs.Sound.Create("735067173", workspace, 1, 1)
  1170. Instance.new("DistortionSoundEffect", zawarudo).Level = .67
  1171. swait(60)
  1172. Effects.Sphere.Create(BrickColor.new("Institutional white"), RootPart.CFrame, 1, 1, 1, 50, 50, 50, .01)
  1173. effect.Parent = game.Lighting
  1174. for i = 1,50 do
  1175. effect.Saturation = -(i/10)
  1176. swait()
  1177. end
  1178. stopParts(5555)
  1179. end
  1180. end
  1181.  
  1182. Mouse.Button1Down:connect(function()
  1183. if attack == false and DORARA == false then
  1184. DORARA = true
  1185. ORA()
  1186. end
  1187. end)
  1188.  
  1189. Mouse.Button1Up:connect(function()
  1190. if attack == true and DORARA == true then
  1191. DORARA = false
  1192. end
  1193. end)
  1194.  
  1195. Mouse.KeyDown:connect(function(k)
  1196. k = k:lower()
  1197. if attack == false and k == 'g' and TimeStop == false then
  1198. TimeStop = true
  1199. TheWorld("Quick Stop")
  1200. elseif attack == false and k == 'g' and TimeStop == true then
  1201. TimeStop = false
  1202. TheWorld("Time Start")
  1203. end
  1204. end)
  1205.  
  1206. while true do
  1207. swait()
  1208. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  1209. for i, v in pairs(Character:GetChildren()) do
  1210. if v:IsA("Part") then
  1211. v.Material = "SmoothPlastic"
  1212. elseif v:IsA("Accessory") then
  1213. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1214. end
  1215. end
  1216. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1217. velocity = RootPart.Velocity.y
  1218. sine = sine + change
  1219. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1220. if RootPart.Velocity.y > 1 and hit == nil then
  1221. Anim = "Jump"
  1222. if attack == false then
  1223. PlayAnimationFromTable({
  1224. CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1225. CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1226. CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1227. CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1228. CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392e-007, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1229. CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1230. }, .3, false)
  1231. end
  1232. elseif RootPart.Velocity.y < -1 and hit == nil then
  1233. Anim = "Fall"
  1234. if attack == false then
  1235. PlayAnimationFromTable({
  1236. CFrame.new(-0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1237. CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1238. CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1239. CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1240. CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1241. CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1242. }, .3, false)
  1243. end
  1244. elseif Torsovelocity < 1 and hit ~= nil then
  1245. Anim = "Idle"
  1246. if attack == false then
  1247. change = 1
  1248. PlayAnimationFromTable({
  1249. CFrame.new(-0.0254490171, -0.100000001, -0.0245252885, 0.965925872, 0, 0.258818984, 0, 1, 0, -0.258818984, 0, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1250. CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007, 0.965925872, 0.02255762, -0.257834077, 0, 0.996194661, 0.087155968, 0.258818984, -0.0841862038, 0.962250173) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1251. CFrame.new(1.18608475, 0.561332762, -0.668662548, 0.815707564, 0.397307515, 0.420437992, 0.567439079, -0.408345699, -0.71502924, -0.112402454, 0.821827531, -0.558538496) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1252. CFrame.new(-1.18486226, 0.664583206, -0.703545451, 0.801997423, -0.384815574, -0.456855893, -0.595755875, -0.459863067, -0.658483863, 0.0433037281, 0.800276875, -0.598065078) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1253. CFrame.new(0.602607846, -1.89999723, -0.281901717, 0.938264608, -0.0318391919, -0.344450235, 0.0551190265, 0.996793628, 0.0580029301, 0.341499031, -0.0734078437, 0.937011182) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1254. CFrame.new(-0.68740654, -1.99010217, 0.313043743, 0.998308659, 0.0566585623, -0.0130319893, -0.0526040196, 0.975744903, 0.212496698, 0.0247556716, -0.211451754, 0.977074862) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1255. }, .3, false)
  1256. end
  1257. elseif Torsovelocity > 2 and hit ~= nil then
  1258. Anim = "Walk"
  1259. if attack == false then
  1260. change = 2
  1261. PlayAnimationFromTable({
  1262. CFrame.new(-0, -0.331043243, -0.246173918, 1, 0, 0, 0, 0.906307876, 0.422617942, 0, -0.422617942, 0.906307876) * CFrame.new(0, .1, 0) * CFrame.Angles(0, math.rad(-5 * math.cos(sine / 7)), 0),
  1263. CFrame.new(0, 1.4999913, 6.55651093e-007, 1, 0, 0, 0, 0.965925813, -0.258818924, 0, 0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(5 * math.cos(sine / 7)), 0),
  1264. CFrame.new(1.14562762, 0.526349247, -0.591056466, 0.825674891, 0.469375819, 0.312965363, 0.547643542, -0.533675969, -0.644419432, -0.135452792, 0.703474402, -0.697693527) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1265. CFrame.new(-1.14244175, 0.534408689, -0.582344949, 0.825674295, -0.469376504, -0.312966168, -0.547644734, -0.533675849, -0.644418597, 0.13545242, 0.703474045, -0.697693944) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1266. CFrame.new(.5, -1.64 - 0.5 * math.cos(sine / 8) / 2, 0 + 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)),
  1267. CFrame.new(-.5, -1.64 + 0.5 * math.cos(sine / 8) / 2, 0 - 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)),
  1268. }, .3, false)
  1269. end
  1270. end
  1271. if 0 < #Effects then
  1272. for e = 1, #Effects do
  1273. if Effects[e] ~= nil then
  1274. local Thing = Effects[e]
  1275. if Thing ~= nil then
  1276. local Part = Thing[1]
  1277. local Mode = Thing[2]
  1278. local Delay = Thing[3]
  1279. local IncX = Thing[4]
  1280. local IncY = Thing[5]
  1281. local IncZ = Thing[6]
  1282. if Thing[2] == "Shoot" then
  1283. local Look = Thing[1]
  1284. local move = 5
  1285. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1286. if Thing[10] ~= nil then
  1287. da = pos
  1288. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1289. cfa = CFrame.new(Thing[4], pos)
  1290. tehCF = cfa:lerp(cf2, 0.2)
  1291. Thing[1] = tehCF.lookVector
  1292. end
  1293. local mag = (Thing[4] - pos).magnitude
  1294. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1295. Effects.Sphere.Create(BrickColor.new("Deep blue"), CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, 3, 3, 5, 5, 5, 0.15)
  1296. Thing[4] = Thing[4] + Look * move
  1297. Thing[3] = Thing[3] - 1
  1298. if 2 < Thing[5] then
  1299. Thing[5] = Thing[5] - 0.3
  1300. Thing[6] = Thing[6] - 0.3
  1301. end
  1302. if hit ~= nil then
  1303. Thing[3] = 0
  1304. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1305. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1306. ref.Anchored = true
  1307. ref.CFrame = CFrame.new(pos)
  1308. Effects.Block.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
  1309. Effects.Sphere.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1310. game:GetService("Debris"):AddItem(ref, 1)
  1311. end
  1312. if Thing[3] <= 0 then
  1313. table.remove(Effects, e)
  1314. end
  1315. end
  1316. do
  1317. do
  1318. if Thing[2] == "FireWave" then
  1319. if Thing[3] <= Thing[4] then
  1320. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1321. Thing[3] = Thing[3] + 1
  1322. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1323. else
  1324. Part.Parent = nil
  1325. table.remove(Effects, e)
  1326. end
  1327. end
  1328. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1329. if Thing[1].Transparency <= 1 then
  1330. if Thing[2] == "Block1" then
  1331. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1332. Mesh = Thing[7]
  1333. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1334. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1335. else
  1336. if Thing[2] == "Block2" then
  1337. Thing[1].CFrame = Thing[1].CFrame
  1338. Mesh = Thing[7]
  1339. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1340. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1341. else
  1342. if Thing[2] == "Fire" then
  1343. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1344. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1345. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1346. else
  1347. if Thing[2] == "Cylinder" then
  1348. Mesh = Thing[7]
  1349. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1350. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1351. else
  1352. if Thing[2] == "Blood" then
  1353. Mesh = Thing[7]
  1354. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1355. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1356. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1357. else
  1358. if Thing[2] == "Elec" then
  1359. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  1360. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1361. else
  1362. if Thing[2] == "Disappear" then
  1363. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1364. end
  1365. end
  1366. end
  1367. end
  1368. end
  1369. end
  1370. end
  1371. else
  1372. Part.Parent = nil
  1373. table.remove(Effects, e)
  1374. end
  1375. end
  1376. end
  1377. end
  1378. end
  1379. end
  1380. end
  1381. end
  1382. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement