Advertisement
ZaGodlyNoob

Untitled

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