Hugo1234cool

Untitled

Feb 24th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.59 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. wait(1 / 60)
  153. p =owner
  154. char = p.Character
  155. torso = char.Torso
  156. neck = char.Torso.Neck
  157. hum = char.Humanoid
  158. hum.MaxHealth = 75000
  159. wait()
  160. hum.Health =hum.MaxHealth
  161. char.Head.face.Texture = "rbxassetid://405587215"
  162.  
  163. function startup()
  164. coroutine.resume(coroutine.create(function()
  165. local m = Instance.new("Model", char)
  166. m.Name = "* C"
  167. local chat = Instance.new("Part", m)
  168. chat.TopSurface = "Smooth"
  169. chat.BottomSurface = "Smooth"
  170. chat.Name = "Head"
  171. chat.FormFactor = "Custom"
  172. chat.Size = Vector3.new(0.05, 0.05, 0.1)
  173. chat.Transparency = 0.9
  174. chat.CanCollide = false
  175. local Weld7 = Instance.new("Weld", char)
  176. Weld7.Part0 = char.Head
  177. Weld7.Part1 = chat
  178. Weld7.C1 = CFrame.new(0, -2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  179. local cy7 = Instance.new("BlockMesh", chat)
  180. local h = Instance.new("Humanoid", m)
  181. h.MaxHealth = 0
  182. m.Name = "Star Platinum"
  183. end))
  184. end
  185.  
  186. z = Instance.new("Sound", torso)
  187. z.SoundId = "rbxassetid://264396581" -- Put Music ID Here.
  188. z.Looped = true
  189. z.Volume = 1
  190. wait(.1)
  191. z:Play()
  192.  
  193. char["Body Colors"].HeadColor = BrickColor.new("Pastel Blue")
  194. char["Body Colors"].TorsoColor = BrickColor.new("Pastel Blue")
  195. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel Blue")
  196. char["Body Colors"].RightArmColor = BrickColor.new("Pastel Blue")
  197. char["Body Colors"].LeftLegColor = BrickColor.new("Pastel Blue")
  198. char["Body Colors"].RightLegColor = BrickColor.new("Pastel Blue")
  199.  
  200. shirt = Instance.new("Shirt", char)
  201. shirt.Name = "Shirt"
  202. pants = Instance.new("Pants", char)
  203. pants.Name = "Pants"
  204. char.Shirt.ShirtTemplate = "rbxassetid://496506720"
  205. char.Pants.PantsTemplate = "rbxassetid://496512137"
  206.  
  207. Hat = Instance.new("Model")
  208. Hat.Parent = char
  209. Hat.Name = "Hat"
  210. rh = Instance.new("Part")
  211. rh.Parent = Hat
  212. rh.BrickColor = BrickColor.new("Really black")
  213. rh.Locked = true
  214. rh.CanCollide = false
  215. mesh = Instance.new("SpecialMesh")
  216. rh.formFactor = "Symmetric"
  217. mesh.MeshType = "FileMesh"
  218. mesh.MeshId = "rbxassetid://439736904"
  219. mesh.Parent = rh
  220. local weld = Instance.new("Weld")
  221. weld.Parent = rh
  222. weld.Part0 = rh
  223. weld.Part1 =char.Head
  224. weld.C0 = CFrame.new(0, -0.5, 0.5)*CFrame.Angles(0, 3, 0)
  225. mesh.Scale = Vector3.new(0.002,0.002, 0.002)
  226.  
  227. Effects = { }
  228. local Player = game.Players.localPlayer
  229. local Character = Player.Character
  230. local Humanoid = Character.Humanoid
  231. Humanoid.WalkSpeed = 20
  232. local Mouse = Player:GetMouse()
  233. local LeftArm = Character["Left Arm"]
  234. local RightArm = Character["Right Arm"]
  235. local LeftLeg = Character["Left Leg"]
  236. local RightLeg = Character["Right Leg"]
  237. local Head = Character.Head
  238. local Torso = Character.Torso
  239. local Camera = game.Workspace.CurrentCamera
  240. local RootPart = Character.HumanoidRootPart
  241. local RootJoint = RootPart.RootJoint
  242. local attack = false
  243. local Anim = 'Idle'
  244. local attacktype = 1
  245. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  246. local velocity = RootPart.Velocity.y
  247. local sine = 0
  248. local change = 1
  249. local Create = LoadLibrary("RbxUtility").Create
  250. local TimeStop = false
  251.  
  252. local m = Create("Model"){
  253. Parent = Character,
  254. Name = "WeaponModel",
  255. }
  256.  
  257. Humanoid.Animator.Parent = nil
  258. Character.Animate.Parent = nil
  259.  
  260. local newMotor = function(part0, part1, c0, c1)
  261. local w = Create('Motor'){
  262. Parent = part0,
  263. Part0 = part0,
  264. Part1 = part1,
  265. C0 = c0,
  266. C1 = c1,
  267. }
  268. return w
  269. end
  270.  
  271. function clerp(a, b, t)
  272. return a:lerp(b, t)
  273. end
  274.  
  275. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  276. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  277.  
  278. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  279. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  280. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  281. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  282. RootJoint.C1 = CFrame.new(0, 0, 0)
  283. RootJoint.C0 = CFrame.new(0, 0, 0)
  284. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  285. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  286.  
  287. local rarmc1 = RW.C1
  288. local larmc1 = LW.C1
  289. local rlegc1 = RH.C1
  290. local llegc1 = LH.C1
  291.  
  292. local resetc1 = false
  293.  
  294. function PlayAnimationFromTable(table, speed, bool)
  295. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  296. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  297. RW.C0 = clerp(RW.C0, table[3], speed)
  298. LW.C0 = clerp(LW.C0, table[4], speed)
  299. RH.C0 = clerp(RH.C0, table[5], speed)
  300. LH.C0 = clerp(LH.C0, table[6], speed)
  301. if bool == true then
  302. if resetc1 == false then
  303. resetc1 = true
  304. RootJoint.C1 = RootJoint.C1
  305. Torso.Neck.C1 = Torso.Neck.C1
  306. RW.C1 = rarmc1
  307. LW.C1 = larmc1
  308. RH.C1 = rlegc1
  309. LH.C1 = llegc1
  310. end
  311. end
  312. end
  313.  
  314. ArtificialHB = Create("BindableEvent", script){
  315. Parent = script,
  316. Name = "Heartbeat",
  317. }
  318.  
  319. script:WaitForChild("Heartbeat")
  320.  
  321. frame = 1 / 35
  322. tf = 0
  323. allowframeloss = false
  324. tossremainder = false
  325. lastframe = tick()
  326. script.Heartbeat:Fire()
  327.  
  328. game:GetService("RunService").Heartbeat:connect(function(s, p)
  329. tf = tf + s
  330. if tf >= frame then
  331. if allowframeloss then
  332. script.Heartbeat:Fire()
  333. lastframe = tick()
  334. else
  335. for i = 1, math.floor(tf / frame) do
  336. script.Heartbeat:Fire()
  337. end
  338. lastframe = tick()
  339. end
  340. if tossremainder then
  341. tf = 0
  342. else
  343. tf = tf - frame * math.floor(tf / frame)
  344. end
  345. end
  346. end)
  347.  
  348. function swait(num)
  349. if num == 0 or num == nil then
  350. ArtificialHB.Event:wait()
  351. else
  352. for i = 0, num do
  353. ArtificialHB.Event:wait()
  354. end
  355. end
  356. end
  357.  
  358. function RemoveOutlines(part)
  359. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  360. end
  361.  
  362. CFuncs = {
  363. Part = {
  364. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  365. local Part = Create("Part"){
  366. Parent = Parent,
  367. Reflectance = Reflectance,
  368. Transparency = Transparency,
  369. CanCollide = false,
  370. Locked = true,
  371. BrickColor = BrickColor.new(tostring(BColor)),
  372. Name = Name,
  373. Size = Size,
  374. Material = Material,
  375. }
  376. RemoveOutlines(Part)
  377. return Part
  378. end;
  379. };
  380.  
  381. Mesh = {
  382. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  383. local Msh = Create(Mesh){
  384. Parent = Part,
  385. Offset = OffSet,
  386. Scale = Scale,
  387. }
  388. if Mesh == "SpecialMesh" then
  389. Msh.MeshType = MeshType
  390. Msh.MeshId = MeshId
  391. end
  392. return Msh
  393. end;
  394. };
  395.  
  396. Weld = {
  397. Create = function(Parent, Part0, Part1, C0, C1)
  398. local Weld = Create("Weld"){
  399. Parent = Parent,
  400. Part0 = Part0,
  401. Part1 = Part1,
  402. C0 = C0,
  403. C1 = C1,
  404. }
  405. return Weld
  406. end;
  407. };
  408.  
  409. Sound = {
  410. Create = function(id, par, vol, pit)
  411. local Sound = Create("Sound"){
  412. Volume = vol,
  413. Pitch = pit or 1,
  414. SoundId = "rbxassetid://" .. id,
  415. Parent = par or workspace,
  416. }
  417. Sound:play()
  418. return Sound
  419. end;
  420. };
  421.  
  422. Decal = {
  423. Create = function(Color, Texture, Transparency, Name, Parent)
  424. local Decal = Create("Decal"){
  425. Color3 = Color,
  426. Texture = "rbxassetid://" .. Texture,
  427. Transparency = Transparency,
  428. Name = Name,
  429. Parent = Parent,
  430. }
  431. return Decal
  432. end;
  433. };
  434.  
  435. BillboardGui = {
  436. Create = function(Parent, Image, Position, Size)
  437. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  438. BillPar.CFrame = CFrame.new(Position)
  439. local Bill = Create("BillboardGui"){
  440. Parent = BillPar,
  441. Adornee = BillPar,
  442. Size = UDim2.new(1, 0, 1, 0),
  443. SizeOffset = Vector2.new(Size, Size),
  444. }
  445. local d = Create("ImageLabel", Bill){
  446. Parent = Bill,
  447. BackgroundTransparency = 1,
  448. Size = UDim2.new(1, 0, 1, 0),
  449. Image = "rbxassetid://" .. Image,
  450. }
  451. return BillPar
  452. end
  453. };
  454.  
  455. ParticleEmitter = {
  456. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  457. local Particle = Create("ParticleEmitter"){
  458. Parent = Parent,
  459. Color = ColorSequence.new(Color1, Color2),
  460. LightEmission = LightEmission,
  461. Size = Size,
  462. Texture = Texture,
  463. Transparency = Transparency,
  464. ZOffset = ZOffset,
  465. Acceleration = Accel,
  466. Drag = Drag,
  467. LockedToPart = LockedToPart,
  468. VelocityInheritance = VelocityInheritance,
  469. EmissionDirection = EmissionDirection,
  470. Enabled = Enabled,
  471. Lifetime = LifeTime,
  472. Rate = Rate,
  473. Rotation = Rotation,
  474. RotSpeed = RotSpeed,
  475. Speed = Speed,
  476. VelocitySpread = VelocitySpread,
  477. }
  478. return Particle
  479. end;
  480. };
  481.  
  482. CreateTemplate = {
  483.  
  484. };
  485. }
  486.  
  487. function rayCast(Position, Direction, Range, Ignore)
  488. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  489. end
  490.  
  491. function FindNearestTorso(Position, Distance, SinglePlayer)
  492. if SinglePlayer then
  493. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  494. end
  495. local List = {}
  496. for i, v in pairs(workspace:GetChildren()) do
  497. if v:IsA("Model") then
  498. if v:findFirstChild("Torso") then
  499. if v ~= Character then
  500. if (v.Torso.Position - Position).magnitude <= Distance then
  501. table.insert(List, v)
  502. end
  503. end
  504. end
  505. end
  506. end
  507. return List
  508. end
  509.  
  510. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  511. if hit.Parent == nil then
  512. return
  513. end
  514. local h = hit.Parent:FindFirstChild("Humanoid")
  515. for _, v in pairs(hit.Parent:children()) do
  516. if v:IsA("Humanoid") then
  517. h = v
  518. end
  519. end
  520. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  521. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  522. if hit.Parent.DebounceHit.Value == true then
  523. return
  524. end
  525. end
  526. local c = Create("ObjectValue"){
  527. Name = "creator",
  528. Value = game:service("Players").LocalPlayer,
  529. Parent = h,
  530. }
  531. game:GetService("Debris"):AddItem(c, .5)
  532. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  533. local Damage = math.random(minim, maxim)
  534. local blocked = false
  535. local block = hit.Parent:findFirstChild("Block")
  536. if block ~= nil then
  537. if block.className == "IntValue" then
  538. if block.Value > 0 then
  539. blocked = true
  540. block.Value = block.Value - 1
  541. print(block.Value)
  542. end
  543. end
  544. end
  545. if TimeStop == false then
  546. h.Health = h.Health - Damage
  547. 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)
  548. elseif TimeStop == true then
  549. repeat wait() until TimeStop == false
  550. h.Health = h.Health - (Damage / 2)
  551. 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)
  552. end
  553. if Type == "Knockdown" then
  554. local hum = hit.Parent.Humanoid
  555. hum.PlatformStand = true
  556. coroutine.resume(coroutine.create(function(HHumanoid)
  557. swait(1)
  558. HHumanoid.PlatformStand = false
  559. end), hum)
  560. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  561. local bodvol = Create("BodyVelocity"){
  562. velocity = angle * knockback,
  563. P = 5000,
  564. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  565. Parent = hit,
  566. }
  567. local rl = Create("BodyAngularVelocity"){
  568. P = 3000,
  569. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  570. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  571. Parent = hit,
  572. }
  573. game:GetService("Debris"):AddItem(bodvol, .5)
  574. game:GetService("Debris"):AddItem(rl, .5)
  575. elseif Type == "Normal" then
  576. local vp = Create("BodyVelocity"){
  577. P = 500,
  578. maxForce = Vector3.new(math.huge, 0, math.huge),
  579. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  580. }
  581. if knockback > 0 then
  582. vp.Parent = hit.Parent.Torso
  583. end
  584. game:GetService("Debris"):AddItem(vp, .5)
  585. elseif Type == "Up" then
  586. local bodyVelocity = Create("BodyVelocity"){
  587. velocity = Vector3.new(0, 20, 0),
  588. P = 5000,
  589. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  590. Parent = hit,
  591. }
  592. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  593. elseif Type == "DarkUp" then
  594. coroutine.resume(coroutine.create(function()
  595. for i = 0, 1, 0.1 do
  596. swait()
  597. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  598. end
  599. end))
  600. local bodyVelocity = Create("BodyVelocity"){
  601. velocity = Vector3.new(0, 20, 0),
  602. P = 5000,
  603. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  604. Parent = hit,
  605. }
  606. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  607. elseif Type == "Snare" then
  608. local bp = Create("BodyPosition"){
  609. P = 2000,
  610. D = 100,
  611. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  612. position = hit.Parent.Torso.Position,
  613. Parent = hit.Parent.Torso,
  614. }
  615. game:GetService("Debris"):AddItem(bp, 1)
  616. elseif Type == "Freeze" then
  617. local BodPos = Create("BodyPosition"){
  618. P = 50000,
  619. D = 1000,
  620. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  621. position = hit.Parent.Torso.Position,
  622. Parent = hit.Parent.Torso,
  623. }
  624. local BodGy = Create("BodyGyro") {
  625. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  626. P = 20e+003,
  627. Parent = hit.Parent.Torso,
  628. cframe = hit.Parent.Torso.CFrame,
  629. }
  630. hit.Parent.Torso.Anchored = true
  631. coroutine.resume(coroutine.create(function(Part)
  632. swait(1.5)
  633. Part.Anchored = false
  634. end), hit.Parent.Torso)
  635. game:GetService("Debris"):AddItem(BodPos, 3)
  636. game:GetService("Debris"):AddItem(BodGy, 3)
  637. end
  638. local debounce = Create("BoolValue"){
  639. Name = "DebounceHit",
  640. Parent = hit.Parent,
  641. Value = true,
  642. }
  643. game:GetService("Debris"):AddItem(debounce, Delay)
  644. c = Create("ObjectValue"){
  645. Name = "creator",
  646. Value = Player,
  647. Parent = h,
  648. }
  649. game:GetService("Debris"):AddItem(c, .5)
  650. end
  651. end
  652.  
  653. function ShowDamage(Pos, Text, Time, Color)
  654. local Rate = (1 / 30)
  655. local Pos = (Pos or Vector3.new(0, 0, 0))
  656. local Text = (Text or "")
  657. local Time = (Time or 2)
  658. local Color = (Color or Color3.new(1, 0, 1))
  659. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  660. EffectPart.Anchored = true
  661. local BillboardGui = Create("BillboardGui"){
  662. Size = UDim2.new(3, 0, 3, 0),
  663. Adornee = EffectPart,
  664. Parent = EffectPart,
  665. }
  666. local TextLabel = Create("TextLabel"){
  667. BackgroundTransparency = 1,
  668. Size = UDim2.new(1, 0, 1, 0),
  669. Text = Text,
  670. Font = "SciFi",
  671. TextColor3 = Color,
  672. TextScaled = true,
  673. Parent = BillboardGui,
  674. }
  675. game.Debris:AddItem(EffectPart, (Time))
  676. EffectPart.Parent = game:GetService("Workspace")
  677. delay(0, function()
  678. local Frames = (Time / Rate)
  679. for Frame = 1, Frames do
  680. wait(Rate)
  681. local Percent = (Frame / Frames)
  682. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  683. TextLabel.TextTransparency = Percent
  684. end
  685. if EffectPart and EffectPart.Parent then
  686. EffectPart:Destroy()
  687. end
  688. end)
  689. end
  690.  
  691. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  692. for _, c in pairs(workspace:children()) do
  693. local hum = c:findFirstChild("Humanoid")
  694. if hum ~= nil then
  695. local head = c:findFirstChild("Torso")
  696. if head ~= nil then
  697. local targ = head.Position - Part.Position
  698. local mag = targ.magnitude
  699. if mag <= Magnitude and c.Name ~= Player.Name then
  700. for i = 1, 10 do
  701. Effects.Elect.Create(head.CFrame, 10, 10, 10)
  702. end
  703. CFuncs.Sound.Create("0", head, 1, 1)
  704. Effects.Sphere.Create(BrickColor.new("Deep blue"), head.CFrame, .5, .5, .5, .5, .5, .5, .05)
  705. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch)
  706. end
  707. end
  708. end
  709. end
  710. end
  711.  
  712. HandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleR", Vector3.new(0.403949469, 0.452220112, 0.425030977))
  713. 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))
  714. HitboxR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxR", Vector3.new(1.00394952, 1.05222011, 1.02503109))
  715. 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))
  716. HandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleL", Vector3.new(0.403949469, 0.452220112, 0.425030977))
  717. 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))
  718. HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxL", Vector3.new(1.00394952, 1.05222011, 1.02503109))
  719. 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))
  720. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  721. sref.Anchored = true
  722.  
  723. EffectModel = Create("Model"){
  724. Parent = Character,
  725. Name = "Effects",
  726. }
  727.  
  728. Effects = {
  729. Block = {
  730. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  731. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  732. prt.Anchored = true
  733. prt.CFrame = cframe
  734. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  735. game:GetService("Debris"):AddItem(prt, 10)
  736. if Type == 1 or Type == nil then
  737. table.insert(Effects, {
  738. prt,
  739. "Block1",
  740. delay,
  741. x3,
  742. y3,
  743. z3,
  744. msh
  745. })
  746. elseif Type == 2 then
  747. table.insert(Effects, {
  748. prt,
  749. "Block2",
  750. delay,
  751. x3,
  752. y3,
  753. z3,
  754. msh
  755. })
  756. end
  757. end;
  758. };
  759.  
  760. Cylinder = {
  761. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  762. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  763. prt.Anchored = true
  764. prt.CFrame = cframe
  765. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  766. game:GetService("Debris"):AddItem(prt, 2)
  767. table.insert(Effects, {
  768. prt,
  769. "Cylinder",
  770. delay,
  771. x3,
  772. y3,
  773. z3,
  774. msh
  775. })
  776. end;
  777. };
  778.  
  779. Head = {
  780. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  781. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  782. prt.Anchored = true
  783. prt.CFrame = cframe
  784. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  785. game:GetService("Debris"):AddItem(prt, 10)
  786. table.insert(Effects, {
  787. prt,
  788. "Cylinder",
  789. delay,
  790. x3,
  791. y3,
  792. z3,
  793. msh
  794. })
  795. end;
  796. };
  797.  
  798. Sphere = {
  799. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  800. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  801. prt.Anchored = true
  802. prt.CFrame = cframe
  803. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  804. game:GetService("Debris"):AddItem(prt, 10)
  805. table.insert(Effects, {
  806. prt,
  807. "Cylinder",
  808. delay,
  809. x3,
  810. y3,
  811. z3,
  812. msh
  813. })
  814. end;
  815. };
  816.  
  817. Elect = {
  818. Create = function(cff, x, y, z)
  819. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Deep blue"), "Part", Vector3.new(1, 1, 1))
  820. prt.Anchored = true
  821. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  822. prt.CFrame = CFrame.new(prt.Position)
  823. game:GetService("Debris"):AddItem(prt, 2)
  824. local xval = math.random() / 2
  825. local yval = math.random() / 2
  826. local zval = math.random() / 2
  827. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  828. table.insert(Effects, {
  829. prt,
  830. "Elec",
  831. 0.1,
  832. x,
  833. y,
  834. z,
  835. xval,
  836. yval,
  837. zval
  838. })
  839. end;
  840.  
  841. };
  842.  
  843. Ring = {
  844. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  845. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  846. prt.Anchored = true
  847. prt.CFrame = cframe
  848. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  849. game:GetService("Debris"):AddItem(prt, 10)
  850. table.insert(Effects, {
  851. prt,
  852. "Cylinder",
  853. delay,
  854. x3,
  855. y3,
  856. z3,
  857. msh
  858. })
  859. end;
  860. };
  861.  
  862.  
  863. Wave = {
  864. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  865. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  866. prt.Anchored = true
  867. prt.CFrame = cframe
  868. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  869. game:GetService("Debris"):AddItem(prt, 10)
  870. table.insert(Effects, {
  871. prt,
  872. "Cylinder",
  873. delay,
  874. x3,
  875. y3,
  876. z3,
  877. msh
  878. })
  879. end;
  880. };
  881.  
  882. Break = {
  883. Create = function(brickcolor, cframe, x1, y1, z1)
  884. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  885. prt.Anchored = true
  886. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  887. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  888. local num = math.random(10, 50) / 1000
  889. game:GetService("Debris"):AddItem(prt, 10)
  890. table.insert(Effects, {
  891. prt,
  892. "Shatter",
  893. num,
  894. prt.CFrame,
  895. math.random() - math.random(),
  896. 0,
  897. math.random(50, 100) / 100
  898. })
  899. end;
  900. };
  901.  
  902. Fire = {
  903. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  904. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  905. prt.Anchored = true
  906. prt.CFrame = cframe
  907. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  908. game:GetService("Debris"):AddItem(prt, 10)
  909. table.insert(Effects, {
  910. prt,
  911. "Fire",
  912. delay,
  913. 1,
  914. 1,
  915. 1,
  916. msh
  917. })
  918. end;
  919. };
  920.  
  921. FireWave = {
  922. Create = function(brickcolor, cframe, x1, y1, z1)
  923. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  924. prt.Anchored = true
  925. prt.CFrame = cframe
  926. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  927. local d = Create("Decal"){
  928. Parent = prt,
  929. Texture = "rbxassetid://26356434",
  930. Face = "Top",
  931. }
  932. local d = Create("Decal"){
  933. Parent = prt,
  934. Texture = "rbxassetid://26356434",
  935. Face = "Bottom",
  936. }
  937. game:GetService("Debris"):AddItem(prt, 10)
  938. table.insert(Effects, {
  939. prt,
  940. "FireWave",
  941. 1,
  942. 30,
  943. math.random(400, 600) / 100,
  944. msh
  945. })
  946. end;
  947. };
  948.  
  949. Lightning = {
  950. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  951. local magz = (p0 - p1).magnitude
  952. local curpos = p0
  953. local trz = {
  954. -ofs,
  955. ofs
  956. }
  957. for i = 1, tym do
  958. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  959. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  960. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  961. li.Material = "Neon"
  962. if tym == i then
  963. local magz2 = (curpos - p1).magnitude
  964. li.Size = Vector3.new(th, th, magz2)
  965. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  966. table.insert(Effects, {
  967. li,
  968. "Disappear",
  969. last
  970. })
  971. else
  972. do
  973. do
  974. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  975. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  976. game.Debris:AddItem(li, 10)
  977. table.insert(Effects, {
  978. li,
  979. "Disappear",
  980. last
  981. })
  982. end
  983. end
  984. end
  985. end
  986. end
  987. };
  988.  
  989. EffectTemplate = {
  990.  
  991. };
  992. }
  993.  
  994. local DORARA = false
  995.  
  996. function ORA()
  997. attack = true
  998. for i = 0, 1, 0.2 do
  999. swait()
  1000. PlayAnimationFromTable({
  1001. 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),
  1002. 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),
  1003. 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),
  1004. 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),
  1005. 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),
  1006. 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),
  1007. }, .3, false)
  1008. end
  1009. local DORA = CFuncs.Sound.Create("161823027", Torso, 1, 1)
  1010. Instance.new("DistortionSoundEffect", DORA).Level = .45
  1011. DORA.Looped = true
  1012. local Con1 = HitboxL.Touched:connect(function(hit) Damage(HitboxL, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end)
  1013. local Con2 = HitboxR.Touched:connect(function(hit) Damage(HitboxR, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end)
  1014. while DORARA == true do
  1015. RootPart.Velocity = RootPart.CFrame.lookVector * 5
  1016. for i = 0, 1, 0.7 do
  1017. swait()
  1018. Effects.Elect.Create(HitboxL.CFrame, 4, 4, 4)
  1019. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15)
  1020. PlayAnimationFromTable({
  1021. 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),
  1022. 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),
  1023. 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),
  1024. 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),
  1025. 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),
  1026. 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),
  1027. }, .9, false)
  1028. end
  1029. CFuncs.Sound.Create("200632136", HitboxL, 1, 1)
  1030. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 2, 2, 2, .15)
  1031. RootPart.Velocity = RootPart.CFrame.lookVector * 5
  1032. for i = 0, 1, 0.7 do
  1033. swait()
  1034. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .2)
  1035. PlayAnimationFromTable({
  1036. 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),
  1037. 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),
  1038. 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),
  1039. 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),
  1040. 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),
  1041. 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),
  1042. }, .9, false)
  1043. end
  1044.  
  1045. fat = Instance.new("BindableEvent", script)
  1046. fat.Name = "Heartbeat"
  1047. script:WaitForChild("Heartbeat")
  1048. frame = 0.013333333333333
  1049. tf = 0
  1050. allowframeloss = false
  1051. tossremainder = false
  1052. lastframe = tick()
  1053. script.Heartbeat:Fire()
  1054. local ss = Instance.new("Sound",char)
  1055. ss.Volume = 3
  1056. ss.Looped = true
  1057. ss.Pitch = 1
  1058. ss.SoundId = "rbxassetid://0"
  1059. ss:Play()
  1060. function sbchat(msg,displayname)
  1061. if not displayname then
  1062. displayname = 'bela'
  1063. end
  1064. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  1065. local st = Instance.new('StringValue')
  1066. st.Name = 'SB_Chat'
  1067. st.Value = displayname..'/'..msg
  1068. delay(0.2,function() st.Parent = v end)
  1069. end
  1070. end
  1071.  
  1072. sbchat("ORA ORA ORA",'[Star Platinum]')
  1073. CFuncs.Sound.Create("200632136", HitboxR, 1, 1)
  1074. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 2, 2, 2, .2)
  1075. end
  1076. Con1:disconnect()
  1077. Con2:disconnect()
  1078. DORA:Stop()
  1079. attack = false
  1080. end
  1081.  
  1082. local stoppedParts = {}
  1083.  
  1084.  
  1085. function getAllParts()
  1086. local rtn = {}
  1087.  
  1088. local function recurse(object)
  1089. for q,e in next, object:children() do
  1090. if e:isA'BasePart' and e.Name ~= "HumanoidRootPart" then
  1091. table.insert(rtn, e)
  1092. end
  1093. recurse(e)
  1094. end
  1095. end
  1096.  
  1097. recurse(workspace)
  1098. return rtn
  1099. end
  1100.  
  1101. function stopParts(distance)
  1102. stoppedParts = {}
  1103. for nada, part in next, getAllParts() do
  1104. local dist = (Torso.Position-part.Position).magnitude
  1105. if dist <= distance and part.Name ~='Base' and part.Name ~= 'Baseplate' and not part:isDescendantOf(Torso.Parent) and part.Anchored ~= true then
  1106. table.insert(stoppedParts, part)
  1107. if part.Name ~= "Torso" and part.Anchored ~= true then
  1108. part.Anchored = true
  1109. end
  1110. end
  1111. end
  1112. end
  1113.  
  1114.  
  1115. function freeParts()
  1116. for q,e in next, stoppedParts do
  1117. stoppedParts[q] = nil
  1118. e.Anchored = false
  1119. end
  1120. end
  1121.  
  1122. local effect = Instance.new('ColorCorrectionEffect')
  1123. function TheWorld(Mode)
  1124. if Mode == "Time Start" then
  1125. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15)
  1126. for i = 1,50 do
  1127. if effect.Saturation <= 0 then
  1128. effect.Saturation = effect.Saturation + i/50
  1129. end
  1130. swait(1/30)
  1131. end
  1132. freeParts()
  1133. effect.Saturation = 0
  1134. effect.Contrast = 0
  1135. effect.Parent = nil
  1136. workspace.Gravity = 196.2
  1137. end
  1138. if Mode == "Quick Stop" then
  1139.  
  1140. fat = Instance.new("BindableEvent", script)
  1141. fat.Name = "Heartbeat"
  1142. script:WaitForChild("Heartbeat")
  1143. frame = 0.013333333333333
  1144. tf = 0
  1145. allowframeloss = false
  1146. tossremainder = false
  1147. lastframe = tick()
  1148. script.Heartbeat:Fire()
  1149. local ss = Instance.new("Sound",char)
  1150. ss.Volume = 3
  1151. ss.Looped = true
  1152. ss.Pitch = 1
  1153. ss.SoundId = "rbxassetid://0"
  1154. ss:Play()
  1155. function sbchat(msg,displayname)
  1156. if not displayname then
  1157. displayname = 'bela'
  1158. end
  1159. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  1160. local st = Instance.new('StringValue')
  1161. st.Name = 'SB_Chat'
  1162. st.Value = displayname..'/'..msg
  1163. delay(0.2,function() st.Parent = v end)
  1164. end
  1165. end
  1166.  
  1167. sbchat("THE WORLD!",'[Star Platinum]')
  1168. local zawarudo = CFuncs.Sound.Create("735067173", workspace, 1, 1)
  1169. Instance.new("DistortionSoundEffect", zawarudo).Level = .67
  1170. swait(60)
  1171. Effects.Sphere.Create(BrickColor.new("Institutional white"), RootPart.CFrame, 1, 1, 1, 50, 50, 50, .01)
  1172. effect.Parent = game.Lighting
  1173. for i = 1,50 do
  1174. effect.Saturation = -(i/10)
  1175. swait()
  1176. end
  1177. stopParts(5555)
  1178. end
  1179. end
  1180.  
  1181. Mouse.Button1Down:connect(function()
  1182. if attack == false and DORARA == false then
  1183. DORARA = true
  1184. ORA()
  1185. end
  1186. end)
  1187.  
  1188. Mouse.Button1Up:connect(function()
  1189. if attack == true and DORARA == true then
  1190. DORARA = false
  1191. end
  1192. end)
  1193.  
  1194. Mouse.KeyDown:connect(function(k)
  1195. k = k:lower()
  1196. if attack == false and k == 'g' and TimeStop == false then
  1197. TimeStop = true
  1198. TheWorld("Quick Stop")
  1199. elseif attack == false and k == 'g' and TimeStop == true then
  1200. TimeStop = false
  1201. TheWorld("Time Start")
  1202. end
  1203. end)
  1204.  
  1205. while true do
  1206. swait()
  1207. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  1208. for i, v in pairs(Character:GetChildren()) do
  1209. if v:IsA("Part") then
  1210. v.Material = "SmoothPlastic"
  1211. elseif v:IsA("Accessory") then
  1212. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1213. end
  1214. end
  1215. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1216. velocity = RootPart.Velocity.y
  1217. sine = sine + change
  1218. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1219. if RootPart.Velocity.y > 1 and hit == nil then
  1220. Anim = "Jump"
  1221. if attack == false then
  1222. PlayAnimationFromTable({
  1223. 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),
  1224. 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),
  1225. 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),
  1226. 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),
  1227. 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),
  1228. 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),
  1229. }, .3, false)
  1230. end
  1231. elseif RootPart.Velocity.y < -1 and hit == nil then
  1232. Anim = "Fall"
  1233. if attack == false then
  1234. PlayAnimationFromTable({
  1235. 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),
  1236. 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),
  1237. 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),
  1238. 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),
  1239. 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),
  1240. 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),
  1241. }, .3, false)
  1242. end
  1243. elseif Torsovelocity < 1 and hit ~= nil then
  1244. Anim = "Idle"
  1245. if attack == false then
  1246. change = 1
  1247. PlayAnimationFromTable({
  1248. 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),
  1249. 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),
  1250. 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),
  1251. 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),
  1252. 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),
  1253. 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),
  1254. }, .3, false)
  1255. end
  1256. elseif Torsovelocity > 2 and hit ~= nil then
  1257. Anim = "Walk"
  1258. if attack == false then
  1259. change = 2
  1260. PlayAnimationFromTable({
  1261. 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),
  1262. 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),
  1263. 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),
  1264. 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),
  1265. 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)),
  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. }, .3, false)
  1268. end
  1269. end
  1270. if 0 < #Effects then
  1271. for e = 1, #Effects do
  1272. if Effects[e] ~= nil then
  1273. local Thing = Effects[e]
  1274. if Thing ~= nil then
  1275. local Part = Thing[1]
  1276. local Mode = Thing[2]
  1277. local Delay = Thing[3]
  1278. local IncX = Thing[4]
  1279. local IncY = Thing[5]
  1280. local IncZ = Thing[6]
  1281. if Thing[2] == "Shoot" then
  1282. local Look = Thing[1]
  1283. local move = 5
  1284. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1285. if Thing[10] ~= nil then
  1286. da = pos
  1287. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1288. cfa = CFrame.new(Thing[4], pos)
  1289. tehCF = cfa:lerp(cf2, 0.2)
  1290. Thing[1] = tehCF.lookVector
  1291. end
  1292. local mag = (Thing[4] - pos).magnitude
  1293. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1294. 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)
  1295. Thing[4] = Thing[4] + Look * move
  1296. Thing[3] = Thing[3] - 1
  1297. if 2 < Thing[5] then
  1298. Thing[5] = Thing[5] - 0.3
  1299. Thing[6] = Thing[6] - 0.3
  1300. end
  1301. if hit ~= nil then
  1302. Thing[3] = 0
  1303. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1304. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1305. ref.Anchored = true
  1306. ref.CFrame = CFrame.new(pos)
  1307. Effects.Block.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
  1308. Effects.Sphere.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1309. game:GetService("Debris"):AddItem(ref, 1)
  1310. end
  1311. if Thing[3] <= 0 then
  1312. table.remove(Effects, e)
  1313. end
  1314. end
  1315. do
  1316. do
  1317. if Thing[2] == "FireWave" then
  1318. if Thing[3] <= Thing[4] then
  1319. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1320. Thing[3] = Thing[3] + 1
  1321. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1322. else
  1323. Part.Parent = nil
  1324. table.remove(Effects, e)
  1325. end
  1326. end
  1327. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1328. if Thing[1].Transparency <= 1 then
  1329. if Thing[2] == "Block1" then
  1330. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1331. Mesh = Thing[7]
  1332. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1333. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1334. else
  1335. if Thing[2] == "Block2" then
  1336. Thing[1].CFrame = Thing[1].CFrame
  1337. Mesh = Thing[7]
  1338. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1339. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1340. else
  1341. if Thing[2] == "Fire" then
  1342. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1343. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1344. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1345. else
  1346. if Thing[2] == "Cylinder" then
  1347. Mesh = Thing[7]
  1348. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1349. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1350. else
  1351. if Thing[2] == "Blood" then
  1352. Mesh = Thing[7]
  1353. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1354. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1355. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1356. else
  1357. if Thing[2] == "Elec" then
  1358. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  1359. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1360. else
  1361. if Thing[2] == "Disappear" then
  1362. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1363. end
  1364. end
  1365. end
  1366. end
  1367. end
  1368. end
  1369. end
  1370. else
  1371. Part.Parent = nil
  1372. table.remove(Effects, e)
  1373. end
  1374. end
  1375. end
  1376. end
  1377. end
  1378. end
  1379. end
  1380. end
  1381. end
Advertisement
Add Comment
Please, Sign In to add comment