theScripter123123

Untitled

May 8th, 2020
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 99.70 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros | Translated to FE by Phantom Ghost")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. wait(1 / 60)
  85. p = owner
  86. char = p.Character
  87. torso = char.Torso
  88. neck = char.Torso.Neck
  89. hum = char.Humanoid
  90. hum.MaxHealth = 75000
  91. wait()
  92. hum.Health =hum.MaxHealth
  93. char.Head.face.Texture = "rbxassetid://405587215"
  94.  
  95. function startup()
  96. coroutine.resume(coroutine.create(function()
  97. local m = Instance.new("Model", char)
  98. m.Name = "* C"
  99. local chat = Instance.new("Part", m)
  100. chat.TopSurface = "Smooth"
  101. chat.BottomSurface = "Smooth"
  102. chat.Name = "Head"
  103. chat.FormFactor = "Custom"
  104. chat.Size = Vector3.new(0.05, 0.05, 0.1)
  105. chat.Transparency = 0.9
  106. chat.CanCollide = false
  107. local Weld7 = Instance.new("Weld", char)
  108. Weld7.Part0 = char.Head
  109. Weld7.Part1 = chat
  110. Weld7.C1 = CFrame.new(0, -2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  111. local cy7 = Instance.new("BlockMesh", chat)
  112. local h = Instance.new("Humanoid", m)
  113. h.MaxHealth = 0
  114. m.Name = "Star Platinum"
  115. end))
  116. end
  117.  
  118. z = Instance.new("Sound", torso)
  119. z.SoundId = "rbxassetid://264396581" -- Put Music ID Here.
  120. z.Looped = true
  121. z.Volume = 1
  122. wait(.1)
  123. z:Play()
  124.  
  125. char["Body Colors"].HeadColor = BrickColor.new("Pastel Blue")
  126. char["Body Colors"].TorsoColor = BrickColor.new("Pastel Blue")
  127. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel Blue")
  128. char["Body Colors"].RightArmColor = BrickColor.new("Pastel Blue")
  129. char["Body Colors"].LeftLegColor = BrickColor.new("Pastel Blue")
  130. char["Body Colors"].RightLegColor = BrickColor.new("Pastel Blue")
  131.  
  132. shirt = Instance.new("Shirt", char)
  133. shirt.Name = "Shirt"
  134. pants = Instance.new("Pants", char)
  135. pants.Name = "Pants"
  136. char.Shirt.ShirtTemplate = "rbxassetid://496506720"
  137. char.Pants.PantsTemplate = "rbxassetid://496512137"
  138.  
  139. Hat = Instance.new("Model")
  140. Hat.Parent = char
  141. Hat.Name = "Hat"
  142. rh = Instance.new("Part")
  143. rh.Parent = Hat
  144. rh.BrickColor = BrickColor.new("Really black")
  145. rh.Locked = true
  146. rh.CanCollide = false
  147. mesh = Instance.new("SpecialMesh")
  148. rh.formFactor = "Symmetric"
  149. mesh.MeshType = "FileMesh"
  150. mesh.MeshId = "rbxassetid://439736904"
  151. mesh.Parent = rh
  152. local weld = Instance.new("Weld")
  153. weld.Parent = rh
  154. weld.Part0 = rh
  155. weld.Part1 =char.Head
  156. weld.C0 = CFrame.new(0, -0.5, 0.5)*CFrame.Angles(0, 3, 0)
  157. mesh.Scale = Vector3.new(0.002,0.002, 0.002)
  158.  
  159. Effects = { }
  160. local Player = owner
  161. local Character = Player.Character
  162. local Humanoid = Character.Humanoid
  163. Humanoid.WalkSpeed = 20
  164. local Mouse = Player:GetMouse()
  165. local LeftArm = Character["Left Arm"]
  166. local RightArm = Character["Right Arm"]
  167. local LeftLeg = Character["Left Leg"]
  168. local RightLeg = Character["Right Leg"]
  169. local Head = Character.Head
  170. local Torso = Character.Torso
  171. local Camera = game.Workspace.CurrentCamera
  172. local RootPart = Character.HumanoidRootPart
  173. local RootJoint = RootPart.RootJoint
  174. local attack = false
  175. local Anim = 'Idle'
  176. local attacktype = 1
  177. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  178. local velocity = RootPart.Velocity.y
  179. local sine = 0
  180. local change = 1
  181. local Create = LoadLibrary("RbxUtility").Create
  182. local TimeStop = false
  183.  
  184. local m = Create("Model"){
  185. Parent = Character,
  186. Name = "WeaponModel",
  187. }
  188.  
  189. Humanoid.Animator.Parent = nil
  190. Character.Animate.Parent = nil
  191.  
  192. local newMotor = function(part0, part1, c0, c1)
  193. local w = Create('Motor'){
  194. Parent = part0,
  195. Part0 = part0,
  196. Part1 = part1,
  197. C0 = c0,
  198. C1 = c1,
  199. }
  200. return w
  201. end
  202.  
  203. function clerp(a, b, t)
  204. return a:lerp(b, t)
  205. end
  206.  
  207. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  208. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  209.  
  210. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  211. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  212. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  213. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  214. RootJoint.C1 = CFrame.new(0, 0, 0)
  215. RootJoint.C0 = CFrame.new(0, 0, 0)
  216. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  217. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  218.  
  219. local rarmc1 = RW.C1
  220. local larmc1 = LW.C1
  221. local rlegc1 = RH.C1
  222. local llegc1 = LH.C1
  223.  
  224. local resetc1 = false
  225.  
  226. function PlayAnimationFromTable(table, speed, bool)
  227. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  228. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  229. RW.C0 = clerp(RW.C0, table[3], speed)
  230. LW.C0 = clerp(LW.C0, table[4], speed)
  231. RH.C0 = clerp(RH.C0, table[5], speed)
  232. LH.C0 = clerp(LH.C0, table[6], speed)
  233. if bool == true then
  234. if resetc1 == false then
  235. resetc1 = true
  236. RootJoint.C1 = RootJoint.C1
  237. Torso.Neck.C1 = Torso.Neck.C1
  238. RW.C1 = rarmc1
  239. LW.C1 = larmc1
  240. RH.C1 = rlegc1
  241. LH.C1 = llegc1
  242. end
  243. end
  244. end
  245.  
  246. ArtificialHB = Create("BindableEvent", script){
  247. Parent = script,
  248. Name = "Heartbeat",
  249. }
  250.  
  251. script:WaitForChild("Heartbeat")
  252.  
  253. frame = 1 / 35
  254. tf = 0
  255. allowframeloss = false
  256. tossremainder = false
  257. lastframe = tick()
  258. script.Heartbeat:Fire()
  259.  
  260. game:GetService("RunService").Heartbeat:connect(function(s, p)
  261. tf = tf + s
  262. if tf >= frame then
  263. if allowframeloss then
  264. script.Heartbeat:Fire()
  265. lastframe = tick()
  266. else
  267. for i = 1, math.floor(tf / frame) do
  268. script.Heartbeat:Fire()
  269. end
  270. lastframe = tick()
  271. end
  272. if tossremainder then
  273. tf = 0
  274. else
  275. tf = tf - frame * math.floor(tf / frame)
  276. end
  277. end
  278. end)
  279.  
  280. function swait(num)
  281. if num == 0 or num == nil then
  282. ArtificialHB.Event:wait()
  283. else
  284. for i = 0, num do
  285. ArtificialHB.Event:wait()
  286. end
  287. end
  288. end
  289.  
  290. function RemoveOutlines(part)
  291. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  292. end
  293.  
  294. CFuncs = {
  295. Part = {
  296. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  297. local Part = Create("Part"){
  298. Parent = Parent,
  299. Reflectance = Reflectance,
  300. Transparency = Transparency,
  301. CanCollide = false,
  302. Locked = true,
  303. BrickColor = BrickColor.new(tostring(BColor)),
  304. Name = Name,
  305. Size = Size,
  306. Material = Material,
  307. }
  308. RemoveOutlines(Part)
  309. return Part
  310. end;
  311. };
  312.  
  313. Mesh = {
  314. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  315. local Msh = Create(Mesh){
  316. Parent = Part,
  317. Offset = OffSet,
  318. Scale = Scale,
  319. }
  320. if Mesh == "SpecialMesh" then
  321. Msh.MeshType = MeshType
  322. Msh.MeshId = MeshId
  323. end
  324. return Msh
  325. end;
  326. };
  327.  
  328. Weld = {
  329. Create = function(Parent, Part0, Part1, C0, C1)
  330. local Weld = Create("Weld"){
  331. Parent = Parent,
  332. Part0 = Part0,
  333. Part1 = Part1,
  334. C0 = C0,
  335. C1 = C1,
  336. }
  337. return Weld
  338. end;
  339. };
  340.  
  341. Sound = {
  342. Create = function(id, par, vol, pit)
  343. local Sound = Create("Sound"){
  344. Volume = vol,
  345. Pitch = pit or 1,
  346. SoundId = "rbxassetid://" .. id,
  347. Parent = par or workspace,
  348. }
  349. Sound:play()
  350. return Sound
  351. end;
  352. };
  353.  
  354. Decal = {
  355. Create = function(Color, Texture, Transparency, Name, Parent)
  356. local Decal = Create("Decal"){
  357. Color3 = Color,
  358. Texture = "rbxassetid://" .. Texture,
  359. Transparency = Transparency,
  360. Name = Name,
  361. Parent = Parent,
  362. }
  363. return Decal
  364. end;
  365. };
  366.  
  367. BillboardGui = {
  368. Create = function(Parent, Image, Position, Size)
  369. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  370. BillPar.CFrame = CFrame.new(Position)
  371. local Bill = Create("BillboardGui"){
  372. Parent = BillPar,
  373. Adornee = BillPar,
  374. Size = UDim2.new(1, 0, 1, 0),
  375. SizeOffset = Vector2.new(Size, Size),
  376. }
  377. local d = Create("ImageLabel", Bill){
  378. Parent = Bill,
  379. BackgroundTransparency = 1,
  380. Size = UDim2.new(1, 0, 1, 0),
  381. Image = "rbxassetid://" .. Image,
  382. }
  383. return BillPar
  384. end
  385. };
  386.  
  387. ParticleEmitter = {
  388. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  389. local Particle = Create("ParticleEmitter"){
  390. Parent = Parent,
  391. Color = ColorSequence.new(Color1, Color2),
  392. LightEmission = LightEmission,
  393. Size = Size,
  394. Texture = Texture,
  395. Transparency = Transparency,
  396. ZOffset = ZOffset,
  397. Acceleration = Accel,
  398. Drag = Drag,
  399. LockedToPart = LockedToPart,
  400. VelocityInheritance = VelocityInheritance,
  401. EmissionDirection = EmissionDirection,
  402. Enabled = Enabled,
  403. Lifetime = LifeTime,
  404. Rate = Rate,
  405. Rotation = Rotation,
  406. RotSpeed = RotSpeed,
  407. Speed = Speed,
  408. VelocitySpread = VelocitySpread,
  409. }
  410. return Particle
  411. end;
  412. };
  413.  
  414. CreateTemplate = {
  415.  
  416. };
  417. }
  418.  
  419. function rayCast(Position, Direction, Range, Ignore)
  420. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  421. end
  422.  
  423. function FindNearestTorso(Position, Distance, SinglePlayer)
  424. if SinglePlayer then
  425. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  426. end
  427. local List = {}
  428. for i, v in pairs(workspace:GetChildren()) do
  429. if v:IsA("Model") then
  430. if v:findFirstChild("Torso") then
  431. if v ~= Character then
  432. if (v.Torso.Position - Position).magnitude <= Distance then
  433. table.insert(List, v)
  434. end
  435. end
  436. end
  437. end
  438. end
  439. return List
  440. end
  441.  
  442. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  443. if hit.Parent == nil then
  444. return
  445. end
  446. local h = hit.Parent:FindFirstChild("Humanoid")
  447. for _, v in pairs(hit.Parent:children()) do
  448. if v:IsA("Humanoid") then
  449. h = v
  450. end
  451. end
  452. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  453. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  454. if hit.Parent.DebounceHit.Value == true then
  455. return
  456. end
  457. end
  458. local c = Create("ObjectValue"){
  459. Name = "creator",
  460. Value = game:service("Players").LocalPlayer,
  461. Parent = h,
  462. }
  463. game:GetService("Debris"):AddItem(c, .5)
  464. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  465. local Damage = math.random(minim, maxim)
  466. local blocked = false
  467. local block = hit.Parent:findFirstChild("Block")
  468. if block ~= nil then
  469. if block.className == "IntValue" then
  470. if block.Value > 0 then
  471. blocked = true
  472. block.Value = block.Value - 1
  473. print(block.Value)
  474. end
  475. end
  476. end
  477. if TimeStop == false then
  478. h.Health = h.Health - Damage
  479. 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)
  480. elseif TimeStop == true then
  481. repeat wait() until TimeStop == false
  482. h.Health = h.Health - (Damage / 2)
  483. 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)
  484. end
  485. if Type == "Knockdown" then
  486. local hum = hit.Parent.Humanoid
  487. hum.PlatformStand = true
  488. coroutine.resume(coroutine.create(function(HHumanoid)
  489. swait(1)
  490. HHumanoid.PlatformStand = false
  491. end), hum)
  492. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  493. local bodvol = Create("BodyVelocity"){
  494. velocity = angle * knockback,
  495. P = 5000,
  496. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  497. Parent = hit,
  498. }
  499. local rl = Create("BodyAngularVelocity"){
  500. P = 3000,
  501. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  502. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  503. Parent = hit,
  504. }
  505. game:GetService("Debris"):AddItem(bodvol, .5)
  506. game:GetService("Debris"):AddItem(rl, .5)
  507. elseif Type == "Normal" then
  508. local vp = Create("BodyVelocity"){
  509. P = 500,
  510. maxForce = Vector3.new(math.huge, 0, math.huge),
  511. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  512. }
  513. if knockback > 0 then
  514. vp.Parent = hit.Parent.Torso
  515. end
  516. game:GetService("Debris"):AddItem(vp, .5)
  517. elseif Type == "Up" then
  518. local bodyVelocity = Create("BodyVelocity"){
  519. velocity = Vector3.new(0, 20, 0),
  520. P = 5000,
  521. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  522. Parent = hit,
  523. }
  524. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  525. elseif Type == "DarkUp" then
  526. coroutine.resume(coroutine.create(function()
  527. for i = 0, 1, 0.1 do
  528. swait()
  529. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  530. end
  531. end))
  532. local bodyVelocity = Create("BodyVelocity"){
  533. velocity = Vector3.new(0, 20, 0),
  534. P = 5000,
  535. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  536. Parent = hit,
  537. }
  538. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  539. elseif Type == "Snare" then
  540. local bp = Create("BodyPosition"){
  541. P = 2000,
  542. D = 100,
  543. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  544. position = hit.Parent.Torso.Position,
  545. Parent = hit.Parent.Torso,
  546. }
  547. game:GetService("Debris"):AddItem(bp, 1)
  548. elseif Type == "Freeze" then
  549. local BodPos = Create("BodyPosition"){
  550. P = 50000,
  551. D = 1000,
  552. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  553. position = hit.Parent.Torso.Position,
  554. Parent = hit.Parent.Torso,
  555. }
  556. local BodGy = Create("BodyGyro") {
  557. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  558. P = 20e+003,
  559. Parent = hit.Parent.Torso,
  560. cframe = hit.Parent.Torso.CFrame,
  561. }
  562. hit.Parent.Torso.Anchored = true
  563. coroutine.resume(coroutine.create(function(Part)
  564. swait(1.5)
  565. Part.Anchored = false
  566. end), hit.Parent.Torso)
  567. game:GetService("Debris"):AddItem(BodPos, 3)
  568. game:GetService("Debris"):AddItem(BodGy, 3)
  569. end
  570. local debounce = Create("BoolValue"){
  571. Name = "DebounceHit",
  572. Parent = hit.Parent,
  573. Value = true,
  574. }
  575. game:GetService("Debris"):AddItem(debounce, Delay)
  576. c = Create("ObjectValue"){
  577. Name = "creator",
  578. Value = Player,
  579. Parent = h,
  580. }
  581. game:GetService("Debris"):AddItem(c, .5)
  582. end
  583. end
  584.  
  585. function ShowDamage(Pos, Text, Time, Color)
  586. local Rate = (1 / 30)
  587. local Pos = (Pos or Vector3.new(0, 0, 0))
  588. local Text = (Text or "")
  589. local Time = (Time or 2)
  590. local Color = (Color or Color3.new(1, 0, 1))
  591. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  592. EffectPart.Anchored = true
  593. local BillboardGui = Create("BillboardGui"){
  594. Size = UDim2.new(3, 0, 3, 0),
  595. Adornee = EffectPart,
  596. Parent = EffectPart,
  597. }
  598. local TextLabel = Create("TextLabel"){
  599. BackgroundTransparency = 1,
  600. Size = UDim2.new(1, 0, 1, 0),
  601. Text = Text,
  602. Font = "SciFi",
  603. TextColor3 = Color,
  604. TextScaled = true,
  605. Parent = BillboardGui,
  606. }
  607. game.Debris:AddItem(EffectPart, (Time))
  608. EffectPart.Parent = game:GetService("Workspace")
  609. delay(0, function()
  610. local Frames = (Time / Rate)
  611. for Frame = 1, Frames do
  612. wait(Rate)
  613. local Percent = (Frame / Frames)
  614. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  615. TextLabel.TextTransparency = Percent
  616. end
  617. if EffectPart and EffectPart.Parent then
  618. EffectPart:Destroy()
  619. end
  620. end)
  621. end
  622.  
  623. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  624. for _, c in pairs(workspace:children()) do
  625. local hum = c:findFirstChild("Humanoid")
  626. if hum ~= nil then
  627. local head = c:findFirstChild("Torso")
  628. if head ~= nil then
  629. local targ = head.Position - Part.Position
  630. local mag = targ.magnitude
  631. if mag <= Magnitude and c.Name ~= Player.Name then
  632. for i = 1, 10 do
  633. Effects.Elect.Create(head.CFrame, 10, 10, 10)
  634. end
  635. CFuncs.Sound.Create("0", head, 1, 1)
  636. Effects.Sphere.Create(BrickColor.new("Deep blue"), head.CFrame, .5, .5, .5, .5, .5, .5, .05)
  637. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch)
  638. end
  639. end
  640. end
  641. end
  642. end
  643.  
  644. HandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleR", Vector3.new(0.403949469, 0.452220112, 0.425030977))
  645. 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))
  646. HitboxR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxR", Vector3.new(1.00394952, 1.05222011, 1.02503109))
  647. 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))
  648. HandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleL", Vector3.new(0.403949469, 0.452220112, 0.425030977))
  649. 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))
  650. HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxL", Vector3.new(1.00394952, 1.05222011, 1.02503109))
  651. 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))
  652. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  653. sref.Anchored = true
  654.  
  655. EffectModel = Create("Model"){
  656. Parent = Character,
  657. Name = "Effects",
  658. }
  659.  
  660. Effects = {
  661. Block = {
  662. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  663. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  664. prt.Anchored = true
  665. prt.CFrame = cframe
  666. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  667. game:GetService("Debris"):AddItem(prt, 10)
  668. if Type == 1 or Type == nil then
  669. table.insert(Effects, {
  670. prt,
  671. "Block1",
  672. delay,
  673. x3,
  674. y3,
  675. z3,
  676. msh
  677. })
  678. elseif Type == 2 then
  679. table.insert(Effects, {
  680. prt,
  681. "Block2",
  682. delay,
  683. x3,
  684. y3,
  685. z3,
  686. msh
  687. })
  688. end
  689. end;
  690. };
  691.  
  692. Cylinder = {
  693. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  694. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  695. prt.Anchored = true
  696. prt.CFrame = cframe
  697. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  698. game:GetService("Debris"):AddItem(prt, 2)
  699. table.insert(Effects, {
  700. prt,
  701. "Cylinder",
  702. delay,
  703. x3,
  704. y3,
  705. z3,
  706. msh
  707. })
  708. end;
  709. };
  710.  
  711. Head = {
  712. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  713. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  714. prt.Anchored = true
  715. prt.CFrame = cframe
  716. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  717. game:GetService("Debris"):AddItem(prt, 10)
  718. table.insert(Effects, {
  719. prt,
  720. "Cylinder",
  721. delay,
  722. x3,
  723. y3,
  724. z3,
  725. msh
  726. })
  727. end;
  728. };
  729.  
  730. Sphere = {
  731. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  732. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  733. prt.Anchored = true
  734. prt.CFrame = cframe
  735. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  736. game:GetService("Debris"):AddItem(prt, 10)
  737. table.insert(Effects, {
  738. prt,
  739. "Cylinder",
  740. delay,
  741. x3,
  742. y3,
  743. z3,
  744. msh
  745. })
  746. end;
  747. };
  748.  
  749. Elect = {
  750. Create = function(cff, x, y, z)
  751. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Deep blue"), "Part", Vector3.new(1, 1, 1))
  752. prt.Anchored = true
  753. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  754. prt.CFrame = CFrame.new(prt.Position)
  755. game:GetService("Debris"):AddItem(prt, 2)
  756. local xval = math.random() / 2
  757. local yval = math.random() / 2
  758. local zval = math.random() / 2
  759. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  760. table.insert(Effects, {
  761. prt,
  762. "Elec",
  763. 0.1,
  764. x,
  765. y,
  766. z,
  767. xval,
  768. yval,
  769. zval
  770. })
  771. end;
  772.  
  773. };
  774.  
  775. Ring = {
  776. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  777. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  778. prt.Anchored = true
  779. prt.CFrame = cframe
  780. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  781. game:GetService("Debris"):AddItem(prt, 10)
  782. table.insert(Effects, {
  783. prt,
  784. "Cylinder",
  785. delay,
  786. x3,
  787. y3,
  788. z3,
  789. msh
  790. })
  791. end;
  792. };
  793.  
  794.  
  795. Wave = {
  796. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  797. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  798. prt.Anchored = true
  799. prt.CFrame = cframe
  800. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  801. game:GetService("Debris"):AddItem(prt, 10)
  802. table.insert(Effects, {
  803. prt,
  804. "Cylinder",
  805. delay,
  806. x3,
  807. y3,
  808. z3,
  809. msh
  810. })
  811. end;
  812. };
  813.  
  814. Break = {
  815. Create = function(brickcolor, cframe, x1, y1, z1)
  816. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  817. prt.Anchored = true
  818. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  819. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  820. local num = math.random(10, 50) / 1000
  821. game:GetService("Debris"):AddItem(prt, 10)
  822. table.insert(Effects, {
  823. prt,
  824. "Shatter",
  825. num,
  826. prt.CFrame,
  827. math.random() - math.random(),
  828. 0,
  829. math.random(50, 100) / 100
  830. })
  831. end;
  832. };
  833.  
  834. Fire = {
  835. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  836. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  837. prt.Anchored = true
  838. prt.CFrame = cframe
  839. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  840. game:GetService("Debris"):AddItem(prt, 10)
  841. table.insert(Effects, {
  842. prt,
  843. "Fire",
  844. delay,
  845. 1,
  846. 1,
  847. 1,
  848. msh
  849. })
  850. end;
  851. };
  852.  
  853. FireWave = {
  854. Create = function(brickcolor, cframe, x1, y1, z1)
  855. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  856. prt.Anchored = true
  857. prt.CFrame = cframe
  858. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  859. local d = Create("Decal"){
  860. Parent = prt,
  861. Texture = "rbxassetid://26356434",
  862. Face = "Top",
  863. }
  864. local d = Create("Decal"){
  865. Parent = prt,
  866. Texture = "rbxassetid://26356434",
  867. Face = "Bottom",
  868. }
  869. game:GetService("Debris"):AddItem(prt, 10)
  870. table.insert(Effects, {
  871. prt,
  872. "FireWave",
  873. 1,
  874. 30,
  875. math.random(400, 600) / 100,
  876. msh
  877. })
  878. end;
  879. };
  880.  
  881. Lightning = {
  882. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  883. local magz = (p0 - p1).magnitude
  884. local curpos = p0
  885. local trz = {
  886. -ofs,
  887. ofs
  888. }
  889. for i = 1, tym do
  890. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  891. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  892. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  893. li.Material = "Neon"
  894. if tym == i then
  895. local magz2 = (curpos - p1).magnitude
  896. li.Size = Vector3.new(th, th, magz2)
  897. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  898. table.insert(Effects, {
  899. li,
  900. "Disappear",
  901. last
  902. })
  903. else
  904. do
  905. do
  906. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  907. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  908. game.Debris:AddItem(li, 10)
  909. table.insert(Effects, {
  910. li,
  911. "Disappear",
  912. last
  913. })
  914. end
  915. end
  916. end
  917. end
  918. end
  919. };
  920.  
  921. EffectTemplate = {
  922.  
  923. };
  924. }
  925.  
  926. local DORARA = false
  927.  
  928. function ORA()
  929. attack = true
  930. for i = 0, 1, 0.2 do
  931. swait()
  932. PlayAnimationFromTable({
  933. 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),
  934. 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),
  935. 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),
  936. 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),
  937. 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),
  938. 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),
  939. }, .3, false)
  940. end
  941. local DORA = CFuncs.Sound.Create("161823027", Torso, 1, 1)
  942. Instance.new("DistortionSoundEffect", DORA).Level = .45
  943. DORA.Looped = true
  944. local Con1 = HitboxL.Touched:connect(function(hit) Damage(HitboxL, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end)
  945. local Con2 = HitboxR.Touched:connect(function(hit) Damage(HitboxR, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end)
  946. while DORARA == true do
  947. RootPart.Velocity = RootPart.CFrame.lookVector * 5
  948. for i = 0, 1, 0.7 do
  949. swait()
  950. Effects.Elect.Create(HitboxL.CFrame, 4, 4, 4)
  951. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15)
  952. PlayAnimationFromTable({
  953. 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),
  954. 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),
  955. 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),
  956. 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),
  957. 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),
  958. 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),
  959. }, .9, false)
  960. end
  961. CFuncs.Sound.Create("200632136", HitboxL, 1, 1)
  962. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 2, 2, 2, .15)
  963. RootPart.Velocity = RootPart.CFrame.lookVector * 5
  964. for i = 0, 1, 0.7 do
  965. swait()
  966. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .2)
  967. PlayAnimationFromTable({
  968. 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),
  969. 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),
  970. 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),
  971. 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),
  972. 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),
  973. 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),
  974. }, .9, false)
  975. end
  976.  
  977. fat = Instance.new("BindableEvent", script)
  978. fat.Name = "Heartbeat"
  979. script:WaitForChild("Heartbeat")
  980. frame = 0.013333333333333
  981. tf = 0
  982. allowframeloss = false
  983. tossremainder = false
  984. lastframe = tick()
  985. script.Heartbeat:Fire()
  986. local ss = Instance.new("Sound",char)
  987. ss.Volume = 3
  988. ss.Looped = true
  989. ss.Pitch = 1
  990. ss.SoundId = "rbxassetid://0"
  991. ss:Play()
  992. function sbchat(msg,displayname)
  993. if not displayname then
  994. displayname = 'bela'
  995. end
  996. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  997. local st = Instance.new('StringValue')
  998. st.Name = 'SB_Chat'
  999. st.Value = displayname..'/'..msg
  1000. delay(0.2,function() st.Parent = v end)
  1001. end
  1002. end
  1003.  
  1004. sbchat("ORA ORA ORA",'[Star Platinum]')
  1005. CFuncs.Sound.Create("200632136", HitboxR, 1, 1)
  1006. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 2, 2, 2, .2)
  1007. end
  1008. Con1:disconnect()
  1009. Con2:disconnect()
  1010. DORA:Stop()
  1011. attack = false
  1012. end
  1013.  
  1014. local stoppedParts = {}
  1015.  
  1016.  
  1017. function getAllParts()
  1018. local rtn = {}
  1019.  
  1020. local function recurse(object)
  1021. for q,e in next, object:children() do
  1022. if e:isA'BasePart' and e.Name ~= "HumanoidRootPart" then
  1023. table.insert(rtn, e)
  1024. end
  1025. recurse(e)
  1026. end
  1027. end
  1028.  
  1029. recurse(workspace)
  1030. return rtn
  1031. end
  1032.  
  1033. function stopParts(distance)
  1034. stoppedParts = {}
  1035. for nada, part in next, getAllParts() do
  1036. local dist = (Torso.Position-part.Position).magnitude
  1037. if dist <= distance and part.Name ~='Base' and part.Name ~= 'Baseplate' and not part:isDescendantOf(Torso.Parent) and part.Anchored ~= true then
  1038. table.insert(stoppedParts, part)
  1039. if part.Name ~= "Torso" and part.Anchored ~= true then
  1040. part.Anchored = true
  1041. end
  1042. end
  1043. end
  1044. end
  1045.  
  1046.  
  1047. function freeParts()
  1048. for q,e in next, stoppedParts do
  1049. stoppedParts[q] = nil
  1050. e.Anchored = false
  1051. end
  1052. end
  1053.  
  1054. local effect = Instance.new('ColorCorrectionEffect')
  1055. function TheWorld(Mode)
  1056. if Mode == "Time Start" then
  1057. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15)
  1058. for i = 1,50 do
  1059. if effect.Saturation <= 0 then
  1060. effect.Saturation = effect.Saturation + i/50
  1061. end
  1062. swait(1/30)
  1063. end
  1064. freeParts()
  1065. effect.Saturation = 0
  1066. effect.Contrast = 0
  1067. effect.Parent = nil
  1068. workspace.Gravity = 196.2
  1069. end
  1070. if Mode == "Quick Stop" then
  1071.  
  1072. fat = Instance.new("BindableEvent", script)
  1073. fat.Name = "Heartbeat"
  1074. script:WaitForChild("Heartbeat")
  1075. frame = 0.013333333333333
  1076. tf = 0
  1077. allowframeloss = false
  1078. tossremainder = false
  1079. lastframe = tick()
  1080. script.Heartbeat:Fire()
  1081. local ss = Instance.new("Sound",char)
  1082. ss.Volume = 3
  1083. ss.Looped = true
  1084. ss.Pitch = 1
  1085. ss.SoundId = "rbxassetid://0"
  1086. ss:Play()
  1087. function sbchat(msg,displayname)
  1088. if not displayname then
  1089. displayname = 'bela'
  1090. end
  1091. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  1092. local st = Instance.new('StringValue')
  1093. st.Name = 'SB_Chat'
  1094. st.Value = displayname..'/'..msg
  1095. delay(0.2,function() st.Parent = v end)
  1096. end
  1097. end
  1098.  
  1099. sbchat("THE WORLD!",'[Star Platinum]')
  1100. local zawarudo = CFuncs.Sound.Create("735067173", workspace, 1, 1)
  1101. Instance.new("DistortionSoundEffect", zawarudo).Level = .67
  1102. swait(60)
  1103. Effects.Sphere.Create(BrickColor.new("Institutional white"), RootPart.CFrame, 1, 1, 1, 50, 50, 50, .01)
  1104. effect.Parent = game.Lighting
  1105. for i = 1,50 do
  1106. effect.Saturation = -(i/10)
  1107. swait()
  1108. end
  1109. stopParts(5555)
  1110. end
  1111. end
  1112.  
  1113. Mouse.Button1Down:connect(function()
  1114. if attack == false and DORARA == false then
  1115. DORARA = true
  1116. ORA()
  1117. end
  1118. end)
  1119.  
  1120. Mouse.Button1Up:connect(function()
  1121. if attack == true and DORARA == true then
  1122. DORARA = false
  1123. end
  1124. end)
  1125.  
  1126. Mouse.KeyDown:connect(function(k)
  1127. k = k:lower()
  1128. if attack == false and k == 'g' and TimeStop == false then
  1129. TimeStop = true
  1130. TheWorld("Quick Stop")
  1131. elseif attack == false and k == 'g' and TimeStop == true then
  1132. TimeStop = false
  1133. TheWorld("Time Start")
  1134. end
  1135. end)
  1136.  
  1137. while true do
  1138. swait()
  1139. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  1140. for i, v in pairs(Character:GetChildren()) do
  1141. if v:IsA("Part") then
  1142. v.Material = "SmoothPlastic"
  1143. elseif v:IsA("Accessory") then
  1144. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1145. end
  1146. end
  1147. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1148. velocity = RootPart.Velocity.y
  1149. sine = sine + change
  1150. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1151. if RootPart.Velocity.y > 1 and hit == nil then
  1152. Anim = "Jump"
  1153. if attack == false then
  1154. PlayAnimationFromTable({
  1155. 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),
  1156. 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),
  1157. 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),
  1158. 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),
  1159. 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),
  1160. 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),
  1161. }, .3, false)
  1162. end
  1163. elseif RootPart.Velocity.y < -1 and hit == nil then
  1164. Anim = "Fall"
  1165. if attack == false then
  1166. PlayAnimationFromTable({
  1167. 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),
  1168. 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),
  1169. 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),
  1170. 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),
  1171. 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),
  1172. 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),
  1173. }, .3, false)
  1174. end
  1175. elseif Torsovelocity < 1 and hit ~= nil then
  1176. Anim = "Idle"
  1177. if attack == false then
  1178. change = 1
  1179. PlayAnimationFromTable({
  1180. 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),
  1181. 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),
  1182. 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),
  1183. 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),
  1184. 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),
  1185. 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),
  1186. }, .3, false)
  1187. end
  1188. elseif Torsovelocity > 2 and hit ~= nil then
  1189. Anim = "Walk"
  1190. if attack == false then
  1191. change = 2
  1192. PlayAnimationFromTable({
  1193. 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),
  1194. 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),
  1195. 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),
  1196. 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),
  1197. 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)),
  1198. 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)),
  1199. }, .3, false)
  1200. end
  1201. end
  1202. if 0 < #Effects then
  1203. for e = 1, #Effects do
  1204. if Effects[e] ~= nil then
  1205. local Thing = Effects[e]
  1206. if Thing ~= nil then
  1207. local Part = Thing[1]
  1208. local Mode = Thing[2]
  1209. local Delay = Thing[3]
  1210. local IncX = Thing[4]
  1211. local IncY = Thing[5]
  1212. local IncZ = Thing[6]
  1213. if Thing[2] == "Shoot" then
  1214. local Look = Thing[1]
  1215. local move = 5
  1216. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1217. if Thing[10] ~= nil then
  1218. da = pos
  1219. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1220. cfa = CFrame.new(Thing[4], pos)
  1221. tehCF = cfa:lerp(cf2, 0.2)
  1222. Thing[1] = tehCF.lookVector
  1223. end
  1224. local mag = (Thing[4] - pos).magnitude
  1225. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1226. 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)
  1227. Thing[4] = Thing[4] + Look * move
  1228. Thing[3] = Thing[3] - 1
  1229. if 2 < Thing[5] then
  1230. Thing[5] = Thing[5] - 0.3
  1231. Thing[6] = Thing[6] - 0.3
  1232. end
  1233. if hit ~= nil then
  1234. Thing[3] = 0
  1235. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1236. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1237. ref.Anchored = true
  1238. ref.CFrame = CFrame.new(pos)
  1239. Effects.Block.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
  1240. Effects.Sphere.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1241. game:GetService("Debris"):AddItem(ref, 1)
  1242. end
  1243. if Thing[3] <= 0 then
  1244. table.remove(Effects, e)
  1245. end
  1246. end
  1247. do
  1248. do
  1249. if Thing[2] == "FireWave" then
  1250. if Thing[3] <= Thing[4] then
  1251. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1252. Thing[3] = Thing[3] + 1
  1253. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1254. else
  1255. Part.Parent = nil
  1256. table.remove(Effects, e)
  1257. end
  1258. end
  1259. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1260. if Thing[1].Transparency <= 1 then
  1261. if Thing[2] == "Block1" then
  1262. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1263. Mesh = Thing[7]
  1264. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1265. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1266. else
  1267. if Thing[2] == "Block2" then
  1268. Thing[1].CFrame = Thing[1].CFrame
  1269. Mesh = Thing[7]
  1270. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1271. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1272. else
  1273. if Thing[2] == "Fire" then
  1274. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1275. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1276. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1277. else
  1278. if Thing[2] == "Cylinder" then
  1279. Mesh = Thing[7]
  1280. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1281. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1282. else
  1283. if Thing[2] == "Blood" then
  1284. Mesh = Thing[7]
  1285. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1286. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1287. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1288. else
  1289. if Thing[2] == "Elec" then
  1290. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  1291. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1292. else
  1293. if Thing[2] == "Disappear" then
  1294. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1295. end
  1296. end
  1297. end
  1298. end
  1299. end
  1300. end
  1301. end
  1302. else
  1303. Part.Parent = nil
  1304. table.remove(Effects, e)
  1305. end
  1306. end
  1307. end
  1308. end
  1309. end
  1310. end
  1311. end
  1312. end
  1313. end
  1314. script.Parent=nil
  1315. --- shortcuts
  1316. v3 = Vector3.new
  1317. cn = CFrame.new
  1318. ca2 = CFrame.Angles
  1319. mf = math.floor
  1320. mran = math.random
  1321. mrad = math.rad
  1322. mdeg = math.deg
  1323. ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end
  1324. mran2 = function(a,b) return mran(a*1000,b*1000)/1000 end
  1325. ud=UDim2.new
  1326. bn = BrickColor.new
  1327. c3 = Color3.new
  1328. -----
  1329. --Player='Diitto'
  1330. Players=game:service'Players'
  1331. Player=Players.LocalPlayer --[Player]
  1332. PChar=Player.Character
  1333.  
  1334. as,so={},{'metal','Block','Slash','Slash2','Hit','Kick'}
  1335. as.corner='11294911'
  1336. as.cone='1033714'
  1337. as.ring="3270017"
  1338. as.Chakram='47260990'
  1339. as.ring2='18430887'
  1340. as.blast='20329976'
  1341. as.missile='10207677'
  1342. as.fire='2693346'
  1343. as.boom='3264793'
  1344. as.slash='10209645'
  1345. as.abscond='2767090'
  1346. as.firelaser='13775494'
  1347. as.diamond='9756362'
  1348. as.metal='rbxasset://sounds\\unsheath.wav'
  1349. as.Block = 'rbxasset://sounds\\metal.ogg'
  1350. as.Slash = '10209645'
  1351. as.Slash2 = '46760716'
  1352. as.Hit='10209583'
  1353. as.Kick='46153268'
  1354. as.cast='2101137'
  1355. as.rockhead= '21629626'
  1356. as.rockheadt='21629620'
  1357.  
  1358.  
  1359. for i,v in pairs(as) do
  1360. if type(tonumber(v:sub(1,3)))=="number" then
  1361. as[i]="http://www.roblox.com/asset/?id="..v
  1362. end
  1363. end
  1364.  
  1365. LastMade=nil
  1366. iNew=function(tab)
  1367. local v=Instance.new(tab[1])
  1368. for Ind,Val in pairs(tab) do
  1369. if Ind~=1 and Ind~=2 then
  1370. v[Ind] = Val
  1371. end
  1372. end
  1373. v.Parent=tab[2]==0 and LastMade or tab[2]
  1374. LastMade=v
  1375. return v
  1376. end
  1377. iPart=function(tab)
  1378. local v=Instance.new(tab.type or 'Part')
  1379. if tab.type~='CornerWedgePart' then v.formFactor='Custom' end
  1380. v.TopSurface=0 v.BottomSurface=0
  1381. if tab.sc then
  1382. v.Size=v3(tab[2]*tab.sc,tab[3]*tab.sc,tab[4]*tab.sc)
  1383. else
  1384. v.Size=v3(tab[2],tab[3],tab[4])
  1385. end
  1386. if tab.co then v.BrickColor=bn(tab.co) end
  1387. if tab.tr then v.Transparency=tab.tr end
  1388. if tab.rf then v.Reflectance=tab.rf end
  1389. if tab.can then v.CanCollide=tab.can end
  1390. if tab.cf then v.CFrame=tab.cf end
  1391. if tab.an then v.Anchored=tab.an end
  1392. if tab.na then v.Name=tab.na end
  1393. if tab.ma then v.Material=tab.ma end
  1394. v.Parent=tab[1]
  1395. v:BreakJoints()
  1396. LastMade=v
  1397. return v
  1398. end
  1399. function getoutline(x,z,i)
  1400. return math.sqrt(x^2+z^2)+(i or 0.05),mdeg(math.atan2(x,z))
  1401. end
  1402. function v32(cf)
  1403. local x,y,z=cf:toEulerAnglesXYZ()
  1404. return v3(mdeg(x),mdeg(y),mdeg(z))
  1405. end
  1406. WeldLib={}
  1407. function GetWeld(weld,CO)
  1408. if not WeldLib[weld] then
  1409. local x0,y0,z0=weld.C0:toEulerAnglesXYZ()
  1410. local x1,y1,z1=weld.C1:toEulerAnglesXYZ()
  1411. WeldLib[weld]={[0]=v3(mdeg(x0),mdeg(y0),mdeg(z0)),[1]=v3(mdeg(x1),mdeg(y1),mdeg(z1))}
  1412. end
  1413. return weld['C'..CO].p,WeldLib[weld][CO]
  1414. end
  1415. function ClearWeld(weld)
  1416. if WeldLib[weld] then WeldLib[weld]=nil end
  1417. end
  1418. function TweenNum(i,loops,i1,i2,smooth)
  1419. smooth = smooth or 1
  1420. local perc
  1421. if smooth == 1 then perc = math.sin((math.pi/2)/loops*i) else perc = i/loops end
  1422. local ton
  1423. if i1 > i2 then
  1424. ton = -math.abs(i1 - i2) *perc
  1425. else
  1426. ton = math.abs(i1 - i2) *perc
  1427. end
  1428. return i1+ton
  1429. end
  1430. function TweenV3(i,loops,v1,v2,smooth)
  1431. smooth = smooth or 1
  1432. local perc
  1433. if smooth == 1 then perc = math.sin((math.pi/2)/loops*i) else perc = i/loops end
  1434. local tox2,toy2,toz2 = 0,0,0
  1435. if v1.x > v2.x then
  1436. tox2 = -math.abs(v1.x - v2.x) *perc
  1437. else
  1438. tox2 = math.abs(v1.x - v2.x) *perc
  1439. end
  1440. if v1.y > v2.y then
  1441. toy2 = -math.abs(v1.y - v2.y) *perc
  1442. else
  1443. toy2 = math.abs(v1.y - v2.y) *perc
  1444. end
  1445. if v1.z > v2.z then
  1446. toz2 = -math.abs(v1.z - v2.z) *perc
  1447. else
  1448. toz2 = math.abs(v1.z - v2.z) *perc
  1449. end
  1450. return v3(v1.x + tox2,v1.y + toy2,v1.z + toz2)
  1451. end
  1452. function TweenCF(i,loops,origpos,origangle,nextpos,nextangle,smooth)
  1453. smooth = smooth or 1
  1454. local perc
  1455. if smooth == 1 then perc = math.sin((math.pi/2)/loops*i) else perc = i/loops end
  1456. local tox,toy,toz = 0,0,0
  1457. if origangle.x > nextangle.x then tox = -math.abs(origangle.x - nextangle.x) *perc
  1458. else tox = math.abs(origangle.x - nextangle.x) *perc end
  1459. if origangle.y > nextangle.y then toy = -math.abs(origangle.y - nextangle.y) *perc
  1460. else toy = math.abs(origangle.y - nextangle.y) *perc end
  1461. if origangle.z > nextangle.z then toz = -math.abs(origangle.z - nextangle.z) *perc
  1462. else toz = math.abs(origangle.z - nextangle.z) *perc end
  1463. local tox2,toy2,toz2 = 0,0,0
  1464. if origpos.x > nextpos.x then
  1465. tox2 = -math.abs(origpos.x - nextpos.x) *perc
  1466. else tox2 = math.abs(origpos.x - nextpos.x) *perc end
  1467. if origpos.y > nextpos.y then
  1468. toy2 = -math.abs(origpos.y - nextpos.y) *perc
  1469. else toy2 = math.abs(origpos.y - nextpos.y) *perc end
  1470. if origpos.z > nextpos.z then
  1471. toz2 = -math.abs(origpos.z - nextpos.z) *perc
  1472. else toz2 = math.abs(origpos.z - nextpos.z) *perc end
  1473. return cn(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2)*ca(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  1474. end
  1475. function SetWeld(weld,CO,i, loops, origpos,origangle, nextpos,nextangle,smooth)
  1476. loops=math.floor(loops)
  1477. smooth = smooth or 1
  1478. if not WeldLib[weld] then
  1479. local x0,y0,z0=weld.C0:toEulerAnglesXYZ()
  1480. local x1,y1,z1=weld.C1:toEulerAnglesXYZ()
  1481. WeldLib[weld]={[0]=v3(mdeg(x0),mdeg(y0),mdeg(z0)),[1]=v3(mdeg(x1),mdeg(y1),mdeg(z1))}
  1482. end
  1483. local perc =smooth==1 and math.sin((math.pi/2)/loops*i) or i/loops
  1484. --print(weld.Part1)
  1485. local tox,toy,toz = 0,0,0
  1486. tox = origangle.x > nextangle.x and -math.abs(origangle.x - nextangle.x) *perc or math.abs(origangle.x - nextangle.x) *perc
  1487. toy = origangle.y > nextangle.y and -math.abs(origangle.y - nextangle.y) *perc or math.abs(origangle.y - nextangle.y) *perc
  1488. toz = origangle.z > nextangle.z and -math.abs(origangle.z - nextangle.z) *perc or math.abs(origangle.z - nextangle.z) *perc
  1489. local tox2,toy2,toz2 = 0,0,0
  1490. tox2= origpos.x > nextpos.x and -math.abs(origpos.x - nextpos.x) *perc or math.abs(origpos.x - nextpos.x) *perc
  1491. toy2= origpos.y > nextpos.y and -math.abs(origpos.y - nextpos.y) *perc or math.abs(origpos.y - nextpos.y) *perc
  1492. toz2= origpos.z > nextpos.z and -math.abs(origpos.z - nextpos.z) *perc or math.abs(origpos.z - nextpos.z) *perc
  1493. WeldLib[weld][CO] = v3(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  1494. weld['C'..CO] = cn(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2)*ca(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  1495. end
  1496. function se(Key,Text)
  1497. local Values = {}
  1498. for value in (Text..Key):gmatch("(.-)"..Key) do
  1499. table.insert(Values,value)
  1500. end
  1501. local Values2={}
  1502. for i,v in pairs(Values) do Values2[i]=Values[i]:lower() end
  1503. return Values,Values2
  1504. end
  1505. findplayer=function(nn)
  1506. if not nn then return nil end
  1507. local found
  1508. for i,v in pairs(Players:GetPlayers()) do
  1509. if string.find(v.Name:lower(),nn:lower()) and not found then found=v end
  1510. end
  1511. return found
  1512. end
  1513. LoopFunctions={}
  1514. iLoopFunctions=-9000
  1515. function DoLoop(times,func)
  1516. iLoopFunctions=iLoopFunctions+1
  1517. LoopFunctions[tonumber(iLoopFunctions)]={times,0,func}
  1518. end
  1519. function MeshEffect(times,cf1,cf2,scale1,scale2,tr1,tr2,col,type)
  1520. local cf2=cf2 or cf1
  1521. local v=iPart{Char,0.2,0.2,0.2,co=col,cf=cf1,na='Mesh',an=true,ca=false,tr=tr1}
  1522. local mesh=iNew{'SpecialMesh',v,Scale=scale1}
  1523. if type=='Brick' or type=='Sphere' then
  1524. mesh.MeshType=type
  1525. else
  1526. mesh.MeshId=type
  1527. end
  1528. local x1,y1,z1 = cf1:toEulerAnglesXYZ()
  1529. local x2,y2,z2 = cf2:toEulerAnglesXYZ()
  1530. local count=0
  1531. DoLoop(times,function(i) count=count+1
  1532. mesh.Scale=TweenV3(count,times,scale1,scale2,1)*((type=='Brick' or type=='Sphere') and 5 or 1)
  1533. v.Transparency=TweenNum(count,times,tr1,tr2,1)
  1534. v.CFrame=TweenCF(count,times,cf1.p,v3(mdeg(x1),mdeg(y1),mdeg(z1)),cf2.p,v3(mdeg(x2),mdeg(y2),mdeg(z2)),1)
  1535. if i==1 then v:Remove() end end)
  1536. end
  1537. Dmgv={8,16}
  1538. HitDebounce={}
  1539. Damage=function(Hum,Mult,Sound)
  1540. if not Hum or Hum.Parent==Char then return end
  1541. if not Hum.Parent:findFirstChild'Torso' then return end
  1542. local HName=Hum.Parent.Name
  1543. if HitDebounce[HName] and HitDebounce[HName]>tick() then return end
  1544. HitDebounce[HName]=tick()+0.2
  1545. local Mult=Mult or 1
  1546. local Dealt=mran(Dmgv[1],Dmgv[2])*Mult
  1547. local col=''
  1548. if Hum.Parent:findFirstChild'Block' and Hum.Parent.Block.Value>0 then
  1549. Hum.Parent.Block.Value=Hum.Parent.Block.Value-1
  1550. col='Bright blue'
  1551. else
  1552. Hum.Health=Hum.Health-Dealt
  1553. col='Bright red'
  1554. end
  1555. if Sound then so[col=='Bright blue' and 'Block' or 'Hit']:Play() end
  1556. local DoH=iNew{'Model',Char,Name=col=='Bright blue' and 'Block' or Dealt}
  1557. iNew{'Humanoid',DoH,MaxHealth=1/0,Health=1/0,Name=''}
  1558. local Doh=iPart{DoH,0.6,0.2,0.6,co=col,an=true} Doh.Name='Head' iNew{'CylinderMesh',Doh}
  1559. local dofs=Hum.Parent.Torso.CFrame*cn(mran2(-1.5,1.5),2.5,mran2(-1,1)) Doh.CFrame=dofs
  1560. DoLoop(40,function(i) Doh.CFrame=dofs*cn(0,i*2,0) Doh.Transparency=i-0.5 if i==1 then DoH:Remove() end end)
  1561. end
  1562. AOEFind = function(pos,ra,f,f2) -- range get
  1563. local p0,p1=pos-v3(ra/2,ra/2,ra/2),pos+v3(ra/2,ra/2,ra/2)
  1564. pcall(function()
  1565. for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),nil,100)) do
  1566. local Hum=v.Parent:findFirstChild'Humanoid'
  1567. if v.Name=='Torso' and Hum and Hum.Health>0 and v.Parent~=Char then
  1568. pcall(function() f(Hum,v) end)
  1569. elseif f2 and not Hum then
  1570. pcall(function() f2(v) end)
  1571. end
  1572. end
  1573. end)
  1574. end
  1575. function FindSurface(part, position)
  1576. local obj = part.CFrame:pointToObjectSpace(position)
  1577. local siz = part.Size/2
  1578. for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  1579. local vec = Vector3.FromNormalId(v)
  1580. local wvec = part.CFrame:vectorToWorldSpace(vec)
  1581. local vz = (obj)/(siz*vec)
  1582. if (math.abs(vz.X-1) < 0.01 or math.abs(vz.Y-1) < 0.01 or math.abs(vz.Z-1) < 0.01) then
  1583. return wvec,vec
  1584. end
  1585. end
  1586. if part.className == "WedgePart" then
  1587. return part.CFrame:vectorToWorldSpace(Vector3.new(0,0.707,-0.707)), Vector3.new(0,0.707,-0.707)
  1588. end
  1589. end
  1590. function FaceBG(pos)
  1591. BG.maxTorque=v3(1,1,1)/0
  1592. BG.cframe=cn(Torso.Position,v3(pos.x,Torso.Position.y,pos.z))*cn(0,0,-1)
  1593. end
  1594. ray = function(Pos, Dir,tab,length) -- ray cast
  1595. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *(length or 999)),tab)
  1596. end
  1597. function Projectile(ofs,speed,part,adj,fhit,fnohit)
  1598. part.CFrame=ofs*adj
  1599. local stop=false
  1600. DoLoop(50,function(x)
  1601. local i=x
  1602. if not stop then
  1603. local hit,pos=ray(ofs.p,ofs.p-ofs*cn(0,0,-1).p,Char,speed+1)
  1604. if hit then
  1605. --Hit
  1606. if fhit then i=1 stop=true
  1607. ----
  1608. local cof=FindSurface(hit,pos)
  1609. --iPart{workspace,2,2,0.2,cf=cn(pos,pos+cof),an=true,co='Black'}
  1610. ----
  1611. local x,y,z=ofs:toEulerAnglesXYZ()
  1612. ofs=cn(pos)*ca(mdeg(x),mdeg(y),mdeg(z))*cn(0,0,-part.Size.y/2)
  1613. part.CFrame=ofs*adj
  1614. fhit(hit,pos) end
  1615. else
  1616. ofs=ofs*cn(0,0,speed)
  1617. part.CFrame=ofs*adj
  1618. end
  1619. if i==1 then
  1620. if fnohit then fnohit(ofs.p) else part:Remove() end
  1621. end
  1622. end
  1623. end)
  1624. end
  1625.  
  1626. CC={'','Bright yellow','Flame reddish orange'}
  1627. Scale=5
  1628. Mat='Marble'
  1629.  
  1630. SpawnPoint=PChar.Torso.CFrame*cn(0,1+Scale*3,-20-Scale*1.5)
  1631. name='Brock'
  1632. pcall(function() _G.OldMod00:Remove() end)
  1633.  
  1634. ---------------
  1635. UNDYING=function()
  1636. pcall(function() fUNDYING:disconnect() end)
  1637. pcall(function() local hum=Grabbing.Part1.Parent.Humanoid Grabbing:Remove() Grabbing=nil hum.PlatformStand=false end)
  1638. Torso.Anchored=true Torso.Transparency=1 Torso.CanCollide=false
  1639. Stand:Remove() Head:Remove()
  1640. local RespawnPos=cn(Torso.CFrame.p+v3(0,Scale*5,0))*ca(0,mran(-360,360),0)
  1641. wait(4)
  1642. Anim='Reviving'
  1643. local oldChar=Char
  1644. local oldRootLimbs=RootLimbs
  1645. for i,v in pairs(oldRootLimbs) do v.Anchored=true end
  1646. fMarble(Char,function(v) v.Anchored=true end)
  1647. MakeAI(RespawnPos) Anim='Reviving'
  1648. fMarble(Char,function(v) v.Transparency=1 end)
  1649. for i,v in pairs(RootLimbs) do v.Transparency=1 end
  1650. wait(0.1) Torso.Anchored=true
  1651. local Reconstruct={}
  1652. fMarble(oldChar,function(v)
  1653. local x1,y1,z1=v.CFrame:toEulerAnglesXYZ()
  1654. local x2,y2,z2=Char[v.Parent.Name][v.Name].CFrame:toEulerAnglesXYZ()
  1655. Reconstruct[#Reconstruct+1]={v,Char[v.Parent.Name][v.Name],v.Position,v3(mdeg(x1),mdeg(y1),mdeg(z1)),v3(mdeg(x2),mdeg(y2),mdeg(z2))} end)
  1656. for i,v in pairs(oldRootLimbs) do
  1657. local x1,y1,z1=v.CFrame:toEulerAnglesXYZ()
  1658. local x2,y2,z2=Char[v.Name].CFrame:toEulerAnglesXYZ()
  1659. Reconstruct[#Reconstruct+1]={v,Char[v.Name],v.Position,v3(mdeg(x1),mdeg(y1),mdeg(z1)),v3(mdeg(x2),mdeg(y2),mdeg(z2))} end
  1660. local tweens=100
  1661. for tween=1,tweens do
  1662. for i,v in pairs(Reconstruct) do v[1].CFrame=TweenCF(tween,tweens,v[3],v[4],v[2].Position,v[5],1)*ca(360*(tween/tweens),720*(tween/tweens),0) end
  1663. wait()
  1664. end
  1665. oldChar:Remove()
  1666. fMarble(Char,function(v) v.Transparency=0 end)
  1667. for i,v in pairs(RootLimbs) do v.Transparency=0 end
  1668. Torso.Anchored=false wait()
  1669. BG.maxTorque=v3(1,1,1)/0 BG.cframe=Torso.CFrame
  1670. ReturnAnim()
  1671. wait(2)
  1672. BG.maxTorque=nov3
  1673. Anim,ArmAnim,LegAnim='None','None','None'
  1674. end
  1675. ------
  1676.  
  1677. function MakeAI(SpawnPoint2)
  1678. Char=iNew{'Model',workspace,Name=name,archivable=false} _G.OldMod00=Char
  1679. Torso=iPart{Char,2,2,1,sc=Scale,co=CC[1],cf=SpawnPoint2,na='Torso'}
  1680. pTorso=iPart{Char,2,2,1,sc=Scale,co=CC[1],cf=SpawnPoint2,na='pTorso'}
  1681. Head=iPart{Char,1,1,1,sc=Scale,co=CC[1],na='Head'}
  1682. pHead=iPart{Char,1,1,1,sc=Scale,co=CC[1],na='pHead'} iNew{'SpecialMesh',pHead,Scale=v3(1,1,1)*Scale/1.4,VertexColor=v3(1,1,1)/1.65,MeshId=as.rockhead,TextureId=as.rockheadt}
  1683. Stand=iPart{Char,1.5,2.9,1.1,sc=Scale,co=CC[1],na='Stand'}
  1684.  
  1685. for i,n in pairs(so) do
  1686. local v=iNew{'Sound',Torso,Volume=1,Pitch=1,Looped=false,Name=v,SoundId=as[n]}
  1687. so[n]=v
  1688. end
  1689.  
  1690.  
  1691. LSho=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LSho'}
  1692. LArm=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LArm'}
  1693.  
  1694. RSho=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RSho'}
  1695. RArm=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RArm'}
  1696.  
  1697. LThi=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LThi'}
  1698. LLeg=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LLeg'}
  1699.  
  1700. RThi=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RThi'}
  1701. RLeg=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RLeg'}
  1702.  
  1703.  
  1704.  
  1705. nov3=v3(0,0,0)
  1706. Marble={}
  1707. MarbleSpeed=0.2
  1708. MarbleMax=12
  1709. for i,v in pairs({pTorso,LSho,RSho,LArm,RArm,LThi,RThi,LLeg,RLeg}) do
  1710. v.Material=Mat
  1711. local VS=v.Size
  1712. local va=1.2
  1713. --v.Size=v.Size/1.5
  1714. local vv=v:Clone()
  1715. for x=-1,1,2 do
  1716. for y=-1,1,2 do
  1717. for z=-1,1,2 do
  1718. local marb=vv:Clone() marb.Size=VS/mran2(1.8,2.2) marb.Parent=v marb.Name=x..y..z
  1719. local wmarb=iNew{'Weld',marb,Part0=v,Part1=marb,C0=cn(VS.x/4*x/va,VS.y/4*y,VS.z/4*z/va)*ca(mran(-MarbleMax,MarbleMax),mran(-MarbleMax,MarbleMax),mran(-MarbleMax,MarbleMax))}
  1720. Marble[#Marble+1]={wmarb,mran(-1,1),mran(-1,1),mran(-1,1)}
  1721. end end end
  1722. iNew{'BlockMesh',v,Scale=v3(1,1,1)/1.5}
  1723. v.Transparency=0 --.995
  1724. end
  1725.  
  1726. for i,v in pairs(Char:children()) do if v:IsA'BasePart' and v.Name~='Torso' then v.CFrame=Torso.CFrame end end
  1727.  
  1728. Head.Transparency=0.99
  1729. Head.CanCollide=false
  1730. Neck=iNew{'Weld',Torso,Part0=Torso,Part1=Head,C0=cn(0,0,0)}
  1731. pNeck=iNew{'Weld',Torso,Part0=pTorso,Part1=pHead,C0=cn(0,1.5*Scale,0)}
  1732. Hum=iNew{'Humanoid',Char}
  1733.  
  1734.  
  1735. Torso.Transparency=1
  1736. wTorso=iNew{'Weld',Torso,Part0=Torso,Part1=pTorso,C0=cn(0,-2.5*Scale,0)*ca(0,0,0)}
  1737. oTorso=cn(0,0,0)
  1738.  
  1739. Stand.Transparency=1
  1740. wStand=iNew{'Weld',Torso,Part0=Torso,Part1=Stand,C0=cn(0,-2.5*Scale,0)}
  1741.  
  1742. wLSho=iNew{'Weld',LSho,Part0=pTorso,Part1=LSho,C0=cn(-1.5*Scale,0.75*Scale,0),C1=cn(0,0.25*Scale,0)}
  1743. wLArm=iNew{'Weld',LArm,Part0=LSho,Part1=LArm,C0=cn(0,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
  1744.  
  1745. wRSho=iNew{'Weld',RSho,Part0=pTorso,Part1=RSho,C0=cn(1.5*Scale,0.75*Scale,0),C1=cn(0,0.25*Scale,0)}
  1746. wRArm=iNew{'Weld',RArm,Part0=RSho,Part1=RArm,C0=cn(0,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
  1747.  
  1748. wLThi=iNew{'Weld',LThi,Part0=pTorso,Part1=LThi,C0=cn(-0.5*Scale,-1*Scale,0),C1=cn(0,0.75*Scale,0)}
  1749. wLLeg=iNew{'Weld',LLeg,Part0=LThi,Part1=LLeg,C0=cn(1,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
  1750.  
  1751. wRThi=iNew{'Weld',RThi,Part0=pTorso,Part1=RThi,C0=cn(0.5*Scale,-1*Scale,0),C1=cn(0,0.75*Scale,0)}
  1752. wRLeg=iNew{'Weld',RLeg,Part0=RThi,Part1=RLeg,C0=cn(0,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
  1753.  
  1754. wLSho.C0=cn(-1.5*Scale,0.75*Scale,0)*ca(0,0,-135) --a,b
  1755. wLArm.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --c,d
  1756. wRSho.C0=cn(1.5*Scale,0.75*Scale,0)*ca(0,0,135) --e,f
  1757. wRArm.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --g,h
  1758. ----
  1759. wLThi.C0=cn(-0.5*Scale,-1*Scale,0)*ca(0,0,-45) --i,j
  1760. wLLeg.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --k,l
  1761. wRThi.C0=cn(0.5*Scale,-1*Scale,0)*ca(0,0,45) --m,n
  1762. wRLeg.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --o,p
  1763.  
  1764. BG=iNew{'BodyGyro',Torso,maxTorque=nov3}
  1765. BP=iNew{'BodyPosition',Torso,maxForce=nov3}
  1766. fUNDYING=Hum.Died:connect(UNDYING)
  1767. LimbNames={'LSho','RSho','LArm','RArm','RThi','LThi','RLeg','LLeg'}
  1768. for i=1,8 do local v=LimbNames[i] LimbNames[v]=getfenv()["w"..v] end
  1769. RootLimbs={pHead,pTorso,LSho,RSho,LArm,RArm,RThi,LThi,RLeg,LLeg}
  1770. Anim,LegAnim,ArmAnim='Sit','Sit','Sit'
  1771. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
  1772. SetWeld(wLSho,0,1,1,a,b,v3(-1.5*Scale,0.5*Scale,0),v3(0,0,-10),1)
  1773. SetWeld(wLArm,0,1,1,c,d,v3(0,-0.75*Scale,0),v3(10,0,10),1)
  1774. SetWeld(wRSho,0,1,1,e,f,v3(1.5*Scale,0.5*Scale,0),v3(0,0,10),1)
  1775. SetWeld(wRArm,0,1,1,g,h,v3(0,-0.75*Scale,0),v3(10,0,-10),1)
  1776. SetWeld(wLThi,0,1,1,i,j,v3(-0.5*Scale,-1*Scale,0),v3(15,0,-5),1)
  1777. SetWeld(wLLeg,0,1,1,k,l,v3(0,-0.75*Scale,0),v3(-15,0,5),1)
  1778. SetWeld(wRThi,0,1,1,m,n,v3(0.5*Scale,-1*Scale,0),v3(15,0,5),1)
  1779. SetWeld(wRLeg,0,1,1,o,p,v3(0,-0.75*Scale,0),v3(-15,0,-5),1)
  1780. Oa,Ob,Oc,Od,Oe,Of,Og,Oh,Oi,Oj,Ok,Ol,Om,On,Oo,Op=GetPose()
  1781. SetWeld(wLSho,0,1,1,nov3,nov3,a,b,1)
  1782. SetWeld(wLArm,0,1,1,nov3,nov3,c,d,1)
  1783. SetWeld(wRSho,0,1,1,nov3,nov3,e,f,1)
  1784. SetWeld(wRArm,0,1,1,nov3,nov3,g,h,1)
  1785. SetWeld(wLThi,0,1,1,nov3,nov3,i,j,1)
  1786. SetWeld(wLLeg,0,1,1,nov3,nov3,k,l,1)
  1787. SetWeld(wRThi,0,1,1,nov3,nov3,m,n,1)
  1788. SetWeld(wRLeg,0,1,1,nov3,nov3,o,p,1)
  1789. end
  1790.  
  1791. function GetPose()
  1792. local a,b=GetWeld(wLSho,0)
  1793. local c,d=GetWeld(wLArm,0)
  1794. local e,f=GetWeld(wRSho,0)
  1795. local g,h=GetWeld(wRArm,0)
  1796. local i,j=GetWeld(wLThi,0)
  1797. local k,l=GetWeld(wLLeg,0)
  1798. local m,n=GetWeld(wRThi,0)
  1799. local o,p=GetWeld(wRLeg,0)
  1800. local q,r=GetWeld(wTorso,0)
  1801. return a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r
  1802. end
  1803.  
  1804. MakeAI(SpawnPoint)
  1805.  
  1806. ASpeed=28
  1807. coroutine.resume(coroutine.create(function()
  1808. SetWeld(wLSho,0,1,1,nov3,nov3,wLSho.C0.p,v3(45,0,-10),1)
  1809. SetWeld(wLArm,0,1,1,nov3,nov3,wLArm.C0.p,v3(45,0,10),1)
  1810. SetWeld(wRSho,0,1,1,nov3,nov3,wRSho.C0.p,v3(45,0,10),1)
  1811. SetWeld(wRArm,0,1,1,nov3,nov3,wRArm.C0.p,v3(45,0,-10),1)
  1812. SetWeld(wLThi,0,1,1,nov3,nov3,v3(-0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,-12),1)
  1813. SetWeld(wLLeg,0,1,1,nov3,nov3,wLLeg.C0.p,v3(-70,0,12),1)
  1814. SetWeld(wRThi,0,1,1,nov3,nov3,v3( 0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,12),1)
  1815. SetWeld(wRLeg,0,1,1,nov3,nov3,wRLeg.C0.p,v3(-70,0,-12),1)
  1816. SetWeld(wTorso,0,1,1,oTorso,nov3,v3(0,-3*Scale,0),nov3,1)
  1817. wait(1)
  1818. Anim='Standing'
  1819. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
  1820. for x=1,ASpeed do
  1821. SetWeld(wTorso,0,x,ASpeed,wTorso.C0.p,nov3,oTorso,nov3,1)
  1822. SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.5*Scale,0.5*Scale,0),v3(0,0,-10),1)
  1823. SetWeld(wLArm,0,x,ASpeed,c,d,v3(0,-0.75*Scale,0),v3(10,0,10),1)
  1824. SetWeld(wRSho,0,x,ASpeed,e,f,v3(1.5*Scale,0.5*Scale,0),v3(0,0,10),1)
  1825. SetWeld(wRArm,0,x,ASpeed,g,h,v3(0,-0.75*Scale,0),v3(10,0,-10),1)
  1826. SetWeld(wLThi,0,x,ASpeed,i,j,v3(-0.5*Scale,-1*Scale,0),v3(15,0,-5),1)
  1827. SetWeld(wLLeg,0,x,ASpeed,k,l,v3(0,-0.75*Scale,0),v3(-15,0,5),1)
  1828. SetWeld(wRThi,0,x,ASpeed,m,n,v3(0.5*Scale,-1*Scale,0),v3(15,0,5),1)
  1829. SetWeld(wRLeg,0,x,ASpeed,o,p,v3(0,-0.75*Scale,0),v3(-15,0,-5),1)
  1830. wait()
  1831. end
  1832. ArmAnim='None'
  1833. LegAnim='None'
  1834. Anim='None'
  1835. end))
  1836. --Target=PChar
  1837. function Stay(bool,cff)
  1838. BG.maxTorque=bool and v3(1,1,1)/0 or nov3 BG.cframe=cff or Torso.CFrame
  1839. BP.maxForce=BG.maxTorque BP.position=Torso.Position
  1840. end
  1841. function fMarble(Ch,func)
  1842. for i,v in pairs(Ch:children()) do
  1843. for x=-1,1,2 do
  1844. for y=-1,1,2 do
  1845. for z=-1,1,2 do
  1846. if v:findFirstChild(x..y..z) then func(v[x..y..z]) end
  1847. end end end
  1848. end
  1849. end
  1850. function ReturnAnim()
  1851. local ne1,ne2=GetWeld(pNeck,0)
  1852. local wt1,wt2=GetWeld(wTorso,0)
  1853. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
  1854. for x=1,ASpeed do
  1855. SetWeld(wLSho,0,x,ASpeed,a,b,Oa,Ob,1)
  1856. SetWeld(wLArm,0,x,ASpeed,c,d,Oc,Od,1)
  1857. SetWeld(wRSho,0,x,ASpeed,e,f,Oe,Of,1)
  1858. SetWeld(wRArm,0,x,ASpeed,g,h,Og,Oh,1)
  1859. SetWeld(wLThi,0,x,ASpeed,i,j,Oi,Oj,1)
  1860. SetWeld(wLLeg,0,x,ASpeed,k,l,Ok,Ol,1)
  1861. SetWeld(wRThi,0,x,ASpeed,m,n,Om,On,1)
  1862. SetWeld(wRLeg,0,x,ASpeed,o,p,Oo,Op,1)
  1863. SetWeld(wTorso,0,x,ASpeed,wt1,wt2,oTorso,nov3,1)
  1864. SetWeld(pNeck,0,x,ASpeed,ne1,ne2,v3(0,1.5,0)*Scale,nov3,1)
  1865. wait()
  1866. end
  1867. end
  1868.  
  1869. ChatConnection=Player.Chatted:connect(function(msg)
  1870. coroutine.resume(coroutine.create(function()
  1871. if not Char.Parent then return end
  1872. local Sep,sep=se(';',msg)
  1873. local p1,p2=findplayer(Sep[2]),findplayer(Sep[3])
  1874. local cmd=sep[1]
  1875. --print(Sep[1])
  1876. --print(LimbNames[Sep[1]])
  1877. Tt=(p1 and p1.Character and p1.Character:findFirstChild'Torso') and p1.Character.Torso or nil
  1878. if cmd=='sit' and (Anim=='None' or Anim=='Follow') then
  1879. Anim='Sitting'
  1880. Hum:MoveTo(Torso.Position,Torso)
  1881. LegAnim,ArmAnim='Sit','Sit'
  1882. for x=1,ASpeed do
  1883. SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(45,0,-10),1)
  1884. SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(45,0,10),1)
  1885. SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(45,0,10),1)
  1886. SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(45,0,-10),1)
  1887. SetWeld(wLThi,0,x,ASpeed,Oi,Oj,v3(-0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,-12),1)
  1888. SetWeld(wLLeg,0,x,ASpeed,Ok,Ol,Ok,v3(-70,0,12),1)
  1889. SetWeld(wRThi,0,x,ASpeed,Om,On,v3( 0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,12),1)
  1890. SetWeld(wRLeg,0,x,ASpeed,Oo,Op,Oo,v3(-70,0,-12),1)
  1891. SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-3*Scale,0),nov3,1)
  1892. wait()
  1893. end
  1894. Anim='Sit'
  1895. elseif (cmd=='stand' or cmd=='stop') and (Anim=='Roll' or Anim=='Sit' or Anim=='Follow' or Anim=='Form' or Anim=='Dance' or Anim=='Grab') then
  1896. if Anim=='Sit' or Anim=='Form' or Anim=='Dance' or Anim=='Roll' then
  1897. Anim='Returning'
  1898. ReturnAnim()
  1899. else
  1900. Target=nil
  1901. wait(0.2)
  1902. Hum:MoveTo(Torso.Position,Torso)
  1903. end
  1904. LegAnim,ArmAnim,Anim='None','None','None'
  1905. elseif cmd=='follow' and Tt and Anim=='None' then
  1906. Anim='Follow'
  1907. Target=p1.Character
  1908. elseif cmd=='shoot' and Tt and RArm['1-11'].Transparency~=1 and ArmAnim=='None' then
  1909. Target=p1.Character
  1910. ArmAnim='Shoot'
  1911. FaceBG(Tt.Position)
  1912. wait(0.1)
  1913. local cff=cn(pTorso.CFrame.p,v3(Tt.Position.x,pTorso.Position.y,Tt.Position.z))
  1914. local ofs=cff:toObjectSpace(cn(cff*cn(1.5*Scale,0.5*Scale,0).p,Tt.CFrame*cn(0,2,0).p)*ca(90,0,0)*cn(0,-0.25*Scale,0))
  1915. local x,y,z=ofs:toEulerAnglesXYZ()
  1916. local rot=v3(mdeg(x),mdeg(y),mdeg(z))
  1917. for q=1,ASpeed do
  1918. SetWeld(wRArm,0,q,ASpeed,Og,Oh,Og,nov3,1)
  1919. SetWeld(wRSho,0,q,ASpeed,Oe,Of,ofs.p,rot,1)
  1920. SetWeld(wRSho,1,q,ASpeed,v3(0,0.25*Scale,0),nov3,nov3,nov3,1)
  1921. wait()
  1922. end
  1923. for y=-1,1,2 do for x=-1,1,2 do for z=-1,1,2 do
  1924. local new=RArm[x..y..z]:Clone() new.Parent=RArm game.Debris:AddItem(new,8) new.Touched:connect(function(hit) Damage(hit.Parent:findFirstChild'Humanoid') end)
  1925. new.CFrame=RArm[x..y..z].CFrame*cn(0,-Scale*1.5,0) new.CanCollide=true new.Velocity=cn(new.Position,Target.Torso.Position).lookVector*((new.Position-Target.Torso.Position).magnitude*20+900)
  1926. RArm[x..y..z].Transparency=1 so.Block:Play() wait(0.06)
  1927. end end end
  1928. RArm.Transparency=1
  1929. delay(1,function()
  1930. for x=-1,1,2 do for y=-1,1,2 do for z=-1,1,2 do local new=RArm[x..y..z]:Clone() new.Transparency=0 new.CanCollide=false new.Name='f'..new.Name new.Parent=RArm new.CFrame=RArm.CFrame*cn(Scale*x*2,Scale*-3,Scale*z*2)
  1931. iNew{'BodyPosition',new,maxForce=v3(1,1,1)/0,position=RArm[x..y..z].Position} wait(0.14) end end end
  1932. DoLoop(35,function(i) for x=-1,1,2 do for y=-1,1,2 do for z=-1,1,2 do RArm['f'..x..y..z].BodyPosition.position=RArm[x..y..z].Position if i==1 then RArm['f'..x..y..z]:Remove() RArm[x..y..z].Transparency=0 RArm.Transparency=0 end end end end end)
  1933. end)
  1934. for q=1,ASpeed do
  1935. SetWeld(wRArm,0,q,ASpeed,Og,nov3,Og,Oh,1)
  1936. SetWeld(wRSho,0,q,ASpeed,ofs.p,rot,Oe,Of,1)
  1937. SetWeld(wRSho,1,q,ASpeed,nov3,nov3,v3(0,0.25*Scale,0),nov3,1)
  1938. wait()
  1939. end
  1940. BG.maxTorque=nov3
  1941. ArmAnim='None'
  1942. elseif cmd=='slam' and (Anim=='None' or Anim=='Follow') and Tt then
  1943. Target=p1
  1944. local lTt=Tt
  1945. Anim='Follow'
  1946. repeat Hum:MoveTo(Tt.Position+v3(0.5,0.5,0.5),Tt) wait(0.2) until lTt~=Tt or (Tt.Position-pTorso.Position).magnitude<10+Scale*5.5 or Anim~='Follow'
  1947. if Anim~='Follow' then BG.maxTorque=nov3 return end
  1948. if lTt~=Tt then return end
  1949. Anim,LegAnim,ArmAnim='Slam','',''
  1950. Hum:MoveTo(Torso.Position,Torso)
  1951. FaceBG(Tt.Position)
  1952. Stay(true,BG.cframe)
  1953. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
  1954. ASpeed2=15
  1955. for x=1,ASpeed2 do
  1956. SetWeld(wLSho,0,x,ASpeed2,a,b,Oa,v3(180,0,0),1)
  1957. SetWeld(wRSho,0,x,ASpeed2,e,f,Oe,v3(180,0,0),1)
  1958. SetWeld(wTorso,0,x,ASpeed2,nov3,nov3,v3(0,3,0)*Scale,nov3,1)
  1959. wait()
  1960. end
  1961. for x=1,ASpeed2 do
  1962. SetWeld(wTorso,0,x,ASpeed2,v3(0,3,0)*Scale,nov3,v3(0,-3*Scale+2.5,-6*Scale),v3(-89,0,0),1)
  1963. wait()
  1964. end
  1965. AOEFind(pTorso.Position,6.5*Scale,function(Hum) Damage(Hum,3,true) Hum.Sit=true end)
  1966. MeshEffect(35,Torso.CFrame*cn(0,-3.5*Scale,-6*Scale)*ca(90,0,0),nil,v3(2,2,1)*Scale,v3(12,12,5)*Scale,0.2,1,'Light stone grey',as.ring)
  1967. wait(0.5)
  1968. for x=1,ASpeed do
  1969. SetWeld(wTorso,0,x,ASpeed,v3(0,-3*Scale+2.5,-6*Scale),v3(-90,0,0),nov3,nov3,1)
  1970. SetWeld(wLSho,0,x,ASpeed,Oa,v3(180,0,0),Oa,Ob,1)
  1971. SetWeld(wRSho,0,x,ASpeed,Oe,v3(180,0,0),Oe,Of,1)
  1972. wait()
  1973. end
  1974. Stay(false)
  1975. Anim,LegAnim,ArmAnim='None','None','None'
  1976. elseif cmd=='boulder' and Anim=='None' then
  1977. Target=p1.Character
  1978. Anim,LegAnim,ArmAnim='','',''
  1979. Stay(true)
  1980. FaceBG(Tt.Position)
  1981. for x=1,ASpeed do
  1982. SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(135,0,0),1)
  1983. SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,0),1)
  1984. SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(135,0,0),1)
  1985. SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,-10),1)
  1986. SetWeld(wLThi,0,x,ASpeed,Oi,Oj,v3(-0.5,-0.5,0.25)*Scale,v3(45,0,-15),1)
  1987. SetWeld(wLLeg,0,x,ASpeed,Ok,Ol,Ok,v3(0,0,0),1)
  1988. SetWeld(wRThi,0,x,ASpeed,Om,On,v3( 0.5,-0.5,0.25)*Scale,v3(45,0,15),1)
  1989. SetWeld(wRLeg,0,x,ASpeed,Oo,Op,Oo,v3(0,0,0),1)
  1990. SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-1.5,-1.5)*Scale,v3(-90,0,0),1)
  1991. wait()
  1992. end
  1993. wait(0.2)
  1994. local boulder=iPart{Char,1,1,1,type='WedgePart'} boulder.Material=Mat
  1995. local wm=iNew{'SpecialMesh',boulder,Scale=v3(4,3,4)*Scale,MeshType='Wedge'}
  1996. local wb=iNew{'Weld',boulder,Part0=RArm,Part1=boulder,C0=cn(-1.5*Scale,-2.3*Scale,0)*ca(180,180,0)}
  1997. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
  1998. for x=1,ASpeed*2 do
  1999. SetWeld(wLSho,0,x,ASpeed*2,a,b,a,v3(225,0,0),1)
  2000. SetWeld(wLArm,0,x,ASpeed*2,c,d,c,v3(45,0,0),1)
  2001. SetWeld(wRSho,0,x,ASpeed*2,e,f,e,v3(225,0,0),1)
  2002. SetWeld(wRArm,0,x,ASpeed*2,g,h,g,v3(45,0,0),1)
  2003. SetWeld(wLThi,0,x,ASpeed*2,i,j,Oi,v3(0,0,-15),1)
  2004. SetWeld(wLLeg,0,x,ASpeed*2,k,l,k,v3(0,0,0),1)
  2005. SetWeld(wRThi,0,x,ASpeed*2,m,n,Om,v3(0,0,15),1)
  2006. SetWeld(wRLeg,0,x,ASpeed*2,o,p,o,v3(0,0,0),1)
  2007. SetWeld(wTorso,0,x,ASpeed*2,q,r,nov3,nov3,1)
  2008. wait()
  2009. end
  2010. FaceBG(Tt.Position)
  2011. for x=1,ASpeed/2 do
  2012. SetWeld(wLSho,0,x,math.floor(ASpeed/2),a,v3(225,0,0),a,v3(90,0,0),1)
  2013. SetWeld(wLArm,0,x,math.floor(ASpeed/2),c,v3(45,0,0),c,v3(45,0,0),1)
  2014. SetWeld(wRSho,0,x,math.floor(ASpeed/2),e,v3(225,0,0),e,v3(90,0,0),1)
  2015. SetWeld(wRArm,0,x,math.floor(ASpeed/2),g,v3(45,0,0),g,v3(45,0,0),1)
  2016. wait()
  2017. end
  2018. local bcf=boulder.CFrame
  2019. wb:Remove()
  2020. wm:Remove()
  2021. boulder.Size=wm.Scale
  2022. boulder.CFrame=cn(boulder.Position,Target.Torso.Position)*cn(0,3,-1)*ca(0,180,0)
  2023. --boulder.Friction=0.1
  2024. boulder.Elasticity=0
  2025. boulder.Velocity=(boulder.CFrame*ca(0,180,0)).lookVector*((boulder.Position-Target.Torso.Position).magnitude*1+90)
  2026. boulder.RotVelocity=nov3
  2027. game.Debris:AddItem(boulder,8)
  2028. Stay(false)
  2029. ReturnAnim()
  2030. Anim,LegAnim,ArmAnim='None','None','None'
  2031. elseif cmd=='grab' and Tt and not Grabbing then
  2032. Target=p1
  2033. local lTt=Tt
  2034. Anim='Follow'
  2035. repeat Hum:MoveTo(Tt.Position+v3(0.5,0.5,0.5),Tt) wait(0.2) until lTt~=Tt or (Tt.Position-Stand.CFrame*cn(0,-Stand.Size.y/2+1,-2.8*Scale).p).magnitude<10 or Anim~='Follow'
  2036. if Anim~='Follow' then BG.maxTorque=nov3 return end
  2037. if lTt~=Tt then return end
  2038. pcall(function() Tt.Parent.Humanoid.PlatformStand=true end)
  2039. Hum:MoveTo(Torso.Position,Torso)
  2040. Anim,LegAnim,ArmAnim='Grab','',''
  2041. FaceBG(Tt.Position)
  2042. for x=1,ASpeed do
  2043. SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(-30,0,-30),1)
  2044. SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,0),1)
  2045. SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(145,0,-30),1)
  2046. SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,0),1)
  2047. SetWeld(wLThi,0,x,ASpeed,Oi,Oj,v3(-0.5,-0.4,0.3)*Scale,v3(70,0,0),1)
  2048. SetWeld(wLLeg,0,x,ASpeed,Ok,Ol,Ok,v3(-20,0,0),1)
  2049. SetWeld(wRThi,0,x,ASpeed,Om,On,v3(0.5,-0.5,-0.3)*Scale,v3(135,0,0),1)
  2050. SetWeld(wRLeg,0,x,ASpeed,Oo,Op,Oo,v3(-90,0,0),1)
  2051. SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-2,-1.5)*Scale,v3(-90,0,0),1)
  2052. wait()
  2053. end
  2054. local ofs=RArm.CFrame:toObjectSpace(Tt.CFrame)
  2055. Tt.Parent.Humanoid.PlatformStand=true
  2056. Grabbing=iNew{'Weld',RArm,Part0=RArm,Part1=Tt,C0=ofs}
  2057. local a,b=GetWeld(Grabbing,0)
  2058. for x=1,ASpeed do
  2059. SetWeld(Grabbing,0,x,ASpeed,a,b,v3(0,-0.75*Scale-1,0),v3(-90,0,0),1)
  2060. wait()
  2061. end
  2062. Stay(false)
  2063. ReturnAnim()
  2064. Anim,LegAnim,ArmAnim='None','None','None'
  2065. elseif cmd=='dance' and (Anim=='None' or Anim=='Follow') then
  2066. Hum:MoveTo(pTorso.Position,pTorso)
  2067. Anim,ArmAnim,LegAnim='Dance','Dance','Dance'
  2068. local ASpeed=math.floor(ASpeed/2)
  2069. repeat
  2070. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
  2071. for x=1,ASpeed do
  2072. if Anim~='Dance' then break end
  2073. SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.2,0.5,-0.25)*Scale,v3(35,0,30),1)
  2074. SetWeld(wLArm,0,x,ASpeed,c,d,c,v3(25,0,0),1)
  2075. SetWeld(wRSho,0,x,ASpeed,e,f,v3( 1.2,0.5,-0.25)*Scale,v3(45,0,-30),1)
  2076. SetWeld(wRArm,0,x,ASpeed,g,h,g,v3(25,0,0),1)
  2077. SetWeld(wLThi,0,x,ASpeed,i,j,i,v3(0,0,0),1)
  2078. SetWeld(wLLeg,0,x,ASpeed,k,l,k,v3(0,0,0),1)
  2079. SetWeld(wRThi,0,x,ASpeed,m,n,m,v3(45,0,20),1)
  2080. SetWeld(wRLeg,0,x,ASpeed,o,p,o,v3(-45,0,-20),1)
  2081. wait()
  2082. end
  2083. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
  2084. for x=1,ASpeed do
  2085. if Anim~='Dance' then break end
  2086. SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.2,0.5,-0.25)*Scale,v3(95,0,30),1)
  2087. SetWeld(wLArm,0,x,ASpeed,c,d,c,v3(-10,0,0),1)
  2088. SetWeld(wRSho,0,x,ASpeed,e,f,v3( 1.2,0.5,-0.25)*Scale,v3(105,0,-30),1)
  2089. SetWeld(wRArm,0,x,ASpeed,g,h,g,v3(-10,0,0),1)
  2090. SetWeld(wLThi,0,x,ASpeed,i,j,i,v3(45,0,-20),1)
  2091. SetWeld(wLLeg,0,x,ASpeed,k,l,k,v3(-45,0,20),1)
  2092. SetWeld(wRThi,0,x,ASpeed,m,n,m,v3(0,0,0),1)
  2093. SetWeld(wRLeg,0,x,ASpeed,o,p,o,v3(0,0,0),1)
  2094. wait()
  2095. end
  2096. until Anim~='Dance'
  2097. elseif cmd=='roll' and (Anim=='None' or Anim=='Follow') then
  2098. Target=p1
  2099. local lTt=Tt
  2100. Anim,ArmAnim,LegAnim='Roll','',''
  2101. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
  2102. local n1,n2=GetWeld(pNeck,0)
  2103. for x=1,ASpeed do
  2104. SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.5,0.5,0)*Scale,v3(0,0,-45),1)
  2105. SetWeld(wLArm,0,x,ASpeed,c,d,c,v3(0,0,90),1)
  2106. SetWeld(wRSho,0,x,ASpeed,e,f,v3( 1.5,0.5,0)*Scale,v3(0,0,45),1)
  2107. SetWeld(wRArm,0,x,ASpeed,g,h,g,v3(0,0,-90),1)
  2108. SetWeld(wLThi,0,x,ASpeed,i,j,v3(0,1, 0.5)*Scale,v3(-30,0,0),1)
  2109. SetWeld(wLLeg,0,x,ASpeed,k,l,k,v3(60,0,0),1)
  2110. SetWeld(wRThi,0,x,ASpeed,m,n,v3(0,1,-0.5)*Scale,v3(30,0,0),1)
  2111. SetWeld(wRLeg,0,x,ASpeed,o,p,o,v3(-60,0,0),1)
  2112. SetWeld(pNeck,0,x,ASpeed,n1,n2,v3(0,0,0),n2,1)
  2113. SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-2,0)*Scale,nov3,1)
  2114. wait()
  2115. end
  2116. tWS[2]=3
  2117. repeat
  2118. local cf=Torso.CFrame*cn(mran2(-1,1)*Scale,-4*Scale,0.5*Scale)*ca(90+mran(-20,20),mran(-30,30),0)
  2119. MeshEffect(24,cf,cf*cn(0,4*Scale,0),v3(0.5,0.5,0.5)*Scale,v3(mran2(1,4),mran2(3,5),mran2(1,3))*Scale,0.1,1,'Dark stone grey','Brick')
  2120. Hum:MoveTo(Tt.CFrame*cn(0,0,Scale).p,Tt) wTorso.C0=wTorso.C0*ca(-20,0,0) wait(0.035) until lTt~=Tt or (Tt.Position-Stand.CFrame*cn(0,-Stand.Size.y/2+1,-2.8*Scale).p).magnitude<6 or Anim~='Roll'
  2121. tWS[2]=1
  2122. ClearWeld(wTorso)
  2123. if Anim~='Roll' then return end
  2124. Hum:MoveTo(Torso.Position+v3(0,1,0),Torso)
  2125. Torso.Anchored=true Torso.Velocity=nov3
  2126. local cf=Stand.CFrame*cn(0,0,-1.5*Scale)*ca(-45,0,0) --iPart{Char,1,1,1,co='Black',cf=cf,an=true}
  2127. MeshEffect(50,cf,nil,v3(3.5,3.5,2)*Scale,v3(11,11,6)*Scale,0.1,1,'White',as.ring)
  2128. for i=1,16 do
  2129. local cf=cf*ca(90,360*(i/16),0)*ca(45,0,0)
  2130. MeshEffect(40,cf,cf*cn(0,10*Scale,0),v3(0.2,2,0.2)*Scale,v3(1,5,1)*Scale,0.1,1,'','Sphere')
  2131. end
  2132. AOEFind(cf.p,6.5*Scale,function(Hum,v) Damage(Hum,2,true) Hum.Sit=true v.Velocity=cn(pTorso.Position,v.Position).lookVector*50 end)
  2133. wait(0.2)
  2134. Torso.Anchored=false
  2135. ReturnAnim()
  2136. Hum:MoveTo(Torso.Position,Torso)
  2137. Anim,LegAnim,ArmAnim='None','None','None'
  2138. elseif cmd=='beam' and (Anim=='None' or Anim=='Follow') then
  2139. Anim='beam'
  2140. local che =iPart{Char,1,1,1,sc=Scale,co=CC[1],ma=Mat} local chew=iNew{'Weld',che ,Part0=pTorso,Part1=che}
  2141. local che2=iPart{che ,0.8*Scale,0.2,0.8*Scale,co='Really black'} local che2w=iNew{'Weld',che2,Part0=che,Part1=che2}
  2142. local chem=iNew{'CylinderMesh',che} iNew{'CylinderMesh',che2}
  2143. local chest,chex,i={},0,0
  2144. for x=-1,1,2 do for y=-1,1,2 do i=i+1 chest[i]={pTorso[x..y..'-1']} chest[i][2]=chest[i][1].Weld chest[i][3]=chest[i][2].C0
  2145. local xx,yy,zz=chest[i][2].C0:toEulerAnglesXYZ() chest[i][4]=v3(mdeg(xx),mdeg(yy),mdeg(zz))
  2146. chest[i][5]=cn(0.45*x*Scale,0,-0.5*Scale)*chest[i][3] chest[i][6]=chest[i][4]+v3(0,-105*x,0) end end
  2147. local len=1.75
  2148. local dochest=function(v,chexx,adj)
  2149. local p=v/ASpeed
  2150. chex=adj*p
  2151. chem.Scale=v3(1,len*p,1)
  2152. chew.C0=ca(chexx+chex,0,0)*cn(0,len/2*p*Scale,0)
  2153. che2w.C0=cn(0,len/2*p*Scale,0)
  2154. for i=1,4 do SetWeld(chest[i][2],0,v,ASpeed,chest[i][3],chest[i][4],chest[i][5],chest[i][6],1) end
  2155. end
  2156. for v=1,ASpeed do if Tt then FaceBG(Tt.Position) end dochest(v,-90,-45) wait() end
  2157. local beam=iPart{Char,0.7*Scale,1,0.7*Scale,co='New Yeller',an=true,tr=0.3} beamm=iNew{'CylinderMesh',beam}
  2158. for i=1,ASpeed*3 do
  2159. local p=i/ASpeed*3
  2160. chex=90*math.sin((math.pi/2)/(ASpeed*3)*i)
  2161. chew.C0=ca(-135+chex,0,0)*cn(0,len/2*Scale,0)
  2162. local hit,pos=ray(che2.Position,che2.Position-che2.CFrame*cn(0,-1,0).p,Char)
  2163. local mag=(che2.Position-pos).magnitude local p1,p2=che2.Position+v3(mran2(-1,1),mran2(-1,1),mran2(-1,1))/3,pos+v3(mran2(-1,1),mran2(-1,1),mran2(-1,1))/3
  2164. beam.CFrame=cn(p1,p2)*cn(0,0,-mag/2)*ca(90,0,0) beamm.Scale=v3(1,mag+(Scale/3),1)
  2165. AOEFind(pos,Scale*2,function(Hum) Damage(Hum,2.5) end)
  2166. if i%2==0 then for i=1,5 do local cf=cn(pos)*ca(0,mran(-180,180),mran(-95,95)) MeshEffect(8,cf,cf*cn(0,Scale*2.2,0),v3(0.1,0.4,0.1)*Scale,v3(0.4,3,0.4)*Scale,0.2,1,CC[mran(2,3)],as.cone) end
  2167. MeshEffect(8,cn(pos),nil,v3(0.8,0.8,0.8)*Scale,v3(4,4,4)*Scale,0.2,1,CC[mran(2,3)],'Sphere') end
  2168. if Tt then FaceBG(Tt.Position) end
  2169. wait()
  2170. end
  2171. DoLoop(12,function(i) beam.Transparency=0.3+i*0.7 if i==1 then beam:Remove() end end)
  2172. for v=ASpeed,0,-1 do dochest(v,-90,45) wait() end
  2173. Stay(false)
  2174. che:Remove()
  2175. Anim='None'
  2176. ---------------------------------------------------------------------------=---WWWWWWWWWWWWWWWWWW
  2177. elseif cmd=='box' and (Anim=='None' or Anim=='Follow') then
  2178. Anim,ArmAnim='cart','cart'
  2179. for x=1,ASpeed do
  2180. SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(90,0,10),1)
  2181. SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,25),1)
  2182. SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(90,0,-10),1)
  2183. SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,-25),1)
  2184. wait()
  2185. end
  2186. Stay(true)
  2187. local spawn=RArm.CFrame*cn(0,-0.75*Scale-2,0)*ca(-90,0,0)
  2188. local des=iPart{Char,1,1,1,an=true,ma=Mat,cf=spawn,ca=false}
  2189. for i=1,6,0.2 do des.Size=v3(i,i,i) des.CFrame=spawn*cn(0,0,-i/2) wait() end
  2190. local cart=iNew{'Model',workspace,Name='Cart'}
  2191. local base=iPart{cart,4,1,5,ma=Mat,cf=des.CFrame} iNew{'BodyGyro',base}
  2192. for x=-1,1,2 do
  2193. local new=iPart{cart,0.5,4,5,ma=Mat,cf=base.CFrame} iNew{'Weld',new,Part0=base,Part1=new,C0=cn(1.75*x,2.5,0)}
  2194. local new=iPart{cart,3.5,4,0.5,ma=Mat,cf=base.CFrame} iNew{'Weld',new,Part0=base,Part1=new,C0=cn(0,2.5,2.25*x)}
  2195. end
  2196. for i=6,0.8,-0.2 do des.Size=v3(i,i,i) des.CFrame=spawn*cn(0,0,-i/2) wait() end des:Remove()
  2197. Stay(false)
  2198. ReturnAnim()
  2199. Anim,ArmAnim='None','None'
  2200. elseif cmd=='crush' and Grabbing and (Anim=='None' or Anim=='Follow') then
  2201. Anim,ArmAnim='crush','crush'
  2202. for x=1,ASpeed do
  2203. SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(80,0,-160),1)
  2204. SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,80),1)
  2205. SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(80,0,160),1)
  2206. SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,-80),1)
  2207. wait()
  2208. end
  2209. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
  2210. wait(0.2)
  2211. for x=1,ASpeed/2 do
  2212. SetWeld(wLSho,0,x,ASpeed/2,a,b,Oa,v3(80,0,-14),1)
  2213. SetWeld(wLArm,0,x,ASpeed/2,c,d,Oc,v3(0,0,80),1)
  2214. SetWeld(wRSho,0,x,ASpeed/2,e,f,Oe,v3(80,0,14),1)
  2215. SetWeld(wRArm,0,x,ASpeed/2,g,h,Og,v3(0,0,-80),1)
  2216. wait()
  2217. end
  2218. MeshEffect(35,Grabbing.Part1.CFrame,nil,v3(2,2,1)*Scale,v3(7,7,3)*Scale,0.3,1,'Light stone grey',as.ring)
  2219. local crushjo=60
  2220. pcall(function() for i,v in pairs({'Neck','Left Shoulder','Right Shoulder','Left Hip','Right Hip'}) do local w=Grabbing.Part1.Parent.Torso[v] w.C1=w.C1*ca(mran(-crushjo,crushjo),mran(-crushjo,crushjo),mran(-crushjo,crushjo)) end end)
  2221. local hit=Grabbing.Part1
  2222. Grabbing:Remove() Grabbing=nil
  2223. wait(2)
  2224. pcall(function() hit.Parent.Humanoid.PlatformStand=false end)
  2225. ReturnAnim()
  2226. Anim,ArmAnim='None','None'
  2227. elseif cmd=='eat' and Grabbing and (Anim=='None' or Anim=='Follow') then
  2228. Anim,ArmAnim='Eat','Eat'
  2229. for x=1,ASpeed*2 do
  2230. SetWeld(wRSho,0,x,ASpeed*2,Oe,Of,Oe,v3(135,0,15),1)
  2231. SetWeld(wRArm,0,x,ASpeed*2,Og,Oh,Og,v3(45,-10,-100),1)
  2232. wait()
  2233. end
  2234. wait(1)
  2235. for x=1,40 do
  2236. SetWeld(wRSho,0,1,1,Oe,Of,Oe,v3(135+mran(-3,3),0,15+mran(-3,3)),1)
  2237. SetWeld(wRArm,0,1,1,Og,Oh,Og,v3(45,-10+mran(-12,12),-100+mran(-3,3)),1)
  2238. wait(0.05)
  2239. if x%2==0 then
  2240. local cf=Grabbing.Part1.CFrame*ca(180,mran(-180,180),mran(-40,40))*cn(0,1.5,0)
  2241. MeshEffect(24,cf,cf*cn(0,10,0),v3(0.2,2,0.2),v3(0.4,5,0.4),0.1,1,'Really red','Sphere')
  2242. end
  2243. end
  2244. Grabbing.Part1:BreakJoints()
  2245. pcall(function() Grabbing.Part1.Parent.Head:Remove() end)
  2246. Grabbing:Remove() Grabbing=nil
  2247. wait(2)
  2248. ReturnAnim()
  2249. Anim,ArmAnim='None','None'
  2250. elseif cmd=='drop' and Grabbing then
  2251. local hum=Grabbing.Part1.Parent.Humanoid Grabbing:Remove() Grabbing=nil hum.PlatformStand=false
  2252. elseif LimbNames[Sep[1]] and (Anim=='None' or Anim=='Form') then
  2253. Anim,ArmAnim,LegAnim='Form','Form','Form'
  2254. local v1,v2=GetWeld(LimbNames[Sep[1]],0)
  2255. local sepx=se(',',Sep[2])
  2256. for x=1,ASpeed*2 do
  2257. SetWeld(LimbNames[Sep[1]],0,x,ASpeed*2,v1,v2,v1,v3(tonumber(sepx[1]),tonumber(sepx[2]),tonumber(sepx[3])),1)
  2258. wait()
  2259. end
  2260. elseif cmd=='plode' then
  2261. Char:BreakJoints() wait()
  2262. local Pressure=tonumber(sep[2]) or 50
  2263. fMarble(Char,function(v) v.Velocity=cn(Torso.Position,v.Position).lookVector*Pressure end)
  2264. for i,v in pairs(RootLimbs) do v.Velocity=cn(Torso.Position,v.Position).lookVector*Pressure end
  2265. elseif cmd=='explode' then
  2266. iNew{'Explosion',pTorso,Position=pTorso.Position,BlastRadius=Scale*20}
  2267. elseif cmd=='goto' then
  2268. pcall(function()
  2269. Hum:MoveTo(Player:GetMouse().Hit.p,Player:GetMouse().Target) end)
  2270. elseif cmd=='newscale' and tonumber(sep[2]) then
  2271. Char:BreakJoints()
  2272. Scale=tonumber(sep[2])
  2273. if Scale<0.5 then Scale=0.5 end
  2274. if Scale>=100 then Scale=100 end
  2275. elseif cmd=='nobox' then
  2276. for i,v in pairs(workspace:children()) do if v.Name=='Cart' then v:Remove() end end
  2277. elseif cmd=='die' then
  2278. Char:BreakJoints()
  2279. elseif cmd=='brick' then
  2280. iPart{workspace,12,30,30,cf=Player.Character.Torso.CFrame*cn(0,10,-20),tr=0.5,an=true}
  2281. elseif cmd=='test' then
  2282. local pt=Player.Character.Torso.CFrame
  2283. MeshEffect(35,pt*cn(0,5,0)*ca(90,0,0),nil,v3(2,2,1)*Scale,v3(7,7,3)*Scale,0.2,1,'Light stone grey',as.ring)
  2284. else
  2285. end
  2286. end))
  2287. end)
  2288. keys={}
  2289. NewAnim={}
  2290. Player:GetMouse().KeyDown:connect(function(k)
  2291. coroutine.resume(coroutine.create(function() keys[k]=true
  2292. if (k=='q' or k=='e') and (Anim=='None' or Anim=='Laser') and (ArmAnim=='None' or ArmAnim=='Laser') and not NewAnim[k] then
  2293. NewAnim[k]=true
  2294. local w1,w2=k=='q' and wLSho or wRSho,k=='q' and wLArm or wRArm
  2295. local x=k=='q' and -1 or 1
  2296. local aa,bb=GetWeld(w1,0)
  2297. local cc,dd=GetWeld(w2,0)
  2298. local targ=w1.Part1.CFrame*cn(0,-333,0)
  2299. local tips={}
  2300. local co=0
  2301. local sho1=iPart{Char,0.35,RArm.Size.y/Scale+0.15 ,0.35,sc=Scale,co=CC[1]} iNew{'Weld',sho1,Part0=k=='q' and LArm or RArm,Part1=sho1} iNew{'CylinderMesh',sho1}
  2302. local sho2=iPart{Char,0.3,RArm.Size.y/Scale+0.16,0.3,sc=Scale,co='Really black'} iNew{'Weld',sho2,Part0=sho1,Part1=sho2} iNew{'CylinderMesh',sho2}
  2303. for x=-1,1,2 do for z=-1,1,2 do tips[#tips+1]={(k=='q' and LArm or RArm)[x..'-1'..z].Weld}
  2304. co=co+0.25
  2305. local asd=tips[#tips]
  2306. asd[2],asd[3]=GetWeld(asd[1],0)
  2307. local cf=ca(0,360*co,0)*cn(0,asd[2].y*1.8,-0.75*Scale)*ca(-20,0,0)
  2308. asd[4]=cf.p
  2309. local a,b,c=cf:toEulerAnglesXYZ()
  2310. asd[5]=v3(mdeg(a),mdeg(b),mdeg(c))
  2311. end end
  2312. for u=1,ASpeed/2 do
  2313. for i=1,4 do local asd=tips[i]
  2314. SetWeld(asd[1],0,u,ASpeed/2,asd[2],asd[3],asd[4],asd[5],1)
  2315. end wait()
  2316. end
  2317. repeat Anim,ArmAnim,LaserOn='Laser','Laser',true wait()
  2318. for i=1,4 do tips[i][1].C0=ca(0,15*x,0)*tips[i][1].C0 end
  2319. targ=TweenV3(1,12,targ,Player:GetMouse().Hit.p)
  2320. w1.C0=pTorso.CFrame:toObjectSpace(cn(pTorso.CFrame*cn(1.5*Scale*x,0.5*Scale,0).p,targ))*ca(90,0,0)
  2321. w2.C0=cn(0,-0.75*Scale,0)
  2322. until not keys[k]
  2323. ClearWeld(w1) ClearWeld(w2) for i=1,4 do ClearWeld(tips[i][1]) tips[i][6],tips[i][7]=GetWeld(tips[i][1],0) end
  2324. local a,b=GetWeld(w1,0)
  2325. local c,d=GetWeld(w2,0)
  2326. for z=1,ASpeed/2 do
  2327. for i=1,4 do SetWeld(tips[i][1],0,z,ASpeed/2,tips[i][6],tips[i][7],tips[i][2],tips[i][3],1) end
  2328. SetWeld(w1,0,z,ASpeed/2,a,b,aa,bb,1)
  2329. SetWeld(w2,0,z,ASpeed/2,c,d,cc,dd,1)
  2330. wait()
  2331. end
  2332. sho1:Remove() sho2:Remove()
  2333. NewAnim[k]=false
  2334. Anim,ArmAnim,LaserOn='None','None',false
  2335. end
  2336. end)) end)
  2337. Player:GetMouse().KeyUp:connect(function(k) keys[k]=false end)
  2338. Player:GetMouse().Button1Down:connect(function()
  2339. Button=true
  2340. if keys.f and Player:GetMouse().Target and Anim=='None' then
  2341. Hum:MoveTo(Player:GetMouse().Hit.p,Player:GetMouse().Target)
  2342. elseif (keys.q or keys.e) and LaserOn then
  2343. local pick=keys.q and 'q' or 'e'
  2344. repeat
  2345. local ofs=(pick=='q' and LArm or RArm).CFrame*ca(90,0,0)
  2346. if pick=='q' and keys.e then pick='e'
  2347. elseif pick=='e' and keys.q then pick='q' end
  2348. local part=iPart{Char,0.2,0.5,0.2,sc=Scale,co=CC[mran(2,3)],an=true,ma=Mat} iNew{'CylinderMesh',part}
  2349. Projectile(ofs,2*Scale,part,ca(-90,0,0),function(hit,pos)
  2350. AOEFind(pos,Scale*2,function(Hum,v) Damage(Hum) end)
  2351. end,
  2352. function(pos)
  2353. for i=1,5 do local cf=cn(pos)*ca(0,mran(-180,180),mran(-95,95)) MeshEffect(8,cf,cf*cn(0,Scale*2.2,0),v3(0.07,0.3,0.07)*Scale,v3(0.4,3,0.4)*Scale,0.2,1,CC[mran(2,3)],as.cone) end
  2354. MeshEffect(8,cn(pos),nil,v3(0.1,0.1,0.1)*Scale,v3(3,3,3)*Scale,0.2,1,CC[mran(2,3)],'Sphere') part:Remove() end)
  2355. wait((keys.q and keys.e) and 0.2 or 0.4)
  2356. until not Button or (not keys.q and not keys.e)
  2357. elseif 'swag'=='sweg' then
  2358. end
  2359. end)
  2360. Player:GetMouse().Button1Up:connect(function()
  2361. Button=false
  2362. end)
  2363.  
  2364. WalkAnim=0
  2365. Walking=false
  2366. WalkMulp=1
  2367. WalkMax=16
  2368. Hum.WalkSpeed=18
  2369. tWS={1,1,1,1,1,1,1}
  2370.  
  2371. Marbler=0
  2372. local cou=0
  2373. while Char.Parent do
  2374. cou=cou+1
  2375. --if cou%2==0 then print(cou) end
  2376. if Hum.Health>0 then
  2377. if Torso.Velocity.y>5 then Torso.Velocity=v3(Torso.Velocity.x,5,Torso.Velocity.z) end
  2378. Walking=v3(Torso.Velocity.x,0,Torso.Velocity.z).magnitude>Hum.WalkSpeed-2 and true or false
  2379. if Walking and LegAnim=='None' then
  2380. WalkAnim=WalkAnim+WalkMulp
  2381. end
  2382. if WalkAnim>0 and not Walking then
  2383. WalkAnim=WalkAnim-1
  2384. elseif WalkAnim<0 and not Walking then
  2385. WalkAnim=WalkAnim+1
  2386. end
  2387. if math.abs(WalkAnim)>=WalkMax then WalkMulp=WalkMulp*-1 end
  2388. local WalkAdj=26
  2389. Neck.C0=Torso.CFrame:toObjectSpace(pHead.CFrame)
  2390. if ArmAnim=='None' then
  2391. SetWeld(wLSho,0,WalkAnim,WalkMax,Oa,Ob,Oa,v3(-WalkAdj*1.5,0,-10),1)
  2392. SetWeld(wLArm,0,WalkAnim,WalkMax,Oc,Od,Oc,v3(10+(WalkAnim>0 and WalkAdj or 0),0,10),1)
  2393. SetWeld(wRSho,0,WalkAnim,WalkMax,Oe,Of,Oe,v3(WalkAdj*1.5,0,10),1)
  2394. SetWeld(wRArm,0,WalkAnim,WalkMax,Og,Oh,Og,v3(10+(WalkAnim>0 and WalkAdj or 0),0,-10),1)
  2395. end
  2396. if LegAnim=='None' then
  2397. SetWeld(wLThi,0,WalkAnim,WalkMax,Oi,Oj,Oi,v3(15+WalkAdj,0,-5),1)
  2398. SetWeld(wLLeg,0,WalkAnim,WalkMax,Ok,Ol,Ok,v3(-15+(WalkAnim>0 and -WalkAdj or 0),0,5),1)
  2399. SetWeld(wRThi,0,WalkAnim,WalkMax,Om,On,Om,v3(15-WalkAdj,0,5),1)
  2400. SetWeld(wRLeg,0,WalkAnim,WalkMax,Oo,Op,Oo,v3(-15+(WalkAnim<0 and WalkAdj or 0),0,-5),1)
  2401. end
  2402. --[[
  2403. for i,v in pairs(Marble) do
  2404. v[1].C0=v[1].C0*ca(MarbleSpeed*v[2],MarbleSpeed*v[3],MarbleSpeed*v[4])
  2405. Marbler=Marbler+(MarbleSpeed*v[2])
  2406. if Marbler>MarbleMax then
  2407. v[2]=v[2]*-1
  2408. v[3]=v[3]*-1
  2409. v[4]=v[4]*-1
  2410. end
  2411. end --]]
  2412. if Anim=='Follow' and Target and Target:findFirstChild'Torso' and not BG.maxTorque~=v3(1,1,1)/0 then
  2413. Hum:MoveTo(Target.Torso.CFrame*cn(2.5*Scale,0,5*Scale).p,Target.Torso)
  2414. end
  2415. if Grabbing and (not Grabbing.Part1 or not Grabbing.Part1.Parent or Grabbing.Part1.Parent:findFirstChild'Humanoid'==nil or Grabbing.Part1.Parent.Humanoid.Health<1) then
  2416. Grabbing:Remove() Grabbing=nil
  2417. end
  2418. end--hleat
  2419. --DoLoop Package
  2420. for i,v in pairs(LoopFunctions) do
  2421. v[2]=v[2]+1
  2422. v[3](v[2]/v[1])
  2423. if v[1]<=v[2] then LoopFunctions[i]=nil end
  2424. end
  2425. local ws=18
  2426. for i=1,#tWS do ws=ws*tWS[i] end
  2427. Hum.WalkSpeed=ws
  2428. if Hum.MaxHealth~=8000 then Hum.MaxHealth=8000 Hum.Health=8000 end
  2429. Hum.Health=Hum.Health+0.1
  2430. wait(0.03)
  2431. end
  2432. ChatConnection:disconnect()
  2433. game:service'Debris':AddItem(script,0.5)
  2434. script.Disabled=true
Add Comment
Please, Sign In to add comment