Advertisement
sneakydodge123

stand

Sep 3rd, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.17 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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145.  
  146.  
  147.  
  148.  
  149. --//====================================================\\--
  150. --|| CREATED BY SHACKLUSTER, FOR DELTA1035
  151. --\\====================================================//--
  152. orbColor = "Really green" -- set this to whatever you want
  153.  
  154. wait(0.5)
  155. Player=game:GetService("Players").LocalPlayer
  156. Character=Player.Character
  157. PlayerGui=Player.PlayerGui
  158. Backpack=Player.Backpack
  159. Torso=Character.Torso
  160. Head=Character.Head
  161. Humanoid=Character.Humanoid
  162. Humanoid.WalkSpeed = 20
  163. m=Instance.new('Model',Character)
  164. LeftArm=Character["Left Arm"]
  165. LeftLeg=Character["Left Leg"]
  166. RightArm=Character["Right Arm"]
  167. RightLeg=Character["Right Leg"]
  168. LS=Torso["Left Shoulder"]
  169. LH=Torso["Left Hip"]
  170. RS=Torso["Right Shoulder"]
  171. RH=Torso["Right Hip"]
  172. Face = Head.face
  173. Neck=Torso.Neck
  174. it=Instance.new
  175. attacktype=1
  176. vt=Vector3.new
  177. cf=CFrame.new
  178. euler=CFrame.fromEulerAnglesXYZ
  179. angles=CFrame.Angles
  180. cloaked=false
  181. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  182. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  183. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  184. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  185. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  186. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  187. RootPart=Character.HumanoidRootPart
  188. RootJoint=RootPart.RootJoint
  189. RootCF=euler(-1.57,0,3.14)
  190. attack = false
  191. attackdebounce = false
  192. deb=false
  193. equipped=true
  194. hand=false
  195. MMouse=nil
  196. combo=0
  197. trispeed=.2
  198. attackmode='none'
  199. local idle=0
  200. local Anim="Idle"
  201.  
  202. it = Instance.new
  203.  
  204. local part = function(name,parent,brkclr,mtrl,rfl,trns,sz)
  205. local prt = it("Part",parent)
  206. prt.Name = name
  207. prt.CanCollide = false
  208. prt.BrickColor = BrickColor.new(brkclr)
  209. if brkclr == "Really black" and mtrl == "Neon" then prt.Color = Color3.new(0,0,0) end
  210. prt.Material = mtrl
  211. prt.Reflectance = rfl
  212. prt.Transparency = trns
  213. prt.Size = sz
  214. prt.Anchored = true
  215. return prt
  216. end
  217. local mesh = function(meshtype,parent,meshid,textureid,scale)
  218. local msh = it("SpecialMesh",parent)
  219. if meshtype == "FileMesh" then
  220. msh.MeshId = meshid
  221. msh.TextureId = textureid
  222. end
  223. msh.MeshType = meshtype
  224. msh.Scale = scale
  225. return(msh)
  226. end
  227. local weld = function(part1,part2,x1,y1,z1,x2,y2,z2)
  228. local w = it("Weld",part1)
  229. w.Part0 = part1
  230. w.Part1 = part2
  231. if part1.Anchored or part2.Anchored then
  232. part1.Anchored = false
  233. part2.Anchored = false
  234. end
  235. w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(z2),math.rad(y2),math.rad(x2)))
  236. return(w)
  237. end
  238. local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang)
  239. local emm = it("ParticleEmitter",parent)
  240. emm.Texture = tex
  241. emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
  242. emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
  243. emm.LightEmission = lightem
  244. emm.EmissionDirection = emdir
  245. emm.Lifetime = NumberRange.new(lif)
  246. emm.Rate = rate
  247. emm.Speed = NumberRange.new(speed)
  248. emm.RotSpeed = NumberRange.new(rotspeed)
  249. emm.SpreadAngle = Vector2.new(sprdang,sprdang)
  250. return(emm)
  251. end
  252.  
  253.  
  254. p = part("Part",m,"Black","Metal",0,0,Vector3.new(1.25, 0.1, 0.1))
  255. weld(Torso,p,0,1,0.5,0,0,0)
  256. p = part("Part",m,"Black","Metal",0,0,Vector3.new(0.1, 0.1, 1.1))
  257. weld(Torso,p,0.575,1,0,0,0,0)
  258. p = part("Part",m,"Black","Metal",0,0,Vector3.new(0.1, 0.1, 1.1))
  259. weld(Torso,p,-0.575,1,0,0,0,0)
  260. p = part("Part",m,"Black","Metal",0,0,Vector3.new(0.1, 0.85, 0.1))
  261. weld(Torso,p,0.2875,0.7125,-0.5,-45,0,0)
  262. p = part("Part",m,"Black","Metal",0,0,Vector3.new(0.1, 0.85, 0.1))
  263. weld(Torso,p,-0.2875,0.7125,-0.5,45,0,0)
  264. orb = part("Part",m,orbColor,"Neon",0,0,Vector3.new(0.25, 0.25, 0.25))
  265. mesh("Sphere",orb,"","",Vector3.new(1,1,1))
  266. orbWeld = weld(Torso,orb,0,0.425,-0.5,0,0,0)
  267. p = part("Part",m,"Black","Metal",0,0,Vector3.new(0.25, 0.25, 0.25))
  268. mesh("Sphere",p,"","",Vector3.new(0.5,1.5,0.5))
  269. weld(orb,p,0,0,0,0,0,0)
  270. p = part("Part",m,"Black","Metal",0,0,Vector3.new(0.25, 0.25, 0.25))
  271. mesh("FileMesh",p,"rbxassetid://168892432","",Vector3.new(0.06,0.06,0.06))
  272. weld(orb,p,0,0,0,0,0,-180)
  273. p = part("Part",m,"Black","Metal",0,0,Vector3.new(0.25, 0.25, 0.25))
  274. mesh("FileMesh",p,"rbxassetid://168892432","",Vector3.new(0.06,0.06,0.06))
  275. weld(orb,p,0,0,0,0,-180,0)
  276.  
  277. function spinOrb()
  278. while wait() do
  279. orbWeld.C0 = orbWeld.C0*angles(0,0.05,0)
  280. end
  281. end
  282.  
  283. delay(0,spinOrb)
  284.  
  285.  
  286.  
  287. wait(0.2)
  288.  
  289.  
  290.  
  291. Player = game:GetService("Players").LocalPlayer
  292. PlayerGui = Player.PlayerGui
  293. Cam = workspace.CurrentCamera
  294. Backpack = Player.Backpack
  295. Character = Player.Character
  296. Humanoid = Character.Humanoid
  297. Mouse = Player:GetMouse()
  298. RootPart = Character["HumanoidRootPart"]
  299. Torso = Character["Torso"]
  300. Head = Character["Head"]
  301. RightArm = Character["Right Arm"]
  302. LeftArm = Character["Left Arm"]
  303. RightLeg = Character["Right Leg"]
  304. LeftLeg = Character["Left Leg"]
  305. RootJoint = RootPart["RootJoint"]
  306. Neck = Torso["Neck"]
  307. RightShoulder = Torso["Right Shoulder"]
  308. LeftShoulder = Torso["Left Shoulder"]
  309. RightHip = Torso["Right Hip"]
  310. LeftHip = Torso["Left Hip"]
  311.  
  312. IT = Instance.new
  313. CF = CFrame.new
  314. VT = Vector3.new
  315. RAD = math.rad
  316. C3 = Color3.new
  317. UD2 = UDim2.new
  318. BRICKC = BrickColor.new
  319. ANGLES = CFrame.Angles
  320. EULER = CFrame.fromEulerAnglesXYZ
  321. COS = math.cos
  322. ACOS = math.acos
  323. SIN = math.sin
  324. ASIN = math.asin
  325. ABS = math.abs
  326. MRANDOM = math.random
  327. FLOOR = math.floor
  328.  
  329. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  330. local NEWMESH = IT(MESH)
  331. if MESH == "SpecialMesh" then
  332. NEWMESH.MeshType = MESHTYPE
  333. if MESHID ~= "nil" and MESHID ~= "" then
  334. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  335. end
  336. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  337. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  338. end
  339. end
  340. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  341. NEWMESH.Scale = SCALE
  342. NEWMESH.Parent = PARENT
  343. return NEWMESH
  344. end
  345.  
  346. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  347. local NEWPART = IT("Part")
  348. NEWPART.formFactor = FORMFACTOR
  349. NEWPART.Reflectance = REFLECTANCE
  350. NEWPART.Transparency = TRANSPARENCY
  351. NEWPART.CanCollide = false
  352. NEWPART.Locked = true
  353. NEWPART.Anchored = true
  354. if ANCHOR == false then
  355. NEWPART.Anchored = false
  356. end
  357. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  358. NEWPART.Name = NAME
  359. NEWPART.Size = SIZE
  360. NEWPART.Position = Torso.Position
  361. NEWPART.Material = MATERIAL
  362. NEWPART:BreakJoints()
  363. NEWPART.Parent = PARENT
  364. return NEWPART
  365. end
  366.  
  367. --//=================================\\
  368. --|| CUSTOMIZATION
  369. --\\=================================//
  370.  
  371. Player_Size = 1 --Size of the player.
  372. Animation_Speed = 3
  373. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  374.  
  375. local Speed = 16
  376. local Effects2 = {}
  377.  
  378. --//=================================\\
  379. --|| END OF CUSTOMIZATION
  380. --\\=================================//
  381.  
  382. local function weldBetween(a, b)
  383. local weldd = Instance.new("ManualWeld")
  384. weldd.Part0 = a
  385. weldd.Part1 = b
  386. weldd.C0 = CFrame.new()
  387. weldd.C1 = b.CFrame:inverse() * a.CFrame
  388. weldd.Parent = a
  389. return weldd
  390. end
  391.  
  392. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  393. local acs = Instance.new("Part")
  394. acs.CanCollide = false
  395. acs.Anchored = false
  396. acs.Size = Vector3.new(0,0,0)
  397. acs.CFrame = attachmentpart.CFrame
  398. acs.Parent = Character
  399. acs.BrickColor = color
  400. local meshs = Instance.new("SpecialMesh")
  401. meshs.MeshId = mesh
  402. meshs.TextureId = texture
  403. meshs.Parent = acs
  404. meshs.Scale = scale
  405. meshs.Offset = offset
  406. weldBetween(attachmentpart,acs)
  407. end
  408.  
  409. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  410. if TYPE == "Gem" then
  411. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  412. acs.Anchored = false
  413. acs.CanCollide = false
  414. acs.CFrame = PART.CFrame
  415. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  416. weldBetween(PART,acs)
  417. elseif TYPE == "Skull" then
  418. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  419. acs.Anchored = false
  420. acs.CanCollide = false
  421. acs.CFrame = PART.CFrame
  422. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  423. weldBetween(PART,acs)
  424. elseif TYPE == "Eye" then
  425. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  426. acs.Anchored = false
  427. acs.CanCollide = false
  428. acs.CFrame = PART.CFrame
  429. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  430. weldBetween(PART,acs)
  431. end
  432. end
  433.  
  434. --//=================================\\
  435. --|| USEFUL VALUES
  436. --\\=================================//
  437.  
  438. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  439. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  440. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  441. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  442. local CHANGEDEFENSE = 0
  443. local CHANGEDAMAGE = 0
  444. local CHANGEMOVEMENT = 0
  445. local ANIM = "Idle"
  446. local ATTACK = false
  447. local EQUIPPED = false
  448. local HOLD = false
  449. local COMBO = 1
  450. local Rooted = false
  451. local SINE = 0
  452. local KEYHOLD = false
  453. local CHANGE = 2 / Animation_Speed
  454. local WALKINGANIM = false
  455. local WALK = 0
  456. local VALUE1 = false
  457. local VALUE2 = false
  458. local GRABBED = nil
  459. local TORS = nil
  460. local ROBLOXIDLEANIMATION = IT("Animation")
  461. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  462. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  463. --ROBLOXIDLEANIMATION.Parent = Humanoid
  464. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  465. WEAPONGUI.Name = "Weapon GUI"
  466. local Weapon = IT("Model")
  467. Weapon.Name = "Adds"
  468. local Effects = IT("Folder", Weapon)
  469. Effects.Name = "Effects"
  470. local ANIMATOR = Humanoid.Animator
  471. local ANIMATE = Character.Animate
  472. local WELD = nil
  473. local TRUEFLOOR = nil
  474. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  475. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  476. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  477. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  478. local UNANCHOR = true
  479.  
  480. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  481. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  482. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  483. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  484. local CHANGEDEFENSE = 0
  485. local CHANGEDAMAGE = 0
  486. local CHANGEMOVEMENT = 0
  487. local ANIM = "Idle"
  488. local ATTACK = false
  489. local EQUIPPED = true
  490. local HOLD = false
  491. local COMBO = 1
  492. local Rooted = false
  493. local SINE = 0
  494. local KEYHOLD = false
  495. local CHANGE = 2 / Animation_Speed
  496. local WALKINGANIM = false
  497. local WALK = 0
  498. local VALUE1 = false
  499. local VALUE2 = false
  500. local ROBLOXIDLEANIMATION = IT("Animation")
  501. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  502. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  503. --ROBLOXIDLEANIMATION.Parent = Humanoid
  504. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  505. WEAPONGUI.Name = "Weapon GUI"
  506. local Effects = IT("Folder", Character)
  507. Effects.Name = "Effects"
  508. local ANIMATOR = Humanoid.Animator
  509. local ANIMATE = Character.Animate
  510. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  511. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  512. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  513. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  514. local UNANCHOR = true
  515.  
  516. local SKILLTEXTCOLOR = C3(255,0,0)
  517.  
  518. --//=================================\\
  519. --\\=================================//
  520.  
  521.  
  522. --//=================================\\
  523. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  524. --\\=================================//
  525.  
  526. ArtificialHB = Instance.new("BindableEvent", script)
  527. ArtificialHB.Name = "ArtificialHB"
  528.  
  529. script:WaitForChild("ArtificialHB")
  530.  
  531. frame = Frame_Speed
  532. tf = 0
  533. allowframeloss = false
  534. tossremainder = false
  535. lastframe = tick()
  536. script.ArtificialHB:Fire()
  537.  
  538. game:GetService("RunService").Heartbeat:connect(function(s, p)
  539. tf = tf + s
  540. if tf >= frame then
  541. if allowframeloss then
  542. script.ArtificialHB:Fire()
  543. lastframe = tick()
  544. else
  545. for i = 1, math.floor(tf / frame) do
  546. script.ArtificialHB:Fire()
  547. end
  548. lastframe = tick()
  549. end
  550. if tossremainder then
  551. tf = 0
  552. else
  553. tf = tf - frame * math.floor(tf / frame)
  554. end
  555. end
  556. end)
  557.  
  558. --//=================================\\
  559. --\\=================================//
  560.  
  561.  
  562.  
  563.  
  564.  
  565. --//=================================\\
  566. --|| SOME FUNCTIONS
  567. --\\=================================//
  568.  
  569. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  570. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  571. end
  572.  
  573. function PositiveAngle(NUMBER)
  574. if NUMBER >= 0 then
  575. NUMBER = 0
  576. end
  577. return NUMBER
  578. end
  579.  
  580. function NegativeAngle(NUMBER)
  581. if NUMBER <= 0 then
  582. NUMBER = 0
  583. end
  584. return NUMBER
  585. end
  586.  
  587. function Swait(NUMBER)
  588. if NUMBER == 0 or NUMBER == nil then
  589. ArtificialHB.Event:wait()
  590. else
  591. for i = 1, NUMBER do
  592. ArtificialHB.Event:wait()
  593. end
  594. end
  595. end
  596.  
  597. function QuaternionFromCFrame(cf)
  598. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  599. local trace = m00 + m11 + m22
  600. if trace > 0 then
  601. local s = math.sqrt(1 + trace)
  602. local recip = 0.5 / s
  603. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  604. else
  605. local i = 0
  606. if m11 > m00 then
  607. i = 1
  608. end
  609. if m22 > (i == 0 and m00 or m11) then
  610. i = 2
  611. end
  612. if i == 0 then
  613. local s = math.sqrt(m00 - m11 - m22 + 1)
  614. local recip = 0.5 / s
  615. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  616. elseif i == 1 then
  617. local s = math.sqrt(m11 - m22 - m00 + 1)
  618. local recip = 0.5 / s
  619. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  620. elseif i == 2 then
  621. local s = math.sqrt(m22 - m00 - m11 + 1)
  622. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  623. end
  624. end
  625. end
  626.  
  627. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  628. local xs, ys, zs = x + x, y + y, z + z
  629. local wx, wy, wz = w * xs, w * ys, w * zs
  630. local xx = x * xs
  631. local xy = x * ys
  632. local xz = x * zs
  633. local yy = y * ys
  634. local yz = y * zs
  635. local zz = z * zs
  636. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  637. end
  638.  
  639. function QuaternionSlerp(a, b, t)
  640. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  641. local startInterp, finishInterp;
  642. if cosTheta >= 0.0001 then
  643. if (1 - cosTheta) > 0.0001 then
  644. local theta = ACOS(cosTheta)
  645. local invSinTheta = 1 / SIN(theta)
  646. startInterp = SIN((1 - t) * theta) * invSinTheta
  647. finishInterp = SIN(t * theta) * invSinTheta
  648. else
  649. startInterp = 1 - t
  650. finishInterp = t
  651. end
  652. else
  653. if (1 + cosTheta) > 0.0001 then
  654. local theta = ACOS(-cosTheta)
  655. local invSinTheta = 1 / SIN(theta)
  656. startInterp = SIN((t - 1) * theta) * invSinTheta
  657. finishInterp = SIN(t * theta) * invSinTheta
  658. else
  659. startInterp = t - 1
  660. finishInterp = t
  661. end
  662. end
  663. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  664. end
  665.  
  666. function Clerp(a, b, t)
  667. local qa = {QuaternionFromCFrame(a)}
  668. local qb = {QuaternionFromCFrame(b)}
  669. local ax, ay, az = a.x, a.y, a.z
  670. local bx, by, bz = b.x, b.y, b.z
  671. local _t = 1 - t
  672. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  673. end
  674.  
  675. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  676. local frame = IT("Frame")
  677. frame.BackgroundTransparency = TRANSPARENCY
  678. frame.BorderSizePixel = BORDERSIZEPIXEL
  679. frame.Position = POSITION
  680. frame.Size = SIZE
  681. frame.BackgroundColor3 = COLOR
  682. frame.BorderColor3 = BORDERCOLOR
  683. frame.Name = NAME
  684. frame.Parent = PARENT
  685. return frame
  686. end
  687.  
  688. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  689. local label = IT("TextLabel")
  690. label.BackgroundTransparency = 1
  691. label.Size = UD2(1, 0, 1, 0)
  692. label.Position = UD2(0, 0, 0, 0)
  693. label.TextColor3 = TEXTCOLOR
  694. label.TextStrokeTransparency = STROKETRANSPARENCY
  695. label.TextTransparency = TRANSPARENCY
  696. label.FontSize = TEXTFONTSIZE
  697. label.Font = TEXTFONT
  698. label.BorderSizePixel = BORDERSIZEPIXEL
  699. label.TextScaled = false
  700. label.Text = TEXT
  701. label.Name = NAME
  702. label.Parent = PARENT
  703. return label
  704. end
  705.  
  706. function NoOutlines(PART)
  707. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  708. end
  709.  
  710.  
  711. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  712. local NEWWELD = IT(TYPE)
  713. NEWWELD.Part0 = PART0
  714. NEWWELD.Part1 = PART1
  715. NEWWELD.C0 = C0
  716. NEWWELD.C1 = C1
  717. NEWWELD.Parent = PARENT
  718. return NEWWELD
  719. end
  720.  
  721. function CreateSound(ID, PARENT, VOLUME, PITCH)
  722. local NEWSOUND = nil
  723. coroutine.resume(coroutine.create(function()
  724. NEWSOUND = IT("Sound", PARENT)
  725. NEWSOUND.Volume = VOLUME
  726. NEWSOUND.Pitch = PITCH
  727. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  728. Swait()
  729. NEWSOUND:play()
  730. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  731. end))
  732. return NEWSOUND
  733. end
  734.  
  735. function CFrameFromTopBack(at, top, back)
  736. local right = top:Cross(back)
  737. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  738. end
  739.  
  740. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  741. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  742. local mesh = IT("SpecialMesh",wave)
  743. mesh.MeshType = "FileMesh"
  744. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  745. mesh.Scale = SIZE
  746. mesh.Offset = VT(0,0,-SIZE.X/8)
  747. wave.CFrame = CFRAME
  748. coroutine.resume(coroutine.create(function(PART)
  749. for i = 1, WAIT do
  750. Swait()
  751. mesh.Scale = mesh.Scale + GROW
  752. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  753. if DOESROT == true then
  754. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  755. end
  756. wave.Transparency = wave.Transparency + (0.5/WAIT)
  757. if wave.Transparency > 0.99 then
  758. wave:remove()
  759. end
  760. end
  761. end))
  762. end
  763.  
  764. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  765. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  766. local mesh = IT("SpecialMesh",wave)
  767. mesh.MeshType = "FileMesh"
  768. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  769. mesh.Scale = SIZE
  770. mesh.Offset = VT(0,0,-SIZE.X/8)
  771. wave.CFrame = CFRAME
  772. coroutine.resume(coroutine.create(function(PART)
  773. for i = 1, WAIT do
  774. Swait()
  775. mesh.Scale = mesh.Scale + GROW
  776. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  777. if DOESROT == true then
  778. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  779. end
  780. wave.Transparency = wave.Transparency + (0.5/WAIT)
  781. if wave.Transparency > 0.99 then
  782. wave:remove()
  783. end
  784. end
  785. end))
  786. end
  787.  
  788. function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  789. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  790. local mesh = IT("SpecialMesh",wave)
  791. mesh.MeshType = "FileMesh"
  792. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  793. mesh.Scale = SIZE
  794. mesh.Offset = VT(0,0,-SIZE.X/8)
  795. wave.CFrame = CFRAME
  796. coroutine.resume(coroutine.create(function(PART)
  797. for i = 1, WAIT do
  798. Swait()
  799. mesh.Scale = mesh.Scale + GROW
  800. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  801. if DOESROT == true then
  802. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  803. end
  804. wave.Transparency = wave.Transparency + (0.5/WAIT)
  805. if wave.Transparency > 0.99 then
  806. wave:remove()
  807. end
  808. end
  809. end))
  810. end
  811.  
  812. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  813. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  814. local mesh = IT("SpecialMesh",wave)
  815. mesh.MeshType = "FileMesh"
  816. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  817. mesh.Scale = SIZE
  818. mesh.Offset = VT(0,0,-SIZE.X/8)
  819. wave.CFrame = CFRAME
  820. coroutine.resume(coroutine.create(function(PART)
  821. for i = 1, WAIT do
  822. Swait()
  823. mesh.Scale = mesh.Scale + GROW
  824. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  825. if DOESROT == true then
  826. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  827. end
  828. wave.Transparency = wave.Transparency + (0.5/WAIT)
  829. if wave.Transparency > 0.99 then
  830. wave:remove()
  831. end
  832. end
  833. end))
  834. end
  835.  
  836. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  837. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  838. local mesh = IT("SpecialMesh",wave)
  839. mesh.MeshType = "FileMesh"
  840. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  841. mesh.Scale = SIZE
  842. wave.CFrame = CFRAME
  843. coroutine.resume(coroutine.create(function(PART)
  844. for i = 1, WAIT do
  845. Swait()
  846. mesh.Scale = mesh.Scale + GROW
  847. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  848. if DOESROT == true then
  849. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  850. end
  851. wave.Transparency = wave.Transparency + (0.5/WAIT)
  852. if wave.Transparency > 0.99 then
  853. wave:remove()
  854. end
  855. end
  856. end))
  857. end
  858.  
  859. function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  860. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  861. local mesh = IT("SpecialMesh",wave)
  862. mesh.MeshType = "FileMesh"
  863. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  864. mesh.Scale = SIZE
  865. wave.CFrame = CFRAME
  866. coroutine.resume(coroutine.create(function(PART)
  867. for i = 1, WAIT do
  868. Swait()
  869. mesh.Scale = mesh.Scale + GROW
  870. if DOESROT == true then
  871. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  872. end
  873. wave.Transparency = wave.Transparency + (0.5/WAIT)
  874. if wave.Transparency > 0.99 then
  875. wave:remove()
  876. end
  877. end
  878. end))
  879. end
  880.  
  881. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  882. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  883. local mesh = IT("SpecialMesh",wave)
  884. mesh.MeshType = "FileMesh"
  885. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  886. mesh.Scale = SIZE
  887. mesh.Offset = VT(0,0,0)
  888. wave.CFrame = CFRAME
  889. coroutine.resume(coroutine.create(function(PART)
  890. for i = 1, WAIT do
  891. Swait()
  892. mesh.Scale = mesh.Scale + GROW
  893. if DOESROT == true then
  894. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  895. end
  896. wave.Transparency = wave.Transparency + (0.5/WAIT)
  897. if wave.Transparency > 0.99 then
  898. wave:remove()
  899. end
  900. end
  901. end))
  902. end
  903.  
  904. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  905. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  906. local mesh = IT("SpecialMesh",wave)
  907. mesh.MeshType = "Sphere"
  908. mesh.Scale = SIZE
  909. mesh.Offset = VT(0,0,0)
  910. wave.CFrame = CFRAME
  911. coroutine.resume(coroutine.create(function(PART)
  912. for i = 1, WAIT do
  913. Swait()
  914. mesh.Scale = mesh.Scale + GROW
  915. wave.Transparency = wave.Transparency + (1/WAIT)
  916. if wave.Transparency > 0.99 then
  917. wave:remove()
  918. end
  919. end
  920. end))
  921. end
  922.  
  923. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
  924. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  925. local mesh = IT("BlockMesh",wave)
  926. wave.CFrame = CFRAME
  927. coroutine.resume(coroutine.create(function(PART)
  928. for i = 1, WAIT do
  929. Swait()
  930. mesh.Scale = mesh.Scale + GROW
  931. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  932. wave.Transparency = wave.Transparency + (1/WAIT)
  933. if wave.Transparency > 0.99 then
  934. wave:remove()
  935. end
  936. end
  937. end))
  938. end
  939.  
  940. function MakeForm(PART,TYPE)
  941. if TYPE == "Cyl" then
  942. local MSH = IT("CylinderMesh",PART)
  943. elseif TYPE == "Ball" then
  944. local MSH = IT("SpecialMesh",PART)
  945. MSH.MeshType = "Sphere"
  946. elseif TYPE == "Wedge" then
  947. local MSH = IT("SpecialMesh",PART)
  948. MSH.MeshType = "Wedge"
  949. elseif TYPE == "Head" then
  950. local MSH = IT("SpecialMesh",PART)
  951. MSH.Scale = VT(1.25,1.25,1.25)
  952. end
  953. end
  954.  
  955. function CheckTableForString(Table, String)
  956. for i, v in pairs(Table) do
  957. if string.find(string.lower(String), string.lower(v)) then
  958. return true
  959. end
  960. end
  961. return false
  962. end
  963.  
  964. function CheckIntangible(Hit)
  965. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  966. if Hit and Hit.Parent then
  967. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  968. return true
  969. end
  970. end
  971. return false
  972. end
  973.  
  974. Debris = game:GetService("Debris")
  975.  
  976. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  977. local Direction = CFrame.new(StartPos, Vec).lookVector
  978. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  979. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  980. if RayHit and CheckIntangible(RayHit) then
  981. if DelayIfHit then
  982. wait()
  983. end
  984. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  985. end
  986. return RayHit, RayPos, RayNormal
  987. end
  988.  
  989. function turnto(position)
  990. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  991. end
  992.  
  993. --//=================================\\
  994. --|| WEAPON CREATION
  995. --\\=================================//
  996.  
  997. local STAND = IT("Folder",Character)
  998. STAND.Name = "Stand"
  999.  
  1000. local SkinColor = "Maroon"
  1001.  
  1002. local STorso = CreatePart(3, STAND, "SmoothPlastic", 0, 0, SkinColor, "Torso", VT(2,2,1),false)
  1003. local SRoot = CreateWeldOrSnapOrMotor("Weld", STorso, RootPart, STorso, CF(1, 2, 3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1004.  
  1005. local SHead = CreatePart(3, STAND, "SmoothPlastic", 0, 0, SkinColor, "Head", VT(1,1,1),false)
  1006. MakeForm(SHead,"Head")
  1007. local SNeck = CreateWeldOrSnapOrMotor("Weld", SHead, STorso, SHead, CF(0, 1.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1008.  
  1009. local SRightArm = CreatePart(3, STAND, "SmoothPlastic", 0, 0, SkinColor, "Right Arm", VT(1, 2, 1),false)
  1010. local SShoulder1 = CreateWeldOrSnapOrMotor("Weld", SRightArm, STorso, SRightArm, CF(1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(12)), CF(0, 0, 0))
  1011.  
  1012. local SLeftArm = CreatePart(3, STAND, "SmoothPlastic", 0, 0, SkinColor, "Left Arm", VT(1, 2, 1),false)
  1013. local SShoulder2 = CreateWeldOrSnapOrMotor("Weld", SLeftArm, STorso, SLeftArm, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)), CF(0, 0, 0))
  1014.  
  1015. local SRightLeg = CreatePart(3, STAND, "SmoothPlastic", 0, 0, SkinColor, "Right Leg", VT(1, 2, 1),false)
  1016. local SHip1 = CreateWeldOrSnapOrMotor("Weld", SRightLeg, STorso, SRightLeg, CF(0.55, -2, 0) * ANGLES(RAD(0), RAD(0), RAD(6)), CF(0, 0, 0))
  1017.  
  1018. local SLeftLeg = CreatePart(3, STAND, "SmoothPlastic", 0, 0, SkinColor, "Left Leg", VT(1, 2, 1),false)
  1019. local SHip2 = CreateWeldOrSnapOrMotor("Weld", SLeftLeg, STorso, SLeftLeg, CF(-0.55, -2, 0) * ANGLES(RAD(0), RAD(0), RAD(-6)), CF(0, 0, 0))
  1020.  
  1021. --ACCESSORIES--
  1022. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(0,0,0),false)
  1023. local mesh = CreateMesh("SpecialMesh", PART, "FileMesh", "340617875", "", VT(3.2,3.2,3.2), VT(0,0, 0))
  1024. CreateWeldOrSnapOrMotor("Weld", PART, STorso, PART, CF(0,1.2,-0.05) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1025.  
  1026. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(0.8,0.8,0),false)
  1027. CreateWeldOrSnapOrMotor("Weld", PART, STorso, PART, CF(0.45,0.42,-0.495) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1028. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(0.8,0.8,0),false)
  1029. CreateWeldOrSnapOrMotor("Weld", PART, STorso, PART, CF(-0.45,0.42,-0.495) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1030. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(0.4,0.4,0),false)
  1031. CreateWeldOrSnapOrMotor("Weld", PART, STorso, PART, CF(0.25,-0.23,-0.495) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1032. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(0.4,0.4,0),false)
  1033. CreateWeldOrSnapOrMotor("Weld", PART, STorso, PART, CF(-0.25,-0.23,-0.495) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1034. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(0.4,0.4,0),false)
  1035. CreateWeldOrSnapOrMotor("Weld", PART, STorso, PART, CF(0.25,-0.68,-0.495) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1036. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(0.4,0.4,0),false)
  1037. CreateWeldOrSnapOrMotor("Weld", PART, STorso, PART, CF(-0.25,-0.68,-0.495) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1038.  
  1039. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Mid gray", "Accessory", VT(0.5,1,1.01),false)
  1040. CreateWeldOrSnapOrMotor("Weld", PART, STorso, PART, CF(0.775,-0.55,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1041. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Mid gray", "Accessory", VT(0.5,1,1.01),false)
  1042. CreateWeldOrSnapOrMotor("Weld", PART, STorso, PART, CF(-0.775,-0.55,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1043.  
  1044. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(1.01,0.8,1.01),false)
  1045. CreateWeldOrSnapOrMotor("Weld", PART, SRightArm, PART, CF(0,0.75,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1046. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(1.01,0.8,1.01),false)
  1047. CreateWeldOrSnapOrMotor("Weld", PART, SLeftArm, PART, CF(0,0.75,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1048. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Mid gray", "Accessory", VT(1.01,0.3,1.01),false)
  1049. CreateWeldOrSnapOrMotor("Weld", PART, SRightArm, PART, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1050. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Mid gray", "Accessory", VT(1.01,0.3,1.01),false)
  1051. CreateWeldOrSnapOrMotor("Weld", PART, SLeftArm, PART, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1052.  
  1053. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(1.01,0.8,0.5),false)
  1054. CreateWeldOrSnapOrMotor("Weld", PART, SRightLeg, PART, CF(0,0.75,-0.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1055. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(1.01,0.8,0.5),false)
  1056. CreateWeldOrSnapOrMotor("Weld", PART, SLeftLeg, PART, CF(0,0.75,-0.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1057. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Mid gray", "Accessory", VT(1.01,0.3,1.01),false)
  1058. CreateWeldOrSnapOrMotor("Weld", PART, SRightLeg, PART, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1059. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Mid gray", "Accessory", VT(1.01,0.3,1.01),false)
  1060. CreateWeldOrSnapOrMotor("Weld", PART, SLeftLeg, PART, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1061.  
  1062. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, "Really black", "Accessory", VT(1.0001,1.0001,1.0001),false)
  1063. MakeForm(PART,"Head")
  1064. CreateWeldOrSnapOrMotor("Weld", PART, SHead, PART, CF(0,0,-0.005) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1065. local PART = CreatePart(3, STAND, "Neon", 0, 0, "Really red", "Accessory", VT(0.8,0.2,0.8),false)
  1066. MakeForm(PART,"Cyl")
  1067. CreateWeldOrSnapOrMotor("Weld", PART, SHead, PART, CF(0,0.2,-0.25) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1068. local PART = CreatePart(3, STAND, "SmoothPlastic", 0, 0, SkinColor, "Accessory", VT(0.5,0.4,0.5),false)
  1069. MakeForm(PART,"Cyl")
  1070. CreateWeldOrSnapOrMotor("Weld", PART, SHead, PART, CF(0,-0.35,-0.4) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1071. ---------------
  1072.  
  1073. for _, c in pairs(STAND:GetChildren()) do
  1074. if c.ClassName == "Part" then
  1075. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1076. end
  1077. end
  1078.  
  1079. Humanoid.Died:connect(function()
  1080. ATTACK = true
  1081. end)
  1082.  
  1083. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1084. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1085. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1086. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1087.  
  1088. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Flare Pulse", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0.5, "Text 1")
  1089. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Grab Crusher", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0.5, "Text 2")
  1090. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Laser Slash", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0.5, "Text 3")
  1091. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Projectile", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0.5, "Text 4")
  1092.  
  1093. --//=================================\\
  1094. --|| DAMAGE FUNCTIONS
  1095. --\\=================================//
  1096.  
  1097. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1098. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1099. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1100. local BODYGYRO = IT("BodyGyro", STATPART)
  1101. local BODYPOSITION = IT("BodyPosition", STATPART)
  1102. BODYPOSITION.P = 2000
  1103. BODYPOSITION.D = 100
  1104. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1105. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1106. game:GetService("Debris"):AddItem(STATPART ,5)
  1107. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1108. BILLBOARDGUI.Adornee = STATPART
  1109. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1110. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1111. BILLBOARDGUI.AlwaysOnTop = false
  1112. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1113. TEXTLABEL.BackgroundTransparency = 1
  1114. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1115. TEXTLABEL.Text = TEXT
  1116. TEXTLABEL.Font = "SciFi"
  1117. TEXTLABEL.FontSize="Size42"
  1118. TEXTLABEL.TextColor3 = C3(1,1,1)
  1119. TEXTLABEL.TextStrokeTransparency = 1
  1120. TEXTLABEL.TextScaled = true
  1121. TEXTLABEL.TextWrapped = true
  1122. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1123. if LABELTYPE == "Normal" then
  1124. for i = 1, 30 do
  1125. Swait()
  1126. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  1127. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1128. end
  1129. elseif LABELTYPE == "Debuff" then
  1130. for i = 1, 30 do
  1131. Swait()
  1132. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  1133. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1134. end
  1135. elseif LABELTYPE == "Shock" then
  1136. local ORIGIN = STATPART.Position
  1137. for i = 1, 30 do
  1138. Swait()
  1139. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  1140. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1141. end
  1142. end
  1143. THEPART.Parent = nil
  1144. end),STATPART, BODYPOSITION, TEXTLABEL)
  1145. end
  1146.  
  1147. --//=================================\\
  1148. --|| DAMAGING
  1149. --\\=================================//
  1150.  
  1151. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  1152. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1153. defence.Name = ("HitBy"..Player.Name)
  1154. game:GetService("Debris"):AddItem(defence, 0.5)
  1155. if Humanoid.Health ~= 0 then
  1156. local CritChance = MRANDOM(1,100)
  1157. if CritChance < CritRate + 1 then
  1158. Damage = Damage*CritMultiplier
  1159. end
  1160. if Damage > Humanoid.Health then
  1161. Damage = Humanoid.Health
  1162. end
  1163. Humanoid.Health = Humanoid.Health - Damage
  1164. if Humanoid.Parent:FindFirstChild("Head") then
  1165. if CritChance < CritRate + 1 then
  1166. StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(0, 0, 0))
  1167. else
  1168. StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
  1169. end
  1170. end
  1171. end
  1172. end
  1173.  
  1174. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  1175. local dmg = math.random(min,max)
  1176. for i,v in ipairs(workspace:GetChildren()) do
  1177. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1178. local body = v:GetChildren()
  1179. for part = 1, #body do
  1180. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1181. if(body[part].Position - position).Magnitude < radius then
  1182. if v.ClassName == "Model" then
  1183. if v:FindFirstChildOfClass("Humanoid") then
  1184. if CanBeDodgedByJumping == true then
  1185. if body[part].Position.Y < position.Y+5 then
  1186. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1187. end
  1188. else
  1189. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1190. end
  1191. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1192. end
  1193. end
  1194. end
  1195. end
  1196. end
  1197. end
  1198. if v:FindFirstChild("HitBy"..Player.Name) then
  1199. v:FindFirstChild("HitBy"..Player.Name):remove()
  1200. end
  1201. end
  1202. end
  1203.  
  1204. --//=================================\\
  1205. --|| ATTACK FUNCTIONS AND STUFF
  1206. --\\=================================//
  1207.  
  1208. function PoseAllOut()
  1209. coroutine.resume(coroutine.create(function()
  1210. for i=0, 1, 0.1 / Animation_Speed do
  1211. Swait()
  1212. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1213. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1214. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(180), RAD(-145)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1215. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(180), RAD(145)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1216. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1217. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1218. end
  1219. end))
  1220. end
  1221.  
  1222. function PoseGoForward()
  1223. coroutine.resume(coroutine.create(function()
  1224. for i=0, 1, 0.1 / Animation_Speed do
  1225. Swait()
  1226. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1227. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.5 / Animation_Speed)
  1228. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1229. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1230. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1231. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1232. end
  1233. end))
  1234. end
  1235.  
  1236.  
  1237. function AttackTemplate2()
  1238. ATTACK = true
  1239. Rooted = false
  1240. VALUE1 = true
  1241. for i=0, 1, 0.1 / Animation_Speed do
  1242. Swait()
  1243. SRoot.C0 = Clerp(SRoot.C0, CF(1, 2 + 0.3 * COS(SINE / 12), 3) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1244. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1245. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(12)), 0.15 / Animation_Speed)
  1246. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 0.15 / Animation_Speed)
  1247. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.15 / Animation_Speed)
  1248. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.15 / Animation_Speed)
  1249. end
  1250. VALUE1 = false
  1251. ATTACK = false
  1252. Rooted = false
  1253. end
  1254.  
  1255. function FlarePulse()
  1256. ATTACK = true
  1257. Rooted = false
  1258. VALUE1 = true
  1259. PoseGoForward()
  1260. for i=0, 1, 0.1 / Animation_Speed do
  1261. Swait()
  1262. SRoot.C0 = Clerp(SRoot.C0, CF(0, 2 + 0.3 * COS(SINE / 12), -3) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1263. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1264. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1,0.5,-1) * ANGLES(RAD(90), RAD(0), RAD(-45)), 0.5 / Animation_Speed)
  1265. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1,0.5,-1) * ANGLES(RAD(90), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1266. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.5 / Animation_Speed)
  1267. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.5 / Animation_Speed)
  1268. end
  1269. CreateSound("84005018", STorso, 1, 1)
  1270. AoEDamage(STorso.CFrame*CF(0,0.5,-3).p,8,15,26,25,3,2,false)
  1271. MagicSphere(VT(6,6,6),15,STorso.CFrame*CF(0,0.5,-3),"Maroon",VT(0.5,0.5,0.5))
  1272. MagicSphere(VT(5,5,5),15,STorso.CFrame*CF(0,0.5,-3),"Really red",VT(0.5,0.5,0.5))
  1273. for i=0, 1, 0.1 / Animation_Speed do
  1274. Swait()
  1275. SRoot.C0 = Clerp(SRoot.C0, CF(0, 2 + 0.3 * COS(SINE / 12), -3) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1276. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1277. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.75,0.5,-1) * ANGLES(RAD(90), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1278. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.75,0.5,-1) * ANGLES(RAD(90), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1279. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.5 / Animation_Speed)
  1280. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.5 / Animation_Speed)
  1281. end
  1282. VALUE1 = false
  1283. ATTACK = false
  1284. Rooted = false
  1285. end
  1286.  
  1287. function GrabCrusher()
  1288. ATTACK = true
  1289. Rooted = false
  1290. VALUE1 = true
  1291. local GRABBEDHUMAN = nil
  1292. local GRABBEDPARENT = nil
  1293. PoseGoForward()
  1294. for i=0, 1, 0.1 / Animation_Speed do
  1295. Swait()
  1296. SRoot.C0 = Clerp(SRoot.C0, CF(3, 2, 3) * ANGLES(RAD(0), RAD(-25), RAD(0)), 0.5 / Animation_Speed)
  1297. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(25), RAD(0)), 0.5 / Animation_Speed)
  1298. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,0.5,-0.4) * ANGLES(RAD(30), RAD(0), RAD(12)), 0.5 / Animation_Speed)
  1299. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 0.5 / Animation_Speed)
  1300. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.5 / Animation_Speed)
  1301. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.5 / Animation_Speed)
  1302. end
  1303. SRightArm.CanCollide = true
  1304. CreateSound("134012322", STorso, 1, 2)
  1305. local HIT = SRightArm.Touched:Connect(function(hit)
  1306. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then
  1307. local HUMAN = hit.Parent:FindFirstChildOfClass("Humanoid")
  1308. if HUMAN.Health > 0 then
  1309. GRABBEDHUMAN = HUMAN
  1310. GRABBEDPARENT = hit.Parent
  1311. end
  1312. end
  1313. end)
  1314. for i=0, 0.05, 0.1 / Animation_Speed do
  1315. Swait()
  1316. SRoot.C0 = Clerp(SRoot.C0, CF(1, 1.5, -6) * ANGLES(RAD(-25), RAD(45), RAD(0)), 2 / Animation_Speed)
  1317. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(-35), RAD(0)), 2 / Animation_Speed)
  1318. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,0.5,-0.6) * ANGLES(RAD(70), RAD(25), RAD(12)), 2 / Animation_Speed)
  1319. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 2 / Animation_Speed)
  1320. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.15 / Animation_Speed)
  1321. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
  1322. if GRABBEDPARENT ~= nil then
  1323. break
  1324. end
  1325. end
  1326. for i=0, 1, 0.1 / Animation_Speed do
  1327. Swait()
  1328. SRoot.C0 = Clerp(SRoot.C0, CF(1, 1.5, -6) * ANGLES(RAD(-25), RAD(45), RAD(0)), 2 / Animation_Speed)
  1329. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(-35), RAD(0)), 2 / Animation_Speed)
  1330. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,1,-0.6) * ANGLES(RAD(120), RAD(35), RAD(12)), 2 / Animation_Speed)
  1331. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 2 / Animation_Speed)
  1332. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.15 / Animation_Speed)
  1333. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
  1334. if GRABBEDPARENT ~= nil then
  1335. break
  1336. end
  1337. end
  1338. SRightArm.CanCollide = false
  1339. if GRABBEDPARENT ~= nil then
  1340. local TORS = GRABBEDPARENT:FindFirstChild("Torso") or GRABBEDPARENT:FindFirstChild("UpperTorso")
  1341. if TORS ~= nil then
  1342. local GRAB = CreatePart(3, STAND, "Marble", 0, 1, "Pearl", "GrabPart", VT(0,0,0),false)
  1343. local BODYGYRO = IT("BodyGyro", GRAB)
  1344. local BODYPOSITION = IT("BodyPosition", GRAB)
  1345. BODYPOSITION.P = 200000
  1346. BODYPOSITION.D = 10000
  1347. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1348. local WELD = CreateWeldOrSnapOrMotor("Weld", GRAB, TORS, GRAB, CF(0,-0.35,-0.4) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1349. Rooted = true
  1350. PoseAllOut()
  1351. CreateSound("300208109", Torso, 3, 1)
  1352. GRABBEDHUMAN.PlatformStand = true
  1353. for i = 1, 3 do
  1354. GRAB.CFrame = SRightArm.CFrame * CF(0,-1.5,-0.25) * ANGLES(RAD(-90), RAD(0), RAD(0))
  1355. for i=0, 0.6, 0.1 / Animation_Speed do
  1356. Swait()
  1357. if GRABBEDHUMAN.Health == 0 then
  1358. break
  1359. end
  1360. GRAB.CFrame = SRightArm.CFrame * CF(0,-1.5,-0.25) * ANGLES(RAD(-90), RAD(0), RAD(0))
  1361. SRoot.C0 = Clerp(SRoot.C0, CF(0, 5, -6) * ANGLES(RAD(-90), RAD(45), RAD(0)), 0.25 / Animation_Speed)
  1362. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1363. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,0.5,-1) * ANGLES(RAD(90), RAD(0), RAD(45)), 0.25 / Animation_Speed)
  1364. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 0.25 / Animation_Speed)
  1365. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.25 / Animation_Speed)
  1366. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.25 / Animation_Speed)
  1367. end
  1368. for i=0, 0.1, 0.1 / Animation_Speed do
  1369. Swait()
  1370. if GRABBEDHUMAN.Health == 0 then
  1371. break
  1372. end
  1373. GRAB.CFrame = SRightArm.CFrame * CF(0,-1.5,-0.25) * ANGLES(RAD(-90), RAD(0), RAD(0))
  1374. SRoot.C0 = Clerp(SRoot.C0, CF(0, 0.25, -6) * ANGLES(RAD(-90), RAD(45), RAD(0)), 0.8)
  1375. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8)
  1376. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,0.5,-1) * ANGLES(RAD(90), RAD(0), RAD(45)), 0.8)
  1377. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 0.8)
  1378. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.8)
  1379. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.8)
  1380. end
  1381. if GRABBEDHUMAN.Health == 0 then
  1382. break
  1383. end
  1384. CreateSound("289842971", TORS, 3, 1)
  1385. ApplyDamage(GRABBEDHUMAN,15,0,0)
  1386. end
  1387. GRABBEDHUMAN.PlatformStand = false
  1388. TORS.Velocity = VT(0,0,0)
  1389. GRAB:remove()
  1390. end
  1391. end
  1392. for i=0, 1, 0.1 / Animation_Speed do
  1393. SRoot.C0 = Clerp(SRoot.C0, CF(1, 2, 3) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1394. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1395. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(12)), 0.15 / Animation_Speed)
  1396. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 0.15 / Animation_Speed)
  1397. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.15 / Animation_Speed)
  1398. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.15 / Animation_Speed)
  1399. end
  1400. VALUE1 = false
  1401. ATTACK = false
  1402. Rooted = false
  1403. end
  1404.  
  1405. function Taunt()
  1406. ATTACK = true
  1407. Rooted = false
  1408. VALUE1 = true
  1409. CreateSound("300208109", Torso, 1, 1)
  1410. PoseGoForward()
  1411. for i=0, 3, 0.1 / Animation_Speed do
  1412. Swait()
  1413. SRoot.C0 = Clerp(SRoot.C0, CF(3, 2 + 0.3 * COS(SINE / 12), -2) * ANGLES(RAD(-25), RAD(-45), RAD(0)), 0.15 / Animation_Speed)
  1414. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(25), RAD(45), RAD(0)), 0.15 / Animation_Speed)
  1415. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.25,1,-1) * ANGLES(RAD(150), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1416. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 0.15 / Animation_Speed)
  1417. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.15 / Animation_Speed)
  1418. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.15 / Animation_Speed)
  1419. end
  1420. CreateSound("616594063", Torso, 1, 1)
  1421. for i=0, 0.3, 0.1 / Animation_Speed do
  1422. Swait()
  1423. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1424. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1425. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2, 0.5, -0.45) * ANGLES(RAD(90), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1426. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2, 0.5, -0.45) * ANGLES(RAD(90), RAD(0), RAD(35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1427. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1428. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1429. end
  1430. for i = 1, 2 do
  1431. for i=0, 0.3, 0.1 / Animation_Speed do
  1432. Swait()
  1433. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1434. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1435. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2, 0.5, -0.45) * ANGLES(RAD(90), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1436. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2, 0.5, -0.45) * ANGLES(RAD(90), RAD(0), RAD(35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1437. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1438. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1439. end
  1440. for i=0, 0.3, 0.1 / Animation_Speed do
  1441. Swait()
  1442. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1443. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1444. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.85) * ANGLES(RAD(90), RAD(0), RAD(-55)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1445. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -0.85) * ANGLES(RAD(90), RAD(0), RAD(55)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1446. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1447. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1448. end
  1449. if GRABBED ~= nil then
  1450. if TORS ~= nil then
  1451. CreateSound("743886825", TORS, 3, 1)
  1452. GRABBED:FindFirstChildOfClass("Humanoid").Health = GRABBED:FindFirstChildOfClass("Humanoid").Health - 5
  1453. StatLabel("Normal", TORS.CFrame * CF(0, 0 + (TORS.Size.z - 1), 0), 5, C3(0, 0, 0))
  1454. end
  1455. end
  1456. end
  1457. VALUE1 = false
  1458. ATTACK = false
  1459. Rooted = false
  1460. end
  1461.  
  1462. function Projectile()
  1463. CreateSound("201858072", STorso, 1, 2)
  1464. ATTACK = true
  1465. Rooted = false
  1466. VALUE1 = true
  1467. PoseAllOut()
  1468. for i=0, 1, 0.1 / Animation_Speed do
  1469. Swait()
  1470. SRoot.C0 = Clerp(SRoot.C0, CF(0, 2, -3) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1471. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1472. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.75,0.25,0.8) * ANGLES(RAD(-45), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1473. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.75,0.25,0.8) * ANGLES(RAD(-45), RAD(0), RAD(-45)), 0.5 / Animation_Speed)
  1474. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.5 / Animation_Speed)
  1475. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.5 / Animation_Speed)
  1476. end
  1477. for i=0, 0.3, 0.1 / Animation_Speed do
  1478. Swait()
  1479. SRoot.C0 = Clerp(SRoot.C0, CF(0, 2, -3) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1480. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1481. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(12)), 0.5 / Animation_Speed)
  1482. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 0.5 / Animation_Speed)
  1483. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.5 / Animation_Speed)
  1484. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.5 / Animation_Speed)
  1485. end
  1486. coroutine.resume(coroutine.create(function()
  1487. local FRAME = SHead.CFrame
  1488. for i = 1, 15 do
  1489. Swait()
  1490. MagicBlock(2.5,15,FRAME*CF(0,0,-i/3),"Maroon",VT(0,0,0))
  1491. AoEDamage(FRAME*CF(0,0,-i/3).p,5,3,3,0,3,2,false)
  1492. end
  1493. end))
  1494. VALUE1 = false
  1495. ATTACK = false
  1496. Rooted = false
  1497. end
  1498.  
  1499. function LaserSlash()
  1500. ATTACK = true
  1501. Rooted = false
  1502. VALUE1 = true
  1503. PoseGoForward()
  1504. for i=0, 1, 0.1 / Animation_Speed do
  1505. Swait()
  1506. SRoot.C0 = Clerp(SRoot.C0, CF(3, 2, 3) * ANGLES(RAD(0), RAD(-25), RAD(0)), 0.5 / Animation_Speed)
  1507. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(25), RAD(0)), 0.5 / Animation_Speed)
  1508. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,0.5,-0.4) * ANGLES(RAD(30), RAD(0), RAD(12)), 0.5 / Animation_Speed)
  1509. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 0.5 / Animation_Speed)
  1510. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.5 / Animation_Speed)
  1511. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.5 / Animation_Speed)
  1512. end
  1513. CreateSound("1127797047", STorso, 1, 2)
  1514. for i=0, 0.05, 0.1 / Animation_Speed do
  1515. Swait()
  1516. MagicBlock(2.5,25,SRightArm.CFrame*CF(0,-1,0),"Maroon",VT(0,0,0))
  1517. SRoot.C0 = Clerp(SRoot.C0, CF(1, 1.5, -6) * ANGLES(RAD(-25), RAD(45), RAD(0)), 2 / Animation_Speed)
  1518. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(-35), RAD(0)), 2 / Animation_Speed)
  1519. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,0.5,-0.6) * ANGLES(RAD(70), RAD(25), RAD(12)), 2 / Animation_Speed)
  1520. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 2 / Animation_Speed)
  1521. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.15 / Animation_Speed)
  1522. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
  1523. end
  1524. for i=0, 0.4, 0.1 / Animation_Speed do
  1525. Swait()
  1526. AoEDamage(SRightArm.CFrame*CF(0,-1,0).p,5,2,3,0,3,2,false)
  1527. MagicBlock(2.5,25,SRightArm.CFrame*CF(0,-1,0),"Maroon",VT(0,0,0))
  1528. SRoot.C0 = Clerp(SRoot.C0, CF(1, 1.5, -15) * ANGLES(RAD(-25), RAD(45), RAD(0)), 2 / Animation_Speed)
  1529. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(-35), RAD(0)), 2 / Animation_Speed)
  1530. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,1,-0.6) * ANGLES(RAD(160), RAD(35), RAD(12)), 2 / Animation_Speed)
  1531. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 2 / Animation_Speed)
  1532. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.15 / Animation_Speed)
  1533. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
  1534. end
  1535. for i=0, 1, 0.1 / Animation_Speed do
  1536. SRoot.C0 = Clerp(SRoot.C0, CF(1, 2, 3) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1537. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1538. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(12)), 0.15 / Animation_Speed)
  1539. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(-12)), 0.15 / Animation_Speed)
  1540. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.15 / Animation_Speed)
  1541. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.15 / Animation_Speed)
  1542. end
  1543. VALUE1 = false
  1544. ATTACK = false
  1545. Rooted = false
  1546. end
  1547.  
  1548. function Toggle()
  1549. if EQUIPPED == true then
  1550. EQUIPPED = false
  1551. CreateSound("2691586", STorso, 1, 2)
  1552. MagicSphere(VT(6,6,6),15,STorso.CFrame,"Maroon",VT(0.5,0.5,0.5))
  1553. MagicSphere(VT(5,5,5),15,STorso.CFrame,"Really black",VT(0.5,0.5,0.5))
  1554. for i = 1, 10 do
  1555. g = STAND:GetChildren()
  1556. for i = 1, #g do
  1557. if g[i].ClassName == "Part" then
  1558. g[i].Transparency = g[i].Transparency + 0.1
  1559. end
  1560. end
  1561. end
  1562. elseif EQUIPPED == false then
  1563. EQUIPPED = true
  1564. CreateSound("2691586", STorso, 1, 2)
  1565. MagicSphere(VT(6,6,6),15,STorso.CFrame,"Maroon",VT(0.5,0.5,0.5))
  1566. MagicSphere(VT(5,5,5),15,STorso.CFrame,"Really black",VT(0.5,0.5,0.5))
  1567. for i = 1, 10 do
  1568. g = STAND:GetChildren()
  1569. for i = 1, #g do
  1570. if g[i].ClassName == "Part" then
  1571. g[i].Transparency = g[i].Transparency - 0.1
  1572. end
  1573. end
  1574. end
  1575. end
  1576. end
  1577.  
  1578. --//=================================\\
  1579. --|| ASSIGN THINGS TO KEYS
  1580. --\\=================================//
  1581.  
  1582. function MouseDown(Mouse)
  1583. if ATTACK == false then
  1584. end
  1585. end
  1586.  
  1587. function MouseUp(Mouse)
  1588. HOLD = false
  1589. end
  1590.  
  1591. function KeyDown(Key)
  1592. KEYHOLD = true
  1593. if EQUIPPED == true then
  1594. if Key == "x" and ATTACK == false then
  1595. Projectile()
  1596. end
  1597.  
  1598. if Key == "v" and ATTACK == false then
  1599. Warp()
  1600. end
  1601.  
  1602. if Key == "c" and ATTACK == false then
  1603. LaserSlash()
  1604. end
  1605. if Key == "z" and ATTACK == false then
  1606. FlarePulse()
  1607. end
  1608.  
  1609. if Key == "b" and ATTACK == false then
  1610. GrabCrusher()
  1611. end
  1612. end
  1613.  
  1614. if Key == "f" and ATTACK == false then
  1615. Toggle()
  1616. end
  1617.  
  1618. if Key == "t" and ATTACK == false then
  1619. Taunt()
  1620. end
  1621. end
  1622.  
  1623. function KeyUp(Key)
  1624. KEYHOLD = false
  1625. end
  1626.  
  1627. Mouse.Button1Down:connect(function(NEWKEY)
  1628. MouseDown(NEWKEY)
  1629. end)
  1630. Mouse.Button1Up:connect(function(NEWKEY)
  1631. MouseUp(NEWKEY)
  1632. end)
  1633. Mouse.KeyDown:connect(function(NEWKEY)
  1634. KeyDown(NEWKEY)
  1635. end)
  1636. Mouse.KeyUp:connect(function(NEWKEY)
  1637. KeyUp(NEWKEY)
  1638. end)
  1639.  
  1640. --//=================================\\
  1641. --\\=================================//
  1642.  
  1643.  
  1644. function unanchor()
  1645. if UNANCHOR == true then
  1646. g = Character:GetChildren()
  1647. for i = 1, #g do
  1648. if g[i].ClassName == "Part" then
  1649. g[i].Anchored = false
  1650. end
  1651. end
  1652. end
  1653. end
  1654.  
  1655.  
  1656. --//=================================\\
  1657. --|| WRAP THE WHOLE SCRIPT UP
  1658. --\\=================================//
  1659.  
  1660. Humanoid.Changed:connect(function(Jump)
  1661. if Jump == "Jump" and (Disable_Jump == true) then
  1662. Humanoid.Jump = false
  1663. end
  1664. end)
  1665.  
  1666. while true do
  1667. Swait()
  1668. ANIMATE.Parent = nil
  1669. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1670. IDLEANIMATION:Play()
  1671. SINE = SINE + CHANGE
  1672. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1673. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1674. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1675. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1676. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1677. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1678. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1679. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1680. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1681. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1682. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1683. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1684. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1685. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1686. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1687. end
  1688. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1689. ANIM = "Jump"
  1690. if ATTACK == false then
  1691. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1692. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1693. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1694. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1695. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1696. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1697. end
  1698. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1699. ANIM = "Fall"
  1700. if ATTACK == false then
  1701. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1702. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1703. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1704. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1705. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1706. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1707. end
  1708. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1709. ANIM = "Idle"
  1710. if ATTACK == false then
  1711. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1712. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1713. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1714. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1715. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1716. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1717. end
  1718. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1719. ANIM = "Walk"
  1720. WALK = WALK + 1 / Animation_Speed
  1721. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1722. WALK = 0
  1723. if WALKINGANIM == true then
  1724. WALKINGANIM = false
  1725. elseif WALKINGANIM == false then
  1726. WALKINGANIM = true
  1727. end
  1728. end
  1729. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1730. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1731. if ATTACK == false then
  1732. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1733. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1734. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1735. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1736. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1737. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1738. end
  1739. end
  1740. if VALUE1 == false then
  1741. SRoot.C0 = Clerp(SRoot.C0, CF(1, 2 + 0.3 * COS(SINE / 12), 3) * ANGLES(RAD(0), RAD(-35), RAD(0)), 0.15 / Animation_Speed)
  1742. SNeck.C0 = Clerp(SNeck.C0, CF(0,1.5,0) * ANGLES(RAD(0), RAD(35), RAD(0)), 0.15 / Animation_Speed)
  1743. SShoulder1.C0 = Clerp(SShoulder1.C0, CF(1.25,0.5,-0.8) * ANGLES(RAD(110), RAD(0), RAD(-75)), 0.15 / Animation_Speed)
  1744. SShoulder2.C0 = Clerp(SShoulder2.C0, CF(-1.25,0.5,-0.8) * ANGLES(RAD(110), RAD(0), RAD(75)), 0.15 / Animation_Speed)
  1745. SHip1.C0 = Clerp(SHip1.C0, CF(0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(6)), 0.15 / Animation_Speed)
  1746. SHip2.C0 = Clerp(SHip2.C0, CF(-0.55,-2,0) * ANGLES(RAD(0), RAD(0), RAD(-6)), 0.15 / Animation_Speed)
  1747. end
  1748. unanchor()
  1749. Humanoid.MaxHealth = "inf"
  1750. Humanoid.Health = "inf"
  1751. if Rooted == false then
  1752. Disable_Jump = false
  1753. Humanoid.WalkSpeed = Speed
  1754. elseif Rooted == true then
  1755. Disable_Jump = true
  1756. Humanoid.WalkSpeed = 0
  1757. end
  1758. if Head:FindFirstChildOfClass("Sound") then
  1759. Head:FindFirstChildOfClass("Sound"):remove()
  1760. end
  1761. end
  1762.  
  1763. --//=================================\\
  1764. --\\=================================//
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770. --//====================================================\\--
  1771. --|| END OF SCRIPT
  1772. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement