Advertisement
DarkScriptZEditors

Anti Skids God

Dec 23rd, 2018
944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 162.22 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. warn'This Edit Is Made By Asrto#5115'
  145. warn'please support the original script creator = Shackluster.'
  146. print'Just So You Know: this script was supposed to be named "Anti Skid Banisher"'
  147. print' but the tags ruined it. so it was named, Anti Skid Gun'
  148. print([[
  149. -------------------------------------------------
  150. CONTROLS:
  151. V - Sky blast
  152. R - EVIL LAUGH!
  153. F - Wave
  154. E - Ghostly Mode
  155. C - Prison Time!
  156. X - Anti Bomb
  157. Q - Warp
  158. Z - Shoot
  159. ]])
  160. -------------------------------------------------
  161. Player = owner
  162. Character = Player.Character
  163. local txt = Instance.new("BillboardGui", Character)
  164. txt.Adornee = Character.Head
  165. txt.Name = "_status"
  166. txt.Size = UDim2.new(2, 0, 1.2, 0)
  167. txt.StudsOffset = Vector3.new(-9, 8, 0)
  168. local text = Instance.new("TextLabel", txt)
  169. text.Size = UDim2.new(10, 0, 7, 0)
  170. text.FontSize = "Size24"
  171. text.TextScaled = true
  172. text.TextTransparency = 0
  173. text.BackgroundTransparency = 1
  174. text.TextTransparency = 0
  175. text.TextStrokeTransparency = 0
  176. text.Font = "Antique"
  177. text.TextStrokeColor3 = Color3.new(255,255,0)
  178. text.Text = "Anti Skid God"
  179. script.Name = "Anti Skid Banisher"
  180.  
  181. wait(0.2)
  182.  
  183. Player = game:GetService("Players").LocalPlayer
  184. PlayerGui = Player.PlayerGui
  185. Cam = workspace.CurrentCamera
  186. Backpack = Player.Backpack
  187. Character = Player.Character
  188. Humanoid = Character.Humanoid
  189. Mouse = Player:GetMouse()
  190. RootPart = Character["HumanoidRootPart"]
  191. Torso = Character["Torso"]
  192. Head = Character["Head"]
  193. RightArm = Character["Right Arm"]
  194. LeftArm = Character["Left Arm"]
  195. RightLeg = Character["Right Leg"]
  196. LeftLeg = Character["Left Leg"]
  197. RootJoint = RootPart["RootJoint"]
  198. Neck = Torso["Neck"]
  199. RightShoulder = Torso["Right Shoulder"]
  200. LeftShoulder = Torso["Left Shoulder"]
  201. RightHip = Torso["Right Hip"]
  202. LeftHip = Torso["Left Hip"]
  203. local sick = Instance.new("Sound",Torso)
  204. sick.SoundId = "rbxassetid://581361386"
  205. sick.Looped = true
  206. sick.Pitch = 1
  207. sick.Volume = 5
  208. sick:Play()
  209.  
  210. IT = Instance.new
  211. CF = CFrame.new
  212. VT = Vector3.new
  213. RAD = math.rad
  214. C3 = Color3.new
  215. UD2 = UDim2.new
  216. BRICKC = BrickColor.new
  217. ANGLES = CFrame.Angles
  218. EULER = CFrame.fromEulerAnglesXYZ
  219. COS = math.cos
  220. ACOS = math.acos
  221. SIN = math.sin
  222. ASIN = math.asin
  223. ABS = math.abs
  224. MRANDOM = math.random
  225. FLOOR = math.floor
  226.  
  227. local Character = game.Players.LocalPlayer.Character --game.Workspace.fefio92142
  228.  
  229.  
  230. -------------------------------------------------------------------------------------
  231. -------------------------------------------------------------------------------------
  232.  
  233. local Color = 255,0,0
  234.  
  235. local Num = 0.5
  236.  
  237. local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
  238. local Size = 0.8
  239. local Rate = 300
  240. -------------------------------------------------------------------------------------
  241. local Player = game:service'Players'.LocalPlayer
  242. local Character = Player.Character
  243. Torso = Character:WaitForChild'Torso'
  244.  
  245. local Wing1 = Instance.new("Part",Character)
  246. Wing1.FormFactor = Enum.FormFactor.Custom
  247. Wing1.Size = Vector3.new(.2, .2, .2)
  248. Wing1.Name = "WIng_1"
  249.  
  250. local fire = Instance.new("ParticleEmitter", Wing1)
  251. fire.VelocitySpread = 0
  252. fire.Lifetime = NumberRange.new(2)
  253. fire.Acceleration = Vector3.new(0, 2, 2)
  254. fire.RotSpeed = NumberRange.new(10)
  255. fire.Rate = Rate
  256. fire.Rotation = NumberRange.new(151515)
  257. fire.Name = "Fire"
  258. fire.LightEmission = 0.78
  259. fire.LockedToPart = true
  260. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  261. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  262. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  263.  
  264. local Wing2 = Wing1:Clone()
  265. Wing2.Parent = Torso
  266. local x,y,z = 0,-1,-6
  267.  
  268. Wld = function(a,b,cf)
  269. local Weld = Instance.new('Weld',a)
  270. Weld.Part0 = a
  271. Weld.Part1 = b
  272. Weld.C1 = cf
  273. return Weld
  274. end
  275.  
  276. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  277. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  278.  
  279.  
  280. game:service'RunService'.Stepped:connect(function()
  281. --z = 6+math.sin(tick()*2)
  282. y = -1+math.sin(tick()*Num)*Num2
  283. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  284. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  285. end)
  286. ------------------------------------------------------------------------------------------------
  287. local Player = game:service'Players'.LocalPlayer
  288. local Character = Player.Character
  289. Torso = Character:WaitForChild'Torso'
  290.  
  291. local Wing1 = Instance.new("Part",Character)
  292. Wing1.FormFactor = Enum.FormFactor.Custom
  293. Wing1.Size = Vector3.new(.2, .2, .2)
  294. Wing1.Name = "WIng_1"
  295.  
  296. local fire = Instance.new("ParticleEmitter", Wing1)
  297. fire.VelocitySpread = 0
  298. fire.Lifetime = NumberRange.new(2.5)
  299. fire.Acceleration = Vector3.new(0, 4, 4)
  300. fire.RotSpeed = NumberRange.new(10)
  301. fire.Rate = Rate
  302. fire.Rotation = NumberRange.new(151515)
  303. fire.Name = "Fire"
  304. fire.LightEmission = 0.78
  305. fire.LockedToPart = true
  306. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  307. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  308. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  309.  
  310. local Wing2 = Wing1:Clone()
  311. Wing2.Parent = Torso
  312. local x,y,z = 0,-1,-6
  313.  
  314. Wld = function(a,b,cf)
  315. local Weld = Instance.new('Weld',a)
  316. Weld.Part0 = a
  317. Weld.Part1 = b
  318. Weld.C1 = cf
  319. return Weld
  320. end
  321.  
  322. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  323. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  324.  
  325.  
  326. game:service'RunService'.Stepped:connect(function()
  327. --z = 6+math.sin(tick()*2)
  328. y = -1+math.sin(tick()*Num)*Num2
  329. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  330. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  331. end)
  332.  
  333. ------------------------------------------------------------------------------------------------
  334. local Player = game:service'Players'.LocalPlayer
  335. local Character = Player.Character
  336. Torso = Character:WaitForChild'Torso'
  337.  
  338. local Wing1 = Instance.new("Part",Character)
  339. Wing1.FormFactor = Enum.FormFactor.Custom
  340. Wing1.Size = Vector3.new(.2, .2, .2)
  341. Wing1.Name = "WIng_1"
  342.  
  343. local fire = Instance.new("ParticleEmitter", Wing1)
  344. fire.VelocitySpread = 0
  345. fire.Lifetime = NumberRange.new(2.8)
  346. fire.Acceleration = Vector3.new(0, 4, 4)
  347. fire.RotSpeed = NumberRange.new(10)
  348. fire.Rate = Rate
  349. fire.Rotation = NumberRange.new(151515)
  350. fire.Name = "Fire"
  351. fire.LightEmission = 0.78
  352. fire.LockedToPart = true
  353. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  354. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  355. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  356.  
  357. local Wing2 = Wing1:Clone()
  358. Wing2.Parent = Torso
  359. local x,y,z = 0,-1,-6
  360.  
  361. Wld = function(a,b,cf)
  362. local Weld = Instance.new('Weld',a)
  363. Weld.Part0 = a
  364. Weld.Part1 = b
  365. Weld.C1 = cf
  366. return Weld
  367. end
  368.  
  369. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  370. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  371.  
  372. game:service'RunService'.Stepped:connect(function()
  373. --z = 6+math.sin(tick()*2)
  374. y = -1+math.sin(tick()*Num)*Num2
  375. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  376. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  377. end)
  378.  
  379. ------------------------------------------------------------------------------------------------
  380. local Player = game:service'Players'.LocalPlayer
  381. local Character = Player.Character
  382. Torso = Character:WaitForChild'Torso'
  383.  
  384. local Wing1 = Instance.new("Part",Character)
  385. Wing1.FormFactor = Enum.FormFactor.Custom
  386. Wing1.Size = Vector3.new(.2, .2, .2)
  387. Wing1.Name = "WIng_1"
  388.  
  389. local fire = Instance.new("ParticleEmitter", Wing1)
  390. fire.VelocitySpread = 0
  391. fire.Lifetime = NumberRange.new(3)
  392. fire.Acceleration = Vector3.new(0, 4, 4)
  393. fire.RotSpeed = NumberRange.new(10)
  394. fire.Rate = Rate
  395. fire.Rotation = NumberRange.new(151515)
  396. fire.Name = "Fire"
  397. fire.LightEmission = 0.78
  398. fire.LockedToPart = true
  399. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  400. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  401. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  402.  
  403. local Wing2 = Wing1:Clone()
  404. Wing2.Parent = Torso
  405. local x,y,z = 0,-1,-6
  406.  
  407. Wld = function(a,b,cf)
  408. local Weld = Instance.new('Weld',a)
  409. Weld.Part0 = a
  410. Weld.Part1 = b
  411. Weld.C1 = cf
  412. return Weld
  413. end
  414.  
  415. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  416. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  417.  
  418. game:service'RunService'.Stepped:connect(function()
  419. --z = 6+math.sin(tick()*2)
  420. y = -1+math.sin(tick()*Num)*Num2
  421. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  422. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  423. end)
  424.  
  425. ------------------------------------------------------------------------------------------------
  426. local Player = game:service'Players'.LocalPlayer
  427. local Character = Player.Character
  428. Torso = Character:WaitForChild'Torso'
  429.  
  430. local Wing1 = Instance.new("Part",Character)
  431. Wing1.FormFactor = Enum.FormFactor.Custom
  432. Wing1.Size = Vector3.new(.2, .2, .2)
  433. Wing1.Name = "WIng_1"
  434.  
  435. local fire = Instance.new("ParticleEmitter", Wing1)
  436. fire.VelocitySpread = 0
  437. fire.Lifetime = NumberRange.new(3.1)
  438. fire.Acceleration = Vector3.new(0, 4, 4)
  439. fire.RotSpeed = NumberRange.new(10)
  440. fire.Rate = Rate
  441. fire.Rotation = NumberRange.new(151515)
  442. fire.Name = "Fire"
  443. fire.LightEmission = 0.78
  444. fire.LockedToPart = true
  445. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  446. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  447. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  448.  
  449. local Wing2 = Wing1:Clone()
  450. Wing2.Parent = Torso
  451. local x,y,z = 0,-1,-6
  452.  
  453. Wld = function(a,b,cf)
  454. local Weld = Instance.new('Weld',a)
  455. Weld.Part0 = a
  456. Weld.Part1 = b
  457. Weld.C1 = cf
  458. return Weld
  459. end
  460.  
  461. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  462. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  463.  
  464. game:service'RunService'.Stepped:connect(function()
  465. --z = 6+math.sin(tick()*2)
  466. y = -1+math.sin(tick()*Num)*Num2
  467. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  468. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  469. end)
  470.  
  471. --//=================================\\
  472. --|| SOME FUNCTIONS
  473. --\\=================================//
  474.  
  475. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  476. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  477. end
  478.  
  479. function PositiveAngle(NUMBER)
  480. if NUMBER >= 0 then
  481. NUMBER = 0
  482. end
  483. return NUMBER
  484. end
  485.  
  486. function NegativeAngle(NUMBER)
  487. if NUMBER <= 0 then
  488. NUMBER = 0
  489. end
  490. return NUMBER
  491. end
  492.  
  493. function Swait(NUMBER)
  494. if NUMBER == 0 or NUMBER == nil then
  495. ArtificialHB.Event:wait()
  496. else
  497. for i = 1, NUMBER do
  498. ArtificialHB.Event:wait()
  499. end
  500. end
  501. end
  502.  
  503. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  504. local NEWMESH = IT(MESH)
  505. if MESH == "SpecialMesh" then
  506. NEWMESH.MeshType = MESHTYPE
  507. if MESHID ~= "nil" and MESHID ~= "" then
  508. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  509. end
  510. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  511. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  512. end
  513. end
  514. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  515. NEWMESH.Scale = SCALE
  516. NEWMESH.Parent = PARENT
  517. return NEWMESH
  518. end
  519.  
  520. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  521. local NEWPART = IT("Part")
  522. NEWPART.formFactor = FORMFACTOR
  523. NEWPART.Reflectance = REFLECTANCE
  524. NEWPART.Transparency = TRANSPARENCY
  525. NEWPART.CanCollide = false
  526. NEWPART.Locked = true
  527. NEWPART.Anchored = true
  528. if ANCHOR == false then
  529. NEWPART.Anchored = false
  530. end
  531. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  532. NEWPART.Name = NAME
  533. NEWPART.Size = SIZE
  534. NEWPART.Position = Torso.Position
  535. NEWPART.Material = MATERIAL
  536. NEWPART:BreakJoints()
  537. NEWPART.Parent = PARENT
  538. return NEWPART
  539. end
  540.  
  541. local function weldBetween(a, b)
  542. local weldd = IT("Weld")
  543. weldd.Part0 = a
  544. weldd.Part1 = b
  545. weldd.C0 = CF()
  546. weldd.C1 = b.CFrame:inverse() * a.CFrame
  547. weldd.Parent = a
  548. return weldd
  549. end
  550.  
  551.  
  552. function QuaternionFromCFrame(cf)
  553. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  554. local trace = m00 + m11 + m22
  555. if trace > 0 then
  556. local s = math.sqrt(1 + trace)
  557. local recip = 0.5 / s
  558. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  559. else
  560. local i = 0
  561. if m11 > m00 then
  562. i = 1
  563. end
  564. if m22 > (i == 0 and m00 or m11) then
  565. i = 2
  566. end
  567. if i == 0 then
  568. local s = math.sqrt(m00 - m11 - m22 + 1)
  569. local recip = 0.5 / s
  570. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  571. elseif i == 1 then
  572. local s = math.sqrt(m11 - m22 - m00 + 1)
  573. local recip = 0.5 / s
  574. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  575. elseif i == 2 then
  576. local s = math.sqrt(m22 - m00 - m11 + 1)
  577. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  578. end
  579. end
  580. end
  581.  
  582. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  583. local xs, ys, zs = x + x, y + y, z + z
  584. local wx, wy, wz = w * xs, w * ys, w * zs
  585. local xx = x * xs
  586. local xy = x * ys
  587. local xz = x * zs
  588. local yy = y * ys
  589. local yz = y * zs
  590. local zz = z * zs
  591. 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))
  592. end
  593.  
  594. function QuaternionSlerp(a, b, t)
  595. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  596. local startInterp, finishInterp;
  597. if cosTheta >= 0.0001 then
  598. if (1 - cosTheta) > 0.0001 then
  599. local theta = ACOS(cosTheta)
  600. local invSinTheta = 1 / SIN(theta)
  601. startInterp = SIN((1 - t) * theta) * invSinTheta
  602. finishInterp = SIN(t * theta) * invSinTheta
  603. else
  604. startInterp = 1 - t
  605. finishInterp = t
  606. end
  607. else
  608. if (1 + cosTheta) > 0.0001 then
  609. local theta = ACOS(-cosTheta)
  610. local invSinTheta = 1 / SIN(theta)
  611. startInterp = SIN((t - 1) * theta) * invSinTheta
  612. finishInterp = SIN(t * theta) * invSinTheta
  613. else
  614. startInterp = t - 1
  615. finishInterp = t
  616. end
  617. end
  618. 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
  619. end
  620.  
  621. function Clerp(a, b, t)
  622. local qa = {QuaternionFromCFrame(a)}
  623. local qb = {QuaternionFromCFrame(b)}
  624. local ax, ay, az = a.x, a.y, a.z
  625. local bx, by, bz = b.x, b.y, b.z
  626. local _t = 1 - t
  627. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  628. end
  629.  
  630. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  631. local frame = IT("Frame")
  632. frame.BackgroundTransparency = TRANSPARENCY
  633. frame.BorderSizePixel = BORDERSIZEPIXEL
  634. frame.Position = POSITION
  635. frame.Size = SIZE
  636. frame.BackgroundColor3 = COLOR
  637. frame.BorderColor3 = BORDERCOLOR
  638. frame.Name = NAME
  639. frame.Parent = PARENT
  640. return frame
  641. end
  642.  
  643. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  644. local label = IT("TextLabel")
  645. label.BackgroundTransparency = 1
  646. label.Size = UD2(1, 0, 1, 0)
  647. label.Position = UD2(0, 0, 0, 0)
  648. label.TextColor3 = TEXTCOLOR
  649. label.TextStrokeTransparency = STROKETRANSPARENCY
  650. label.TextTransparency = TRANSPARENCY
  651. label.FontSize = TEXTFONTSIZE
  652. label.Font = TEXTFONT
  653. label.BorderSizePixel = BORDERSIZEPIXEL
  654. label.TextScaled = false
  655. label.Text = TEXT
  656. label.Name = NAME
  657. label.Parent = PARENT
  658. return label
  659. end
  660.  
  661. function NoOutlines(PART)
  662. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  663. end
  664.  
  665. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  666. local NEWWELD = IT(TYPE)
  667. NEWWELD.Part0 = PART0
  668. NEWWELD.Part1 = PART1
  669. NEWWELD.C0 = C0
  670. NEWWELD.C1 = C1
  671. NEWWELD.Parent = PARENT
  672. return NEWWELD
  673. end
  674.  
  675. local S = IT("Sound")
  676. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  677. local NEWSOUND = nil
  678. coroutine.resume(coroutine.create(function()
  679. NEWSOUND = S:Clone()
  680. NEWSOUND.Parent = PARENT
  681. NEWSOUND.Volume = VOLUME
  682. NEWSOUND.Pitch = PITCH
  683. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  684. NEWSOUND:play()
  685. if DOESLOOP == true then
  686. NEWSOUND.Looped = true
  687. else
  688. repeat wait(1) until NEWSOUND.Playing == false
  689. NEWSOUND:remove()
  690. end
  691. end))
  692. return NEWSOUND
  693. end
  694.  
  695. function CFrameFromTopBack(at, top, back)
  696. local right = top:Cross(back)
  697. 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)
  698. end
  699.  
  700. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  701. function WACKYEFFECT(Table)
  702. local TYPE = (Table.EffectType or "Sphere")
  703. local SIZE = (Table.Size or VT(1,1,1))
  704. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  705. local TRANSPARENCY = (Table.Transparency or 0)
  706. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  707. local CFRAME = (Table.CFrame or Torso.CFrame)
  708. local MOVEDIRECTION = (Table.MoveToPos or nil)
  709. local ROTATION1 = (Table.RotationX or 0)
  710. local ROTATION2 = (Table.RotationY or 0)
  711. local ROTATION3 = (Table.RotationZ or 0)
  712. local MATERIAL = (Table.Material or "Neon")
  713. local COLOR = (Table.Color or C3(1,1,1))
  714. local TIME = (Table.Time or 45)
  715. local SOUNDID = (Table.SoundID or nil)
  716. local SOUNDPITCH = (Table.SoundPitch or nil)
  717. local SOUNDVOLUME = (Table.SoundVolume or nil)
  718. coroutine.resume(coroutine.create(function()
  719. local PLAYSSOUND = false
  720. local SOUND = nil
  721. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  722. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  723. PLAYSSOUND = true
  724. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  725. end
  726. EFFECT.Color = COLOR
  727. local MSH = nil
  728. if TYPE == "Sphere" then
  729. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  730. elseif TYPE == "Block" then
  731. MSH = IT("BlockMesh",EFFECT)
  732. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  733. elseif TYPE == "Wave" then
  734. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  735. elseif TYPE == "Ring" then
  736. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  737. elseif TYPE == "Slash" then
  738. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  739. elseif TYPE == "Round Slash" then
  740. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  741. elseif TYPE == "Swirl" then
  742. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  743. elseif TYPE == "Skull" then
  744. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  745. elseif TYPE == "Crystal" then
  746. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  747. end
  748. if MSH ~= nil then
  749. local MOVESPEED = nil
  750. if MOVEDIRECTION ~= nil then
  751. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  752. end
  753. local GROWTH = SIZE - ENDSIZE
  754. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  755. if TYPE == "Block" then
  756. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  757. else
  758. EFFECT.CFrame = CFRAME
  759. end
  760. for LOOP = 1, TIME+1 do
  761. Swait()
  762. MSH.Scale = MSH.Scale - GROWTH/TIME
  763. if TYPE == "Wave" then
  764. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  765. end
  766. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  767. if TYPE == "Block" then
  768. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  769. else
  770. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  771. end
  772. if MOVEDIRECTION ~= nil then
  773. local ORI = EFFECT.Orientation
  774. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  775. EFFECT.Orientation = ORI
  776. end
  777. end
  778. if PLAYSSOUND == false then
  779. EFFECT:remove()
  780. else
  781. SOUND.Stopped:Connect(function()
  782. EFFECT:remove()
  783. end)
  784. end
  785. else
  786. if PLAYSSOUND == false then
  787. EFFECT:remove()
  788. else
  789. repeat Swait() until SOUND.Playing == false
  790. EFFECT:remove()
  791. end
  792. end
  793. end))
  794. end
  795.  
  796. function MakeForm(PART,TYPE)
  797. if TYPE == "Cyl" then
  798. local MSH = IT("CylinderMesh",PART)
  799. elseif TYPE == "Ball" then
  800. local MSH = IT("SpecialMesh",PART)
  801. MSH.MeshType = "Sphere"
  802. elseif TYPE == "Wedge" then
  803. local MSH = IT("SpecialMesh",PART)
  804. MSH.MeshType = "Wedge"
  805. end
  806. end
  807.  
  808. Debris = game:GetService("Debris")
  809.  
  810. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  811. local DIRECTION = CF(StartPos,EndPos).lookVector
  812. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  813. end
  814.  
  815. function turnto(position)
  816. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  817. end
  818.  
  819. function SpawnTrail(FROM,TO,BIG)
  820. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(0,0,0))
  821. MakeForm(TRAIL,"Cyl")
  822. local DIST = (FROM - TO).Magnitude
  823. if BIG == true then
  824. TRAIL.Size = VT(0.5,DIST,0.5)
  825. else
  826. TRAIL.Size = VT(0.25,DIST,0.25)
  827. end
  828. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  829. coroutine.resume(coroutine.create(function()
  830. for i = 1, 5 do
  831. Swait()
  832. TRAIL.Transparency = TRAIL.Transparency + 0.1
  833. end
  834. TRAIL:remove()
  835. end))
  836. end
  837.  
  838. local asd = Instance.new("ParticleEmitter")
  839. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  840. asd.LightEmission = .1
  841. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  842. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  843. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  844. asd.Transparency = bbb
  845. asd.Size = aaa
  846. asd.ZOffset = .9
  847. asd.Acceleration = Vector3.new(0, -15, 0)
  848. asd.LockedToPart = false
  849. asd.EmissionDirection = "Back"
  850. asd.Lifetime = NumberRange.new(1, 2)
  851. asd.Rotation = NumberRange.new(-100, 100)
  852. asd.RotSpeed = NumberRange.new(-100, 100)
  853. asd.Speed = NumberRange.new(10)
  854. asd.Enabled = false
  855. asd.VelocitySpread = 999
  856.  
  857. function getbloody(victim,amount)
  858. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  859. PART.CFrame = victim.CFrame
  860. local HITPLAYERSOUNDS = {"356551938","264486467"}
  861. Debris:AddItem(PART,5)
  862. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  863. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  864. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  865. local prtcl = asd:Clone()
  866. prtcl.Parent = PART
  867. prtcl:Emit(amount*10)
  868. end
  869.  
  870. local Particle = IT("ParticleEmitter",nil)
  871. Particle.Enabled = false
  872. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  873. Particle.LightEmission = 0.5
  874. Particle.Rate = 150
  875. Particle.ZOffset = 1
  876. Particle.Rotation = NumberRange.new(-180, 180)
  877. Particle.RotSpeed = NumberRange.new(-180, 180)
  878. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  879. Particle.Color = ColorSequence.new(C3(58,125,21),C3(0.4,0,0))
  880.  
  881. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  882. function ParticleEmitter(Table)
  883. local PRTCL = Particle:Clone()
  884. local Speed = Table.Speed or 5
  885. local Drag = Table.Drag or 0
  886. local Size1 = Table.Size1 or 1
  887. local Size2 = Table.Size2 or 5
  888. local Lifetime1 = Table.Lifetime1 or 1
  889. local Lifetime2 = Table.Lifetime2 or 1.5
  890. local Parent = Table.Parent or Torso
  891. local Emit = Table.Emit or 100
  892. local Offset = Table.Offset or 360
  893. local Acel = Table.Acel or VT(0,0,0)
  894. local Enabled = Table.Enabled or false
  895. PRTCL.Parent = Parent
  896. PRTCL.Size = NumberSequence.new(Size1,Size2)
  897. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  898. PRTCL.Speed = NumberRange.new(Speed)
  899. PRTCL.VelocitySpread = Offset
  900. PRTCL.Drag = Drag
  901. PRTCL.Acceleration = Acel
  902. if Enabled == false then
  903. PRTCL:Emit(Emit)
  904. Debris:AddItem(PRTCL,Lifetime2)
  905. else
  906. PRTCL.Enabled = true
  907. end
  908. return PRTCL
  909. end
  910.  
  911. if Character:FindFirstChildOfClass("Accessory") then
  912. Character:FindFirstChildOfClass("Accessory"):remove()
  913. elseif Character:FindFirstChildOfClass("Hat") then
  914. Character:FindFirstChildOfClass("Hat"):remove()
  915. end
  916. if Head:FindFirstChild("face") then
  917. Head.face.Texture = "rbxassetid://"
  918. end
  919.  
  920. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  921. PRT.Color = C3(0,0,0)
  922. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  923. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  924. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  925. PRT.Color = C3(0,0,0)
  926. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  927. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  928.  
  929. local LASTPART = Head
  930. for i = 1, 20 do
  931. local MATH = (1-(i/25))
  932. if LASTPART == Head then
  933. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  934. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  935. LASTPART = Horn
  936. Horn.Color = C3((i*3-3)/255,0,0)
  937. else
  938. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  939. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  940. LASTPART = Horn
  941. Horn.Color = C3((i*3-3)/255,0,0)
  942. end
  943. end
  944. local LASTPART = Head
  945. for i = 1, 20 do
  946. local MATH = (1-(i/25))
  947. if LASTPART == Head then
  948. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  949. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  950. LASTPART = Horn
  951. Horn.Color = C3((i*3-3)/255,0,0)
  952. else
  953. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  954. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  955. LASTPART = Horn
  956. Horn.Color = C3((i*3-3)/255,0,0)
  957. end
  958. end
  959.  
  960. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Gold", "Eye", VT(0.6,0.1,1)/2,false)
  961. MakeForm(Eye,"Ball")
  962. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  963. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Gold", "Eye", VT(0.6,0.1,1)/2,false)
  964. MakeForm(Eye,"Ball")
  965. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  966. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Gold", "Eye", VT(0.1,1,1)/2,false)
  967. MakeForm(Eye,"Ball")
  968. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  969. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Gold", "Eye", VT(0.1,1,1)/2,false)
  970. MakeForm(Eye,"Ball")
  971. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  972.  
  973. local A = IT("Attachment",Torso)
  974. A.Position = VT(1,1.3,0)
  975. A.Orientation = VT(-0.098, -89.999, 0.227)
  976. local B = IT("Attachment",Torso)
  977. B.Position = VT(-1.3,-0.6,0)
  978. B.Orientation = VT(-88.911, -68.808, 158.782)
  979. local ChainLink = IT("Beam",Torso)
  980. ChainLink.Texture = "rbxassetid://343533707"
  981. ChainLink.Color = ColorSequence.new(C3(58,125,21))
  982. ChainLink.TextureSpeed = 1
  983. ChainLink.FaceCamera = true
  984. ChainLink.Width0 = 1
  985. ChainLink.Width1 = 1
  986. ChainLink.TextureLength = 3
  987. ChainLink.Attachment0 = A
  988. ChainLink.Attachment1 = B
  989. ChainLink.CurveSize0 = 1.6
  990. ChainLink.CurveSize1 = 1.6
  991. ChainLink.FaceCamera = true
  992. ChainLink.Transparency = NumberSequence.new(0)
  993. local ChainLink = IT("Beam",Torso)
  994. ChainLink.Texture = "rbxassetid://343533707"
  995. ChainLink.Color = ColorSequence.new(C3(58,125,21))
  996. ChainLink.TextureSpeed = 1
  997. ChainLink.FaceCamera = true
  998. ChainLink.Width0 = 1
  999. ChainLink.Width1 = 1
  1000. ChainLink.TextureLength = 3
  1001. ChainLink.Attachment0 = B
  1002. ChainLink.Attachment1 = A
  1003. ChainLink.CurveSize0 = 1.6
  1004. ChainLink.CurveSize1 = 1.6
  1005. ChainLink.FaceCamera = true
  1006. ChainLink.Transparency = NumberSequence.new(0)
  1007. local A = IT("Attachment",Torso)
  1008. A.Position = VT(1.3,-0.85,0)
  1009. A.Orientation = VT(-0.098, -89.999, 0.227)
  1010. local B = IT("Attachment",Torso)
  1011. B.Position = VT(-1,2,0)
  1012. B.Orientation = VT(-88.911, -68.808, 158.782)
  1013. local ChainLink = IT("Beam",Torso)
  1014. ChainLink.Texture = "rbxassetid://343533707"
  1015. ChainLink.Color = ColorSequence.new(C3(58,125,21))
  1016. ChainLink.TextureSpeed = 1
  1017. ChainLink.FaceCamera = true
  1018. ChainLink.Width0 = 1
  1019. ChainLink.Width1 = 1
  1020. ChainLink.TextureLength = 3
  1021. ChainLink.Attachment0 = A
  1022. ChainLink.Attachment1 = B
  1023. ChainLink.CurveSize0 = 1.3
  1024. ChainLink.CurveSize1 = 1.3
  1025. ChainLink.FaceCamera = true
  1026. ChainLink.Transparency = NumberSequence.new(0)
  1027. local ChainLink = IT("Beam",Torso)
  1028. ChainLink.Texture = "rbxassetid://343533707"
  1029. ChainLink.Color = ColorSequence.new(C3(58,125,21))
  1030. ChainLink.TextureSpeed = 1
  1031. ChainLink.FaceCamera = true
  1032. ChainLink.Width0 = 1
  1033. ChainLink.Width1 = 1
  1034. ChainLink.TextureLength = 3
  1035. ChainLink.Attachment0 = B
  1036. ChainLink.Attachment1 = A
  1037. ChainLink.CurveSize0 = 1.3
  1038. ChainLink.CurveSize1 = 1.3
  1039. ChainLink.FaceCamera = true
  1040. ChainLink.Transparency = NumberSequence.new(0)
  1041.  
  1042. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true})
  1043. PRT.LockedToPart = true
  1044. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true})
  1045. PRT.LockedToPart = true
  1046. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true})
  1047. PRT.LockedToPart = true
  1048. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true})
  1049. PRT.LockedToPart = true
  1050. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true})
  1051. PRT.LockedToPart = true
  1052.  
  1053. for _, c in pairs(Character:GetDescendants()) do
  1054. if c and c.Parent then
  1055. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  1056. local ACCESSORY = c.Parent
  1057. c.Parent = Character
  1058. if c then
  1059. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  1060. weldBetween(Head,c)
  1061. else
  1062. weldBetween(Torso,c)
  1063. end
  1064. end
  1065. ACCESSORY:remove()
  1066. elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1067. c.Material = "Neon"
  1068. c.Color = C3(0,0,0)
  1069. if c:FindFirstChildOfClass("SpecialMesh") then
  1070. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1071. end
  1072. if c == Head then
  1073. if c:FindFirstChild("face") then
  1074. c.face:remove()
  1075. end
  1076. end
  1077. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1078. c.Color = C3(58,125,21)
  1079. c.Material = "Neon"
  1080. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  1081. c:remove()
  1082. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1083. c:remove()
  1084. end
  1085. end
  1086. end
  1087.  
  1088. for _, c in pairs(Character:GetDescendants()) do
  1089. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1090. c.Material = "Neon"
  1091. c.Color = C3(0,0,0)
  1092. if c:FindFirstChildOfClass("SpecialMesh") then
  1093. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1094. end
  1095. if c == Head then
  1096. if c:FindFirstChild("face") then
  1097. c.face:remove()
  1098. end
  1099. end
  1100. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1101. c.Color = C3(58,125,21)
  1102. c.Material = "Neon"
  1103. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  1104. c:remove()
  1105. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1106. c:remove()
  1107. end
  1108. end
  1109.  
  1110. wait(0.2)
  1111.  
  1112. Player = game:GetService("Players").LocalPlayer
  1113. PlayerGui = Player.PlayerGui
  1114. Cam = workspace.CurrentCamera
  1115. Backpack = Player.Backpack
  1116. Character = Player.Character
  1117. Mouse = Player:GetMouse()
  1118. Torso = Character["Torso"]
  1119. Head = Character["Head"]
  1120. RightArm = Character["Right Arm"]
  1121. LeftArm = Character["Left Arm"]
  1122. RightLeg = Character["Right Leg"]
  1123. LeftLeg = Character["Left Leg"]
  1124. Neck = Torso["Neck"]
  1125. RightShoulder = Torso["Right Shoulder"]
  1126. LeftShoulder = Torso["Left Shoulder"]
  1127. RightHip = Torso["Right Hip"]
  1128. LeftHip = Torso["Left Hip"]
  1129.  
  1130. local sick = Instance.new("Sound",Character)
  1131. sick.SoundId = "rbxassetid://0"
  1132. sick.Looped = true
  1133. sick.Pitch = 1
  1134. sick.Volume = 1
  1135. sick:Play()
  1136.  
  1137. IT = Instance.new
  1138. CF = CFrame.new
  1139. VT = Vector3.new
  1140. RAD = math.rad
  1141. C3 = Color3.new
  1142. UD2 = UDim2.new
  1143. BRICKC = BrickColor.new
  1144. ANGLES = CFrame.Angles
  1145. EULER = CFrame.fromEulerAnglesXYZ
  1146. COS = math.cos
  1147. ACOS = math.acos
  1148. SIN = math.sin
  1149. ASIN = math.asin
  1150. ABS = math.abs
  1151. MRANDOM = math.random
  1152. FLOOR = math.floor
  1153. local CLOAKED = false
  1154. local KILLINSTINCT = 0
  1155.  
  1156. --//=================================\\
  1157. --|| SOME OTHER STUFF
  1158. --\\=================================//
  1159. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  1160. ff.Visible = false
  1161.  
  1162. script.Name = "Banisher Gun V3 / 1"
  1163. --//====================================================\\--
  1164. --|| CREATED BY SHACKLUSTER
  1165. --\\====================================================//--
  1166.  
  1167. script:ClearAllChildren()
  1168. wait(0.2)
  1169.  
  1170. Player = game:GetService("Players").LocalPlayer
  1171. PlayerGui = Player.PlayerGui
  1172. Cam = workspace.CurrentCamera
  1173. Backpack = Player.Backpack
  1174. Character = Player.Character
  1175. Humanoid = Character.Humanoid
  1176. Mouse = Player:GetMouse()
  1177. RootPart = Character["HumanoidRootPart"]
  1178. Torso = Character["Torso"]
  1179. Head = Character["Head"]
  1180. RightArm = Character["Right Arm"]
  1181. LeftArm = Character["Left Arm"]
  1182. RightLeg = Character["Right Leg"]
  1183. LeftLeg = Character["Left Leg"]
  1184. RootJoint = RootPart["RootJoint"]
  1185. Neck = Torso["Neck"]
  1186. RightShoulder = Torso["Right Shoulder"]
  1187. LeftShoulder = Torso["Left Shoulder"]
  1188. RightHip = Torso["Right Hip"]
  1189. LeftHip = Torso["Left Hip"]
  1190. local TIME = 0
  1191. local sick = Instance.new("Sound",Torso)
  1192.  
  1193. IT = Instance.new
  1194. CF = CFrame.new
  1195. VT = Vector3.new
  1196. RAD = math.rad
  1197. C3 = Color3.new
  1198. UD2 = UDim2.new
  1199. BRICKC = BrickColor.new
  1200. ANGLES = CFrame.Angles
  1201. EULER = CFrame.fromEulerAnglesXYZ
  1202. COS = math.cos
  1203. ACOS = math.acos
  1204. SIN = math.sin
  1205. ASIN = math.asin
  1206. ABS = math.abs
  1207. MRANDOM = math.random
  1208. FLOOR = math.floor
  1209.  
  1210. --//=================================\\
  1211. --|| USEFUL VALUES
  1212. --\\=================================//
  1213.  
  1214. Animation_Speed = 3
  1215. local FORCERESET = false
  1216. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  1217. local Speed = 20
  1218. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1219. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1220. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  1221. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  1222. local DAMAGEMULTIPLIER = 1
  1223. local ANIM = "Idle"
  1224. local ATTACK = false
  1225. local EQUIPPED = false
  1226. local HOLD = false
  1227. local COMBO = 1
  1228. local Rooted = false
  1229. local SINE = 0
  1230. local KEYHOLD = false
  1231. local CHANGE = 2 / Animation_Speed
  1232. local WALKINGANIM = false
  1233. local VALUE1 = false
  1234. local VALUE2 = false
  1235. local ROBLOXIDLEANIMATION = IT("Animation")
  1236. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1237. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1238. --ROBLOXIDLEANIMATION.Parent = Humanoid
  1239. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  1240. WEAPONGUI.Name = "BanishV3Gui"
  1241. local Weapon = IT("Model")
  1242. Weapon.Name = "Adds"
  1243. local Effects = IT("Folder", Weapon)
  1244. Effects.Name = "Effects"
  1245. local ANIMATOR = Humanoid.Animator
  1246. local ANIMATE = Character:FindFirstChild("Animate")
  1247. local UNANCHOR = true
  1248. local TOBANISH = {}
  1249. script.Parent = PlayerGui
  1250. local SPEED = 0.1
  1251. local EXTRATRANS = 0
  1252. --//=================================\\
  1253. --\\=================================//
  1254.  
  1255.  
  1256. --//=================================\\
  1257. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  1258. --\\=================================//
  1259.  
  1260. ArtificialHB = Instance.new("BindableEvent", script)
  1261. ArtificialHB.Name = "ArtificialHB"
  1262.  
  1263. script:WaitForChild("ArtificialHB")
  1264.  
  1265. frame = Frame_Speed
  1266. tf = 0
  1267. allowframeloss = false
  1268. tossremainder = false
  1269. lastframe = tick()
  1270. script.ArtificialHB:Fire()
  1271.  
  1272. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1273. tf = tf + s
  1274. if tf >= frame then
  1275. if allowframeloss then
  1276. script.ArtificialHB:Fire()
  1277. lastframe = tick()
  1278. else
  1279. for i = 1, math.floor(tf / frame) do
  1280. script.ArtificialHB:Fire()
  1281. end
  1282. lastframe = tick()
  1283. end
  1284. if tossremainder then
  1285. tf = 0
  1286. else
  1287. tf = tf - frame * math.floor(tf / frame)
  1288. end
  1289. end
  1290. end)
  1291.  
  1292. --//=================================\\
  1293. --\\=================================//
  1294.  
  1295. --//=================================\\
  1296. --|| SOME FUNCTIONS
  1297. --\\=================================//
  1298.  
  1299. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1300. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1301. end
  1302.  
  1303. function PositiveAngle(NUMBER)
  1304. if NUMBER >= 0 then
  1305. NUMBER = 0
  1306. end
  1307. return NUMBER
  1308. end
  1309.  
  1310. function NegativeAngle(NUMBER)
  1311. if NUMBER <= 0 then
  1312. NUMBER = 0
  1313. end
  1314. return NUMBER
  1315. end
  1316.  
  1317. function Swait(NUMBER)
  1318. if NUMBER == 0 or NUMBER == nil then
  1319. ArtificialHB.Event:wait()
  1320. else
  1321. for i = 1, NUMBER do
  1322. ArtificialHB.Event:wait()
  1323. end
  1324. end
  1325. end
  1326.  
  1327. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1328. local NEWMESH = IT(MESH)
  1329. if MESH == "SpecialMesh" then
  1330. NEWMESH.MeshType = MESHTYPE
  1331. if MESHID ~= "nil" and MESHID ~= "" then
  1332. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1333. end
  1334. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1335. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1336. end
  1337. end
  1338. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1339. NEWMESH.Scale = SCALE
  1340. NEWMESH.Parent = PARENT
  1341. return NEWMESH
  1342. end
  1343.  
  1344. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1345. local NEWPART = IT("Part")
  1346. NEWPART.formFactor = FORMFACTOR
  1347. NEWPART.Reflectance = REFLECTANCE
  1348. NEWPART.Transparency = TRANSPARENCY
  1349. NEWPART.CanCollide = false
  1350. NEWPART.Locked = true
  1351. NEWPART.Anchored = true
  1352. if ANCHOR == false then
  1353. NEWPART.Anchored = false
  1354. end
  1355. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1356. NEWPART.Name = NAME
  1357. NEWPART.Size = SIZE
  1358. NEWPART.Position = Torso.Position
  1359. NEWPART.Material = MATERIAL
  1360. NEWPART:BreakJoints()
  1361. NEWPART.Parent = PARENT
  1362. return NEWPART
  1363. end
  1364.  
  1365. local function weldBetween(a, b)
  1366. local weldd = Instance.new("ManualWeld")
  1367. weldd.Part0 = a
  1368. weldd.Part1 = b
  1369. weldd.C0 = CFrame.new()
  1370. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1371. weldd.Parent = a
  1372. return weldd
  1373. end
  1374.  
  1375.  
  1376. function QuaternionFromCFrame(cf)
  1377. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1378. local trace = m00 + m11 + m22
  1379. if trace > 0 then
  1380. local s = math.sqrt(1 + trace)
  1381. local recip = 0.5 / s
  1382. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1383. else
  1384. local i = 0
  1385. if m11 > m00 then
  1386. i = 1
  1387. end
  1388. if m22 > (i == 0 and m00 or m11) then
  1389. i = 2
  1390. end
  1391. if i == 0 then
  1392. local s = math.sqrt(m00 - m11 - m22 + 1)
  1393. local recip = 0.5 / s
  1394. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1395. elseif i == 1 then
  1396. local s = math.sqrt(m11 - m22 - m00 + 1)
  1397. local recip = 0.5 / s
  1398. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1399. elseif i == 2 then
  1400. local s = math.sqrt(m22 - m00 - m11 + 1)
  1401. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1402. end
  1403. end
  1404. end
  1405.  
  1406. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1407. local xs, ys, zs = x + x, y + y, z + z
  1408. local wx, wy, wz = w * xs, w * ys, w * zs
  1409. local xx = x * xs
  1410. local xy = x * ys
  1411. local xz = x * zs
  1412. local yy = y * ys
  1413. local yz = y * zs
  1414. local zz = z * zs
  1415. 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))
  1416. end
  1417.  
  1418. function QuaternionSlerp(a, b, t)
  1419. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1420. local startInterp, finishInterp;
  1421. if cosTheta >= 0.0001 then
  1422. if (1 - cosTheta) > 0.0001 then
  1423. local theta = ACOS(cosTheta)
  1424. local invSinTheta = 1 / SIN(theta)
  1425. startInterp = SIN((1 - t) * theta) * invSinTheta
  1426. finishInterp = SIN(t * theta) * invSinTheta
  1427. else
  1428. startInterp = 1 - t
  1429. finishInterp = t
  1430. end
  1431. else
  1432. if (1 + cosTheta) > 0.0001 then
  1433. local theta = ACOS(-cosTheta)
  1434. local invSinTheta = 1 / SIN(theta)
  1435. startInterp = SIN((t - 1) * theta) * invSinTheta
  1436. finishInterp = SIN(t * theta) * invSinTheta
  1437. else
  1438. startInterp = t - 1
  1439. finishInterp = t
  1440. end
  1441. end
  1442. 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
  1443. end
  1444.  
  1445. function Clerp(a, b, t)
  1446. local qa = {QuaternionFromCFrame(a)}
  1447. local qb = {QuaternionFromCFrame(b)}
  1448. local ax, ay, az = a.x, a.y, a.z
  1449. local bx, by, bz = b.x, b.y, b.z
  1450. local _t = 1 - t
  1451. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1452. end
  1453.  
  1454. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1455. local frame = IT("Frame")
  1456. frame.BackgroundTransparency = TRANSPARENCY
  1457. frame.BorderSizePixel = BORDERSIZEPIXEL
  1458. frame.Position = POSITION
  1459. frame.Size = SIZE
  1460. frame.BackgroundColor3 = COLOR
  1461. frame.BorderColor3 = BORDERCOLOR
  1462. frame.Name = NAME
  1463. frame.Parent = PARENT
  1464. return frame
  1465. end
  1466.  
  1467. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1468. local label = IT("TextLabel")
  1469. label.BackgroundTransparency = 1
  1470. label.Size = UD2(1, 0, 1, 0)
  1471. label.Position = UD2(0, 0, 0, 0)
  1472. label.TextColor3 = TEXTCOLOR
  1473. label.TextStrokeTransparency = STROKETRANSPARENCY
  1474. label.TextTransparency = TRANSPARENCY
  1475. label.FontSize = TEXTFONTSIZE
  1476. label.Font = TEXTFONT
  1477. label.BorderSizePixel = BORDERSIZEPIXEL
  1478. label.TextScaled = false
  1479. label.Text = TEXT
  1480. label.Name = NAME
  1481. label.Parent = PARENT
  1482. return label
  1483. end
  1484.  
  1485. function NoOutlines(PART)
  1486. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1487. end
  1488.  
  1489. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1490. local NEWWELD = IT(TYPE)
  1491. NEWWELD.Part0 = PART0
  1492. NEWWELD.Part1 = PART1
  1493. NEWWELD.C0 = C0
  1494. NEWWELD.C1 = C1
  1495. NEWWELD.Parent = PARENT
  1496. return NEWWELD
  1497. end
  1498.  
  1499. local S = IT("Sound")
  1500. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1501. local NEWSOUND = nil
  1502. coroutine.resume(coroutine.create(function()
  1503. NEWSOUND = S:Clone()
  1504. NEWSOUND.Parent = PARENT
  1505. NEWSOUND.Volume = VOLUME
  1506. NEWSOUND.Pitch = PITCH
  1507. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1508. NEWSOUND:play()
  1509. if DOESLOOP == true then
  1510. NEWSOUND.Looped = true
  1511. else
  1512. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  1513. NEWSOUND:remove()
  1514. end
  1515. end))
  1516. return NEWSOUND
  1517. end
  1518.  
  1519. function CFrameFromTopBack(at, top, back)
  1520. local right = top:Cross(back)
  1521. 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)
  1522. end
  1523.  
  1524. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1525. function WACKYEFFECT(Table)
  1526. local TYPE = (Table.EffectType or "Sphere")
  1527. local SIZE = (Table.Size or VT(1,1,1))
  1528. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1529. local TRANSPARENCY = (Table.Transparency or 0)
  1530. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1531. local CFRAME = (Table.CFrame or Torso.CFrame)
  1532. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1533. local ROTATION1 = (Table.RotationX or 0)
  1534. local ROTATION2 = (Table.RotationY or 0)
  1535. local ROTATION3 = (Table.RotationZ or 0)
  1536. local MATERIAL = (Table.Material or "Neon")
  1537. local COLOR = (Table.Color or C3(1,1,1))
  1538. local TIME = (Table.Time or 45)
  1539. local SOUNDID = (Table.SoundID or nil)
  1540. local SOUNDPITCH = (Table.SoundPitch or nil)
  1541. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1542. coroutine.resume(coroutine.create(function()
  1543. local PLAYSSOUND = false
  1544. local SOUND = nil
  1545. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1546. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1547. PLAYSSOUND = true
  1548. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1549. end
  1550. EFFECT.Color = COLOR
  1551. local MSH = nil
  1552. if TYPE == "Sphere" then
  1553. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1554. elseif TYPE == "Block" then
  1555. MSH = IT("BlockMesh",EFFECT)
  1556. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1557. elseif TYPE == "Wave" then
  1558. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1559. elseif TYPE == "Ring" then
  1560. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1561. elseif TYPE == "Slash" then
  1562. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1563. elseif TYPE == "Round Slash" then
  1564. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1565. elseif TYPE == "Swirl" then
  1566. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1567. elseif TYPE == "Skull" then
  1568. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1569. elseif TYPE == "Crystal" then
  1570. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1571. end
  1572. if MSH ~= nil then
  1573. local MOVESPEED = nil
  1574. if MOVEDIRECTION ~= nil then
  1575. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1576. end
  1577. local GROWTH = SIZE - ENDSIZE
  1578. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1579. if TYPE == "Block" then
  1580. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1581. else
  1582. EFFECT.CFrame = CFRAME
  1583. end
  1584. for LOOP = 1, TIME+1 do
  1585. Swait()
  1586. MSH.Scale = MSH.Scale - GROWTH/TIME
  1587. if TYPE == "Wave" then
  1588. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1589. end
  1590. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1591. if TYPE == "Block" then
  1592. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1593. else
  1594. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1595. end
  1596. if MOVEDIRECTION ~= nil then
  1597. local ORI = EFFECT.Orientation
  1598. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1599. EFFECT.Orientation = ORI
  1600. end
  1601. end
  1602. if PLAYSSOUND == false then
  1603. EFFECT:remove()
  1604. else
  1605. SOUND.Stopped:Connect(function()
  1606. EFFECT:remove()
  1607. end)
  1608. end
  1609. else
  1610. if PLAYSSOUND == false then
  1611. EFFECT:remove()
  1612. else
  1613. repeat Swait() until SOUND.Playing == false
  1614. EFFECT:remove()
  1615. end
  1616. end
  1617. end))
  1618. end
  1619.  
  1620. function MakeForm(PART,TYPE)
  1621. if TYPE == "Cyl" then
  1622. local MSH = IT("CylinderMesh",PART)
  1623. elseif TYPE == "Ball" then
  1624. local MSH = IT("SpecialMesh",PART)
  1625. MSH.MeshType = "Sphere"
  1626. elseif TYPE == "Wedge" then
  1627. local MSH = IT("SpecialMesh",PART)
  1628. MSH.MeshType = "Wedge"
  1629. end
  1630. end
  1631.  
  1632. function SpawnTrail(FROM,TO,BIG)
  1633. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Gold", "Trail", VT(0,0,0))
  1634. MakeForm(TRAIL,"Cyl")
  1635. local DIST = (FROM - TO).Magnitude
  1636. if BIG == true then
  1637. TRAIL.Size = VT(0.5,DIST,0.5)
  1638. else
  1639. TRAIL.Size = VT(0.25,DIST,0.25)
  1640. end
  1641. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1642. coroutine.resume(coroutine.create(function()
  1643. for i = 1, 5 do
  1644. Swait()
  1645. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1646. end
  1647. TRAIL:remove()
  1648. end))
  1649. end
  1650.  
  1651. Debris = game:GetService("Debris")
  1652.  
  1653. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1654. local DIRECTION = CF(StartPos,EndPos).lookVector
  1655. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1656. end
  1657.  
  1658. function turnto(position)
  1659. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1660. end
  1661. --//=================================\\
  1662. --|| DAMAGE FUNCTIONS
  1663. --\\=================================//
  1664.  
  1665. function StatLabel(CFRAME, TEXT, COLOR)
  1666. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "white", "Effect", VT())
  1667. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1668. local BODYGYRO = IT("BodyGyro", STATPART)
  1669. game:GetService("Debris"):AddItem(STATPART ,5)
  1670. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1671. BILLBOARDGUI.Adornee = STATPART
  1672. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1673. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1674. BILLBOARDGUI.AlwaysOnTop = false
  1675. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1676. TEXTLABEL.BackgroundTransparency = 1
  1677. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1678. TEXTLABEL.Text = TEXT
  1679. TEXTLABEL.Font = SKILLFONT
  1680. TEXTLABEL.FontSize="Size42"
  1681. TEXTLABEL.TextColor3 = COLOR
  1682. TEXTLABEL.TextStrokeTransparency = 0
  1683. TEXTLABEL.TextScaled = true
  1684. TEXTLABEL.TextWrapped = true
  1685. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1686. for i = 1, 50 do
  1687. Swait()
  1688. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1689. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  1690. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1691. end
  1692. THEPART.Parent = nil
  1693. end),STATPART, TEXTLABEL)
  1694. end
  1695.  
  1696.  
  1697. --//=================================\\
  1698. --|| DAMAGING
  1699. --\\=================================//
  1700. function KillChildren(v)
  1701. v:BreakJoints()
  1702. for _, c in pairs(v:GetChildren()) do
  1703. if c:IsA("BasePart") then
  1704. if c.Transparency < 1 then
  1705. if c:FindFirstChildOfClass("Decal") then
  1706. c:FindFirstChildOfClass("Decal"):remove()
  1707. end
  1708. particles(c)
  1709. c.PE.Enabled = true
  1710. c.Parent = Effects
  1711. c.CanCollide = false
  1712. c.Material = "Neon"
  1713. c.Color = C3(1,1,1)
  1714. c.Transparency = 1
  1715. local grav = Instance.new("BodyPosition",c)
  1716. grav.P = 20000
  1717. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1718. grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
  1719. grav.Name = "GravityForce"
  1720. coroutine.resume(coroutine.create(function()
  1721. for i = 1, 20 do
  1722. Swait()
  1723. c.Transparency = c.Transparency + 1/20
  1724. end
  1725. c.PE.Enabled = false
  1726. Debris:AddItem(c,2)
  1727. end))
  1728. end
  1729. end
  1730. end
  1731. end
  1732.  
  1733. function ApplyAoE(POSITION,RANGE)
  1734. local CHILDREN = workspace:GetDescendants()
  1735. for index, CHILD in pairs(CHILDREN) do
  1736. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1737. local LISTED = false
  1738. for LIST = 1, #WHITELIST do
  1739. if WHITELIST[LIST] ~= nil then
  1740. if CHILD.Name == WHITELIST[LIST] then
  1741. LISTED = true
  1742. end
  1743. end
  1744. end
  1745. if LISTED == false then
  1746. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1747. if HUM then
  1748. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1749. if TORSO then
  1750. if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
  1751. KillChildren(CHILD)
  1752. end
  1753. end
  1754. end
  1755. end
  1756. end
  1757. end
  1758. end
  1759. --\\=================================//
  1760.  
  1761. local Particle = IT("ParticleEmitter",nil)
  1762. Particle.Enabled = false
  1763. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1764. Particle.LightEmission = 0.5
  1765. Particle.Rate = 150
  1766. Particle.ZOffset = 0.2
  1767. Particle.Rotation = NumberRange.new(-180, 180)
  1768. Particle.RotSpeed = NumberRange.new(-180, 180)
  1769. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1770. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  1771.  
  1772. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1773. function ParticleEmitter(Table)
  1774. local PRTCL = Particle:Clone()
  1775. local Speed = Table.Speed or 5
  1776. local Drag = Table.Drag or 0
  1777. local Size1 = Table.Size1 or 1
  1778. local Size2 = Table.Size2 or 5
  1779. local Lifetime1 = Table.Lifetime1 or 1
  1780. local Lifetime2 = Table.Lifetime2 or 1.5
  1781. local Parent = Table.Parent or Torso
  1782. local Emit = Table.Emit or 100
  1783. local Offset = Table.Offset or 360
  1784. local Acel = Table.Acel or VT(0,0,0)
  1785. local Enabled = Table.Enabled or false
  1786. PRTCL.Parent = Parent
  1787. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1788. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1789. PRTCL.Speed = NumberRange.new(Speed)
  1790. PRTCL.VelocitySpread = Offset
  1791. PRTCL.Drag = Drag
  1792. PRTCL.Acceleration = Acel
  1793. if Enabled == false then
  1794. PRTCL:Emit(Emit)
  1795. Debris:AddItem(PRTCL,Lifetime2)
  1796. else
  1797. PRTCL.Enabled = true
  1798. end
  1799. return PRTCL
  1800. end
  1801. --\\=================================//
  1802. --\\=================================//
  1803. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1804. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1805. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1806. MakeForm(Part,"Wedge")
  1807. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1808. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1809. MakeForm(Part,"Wedge")
  1810. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1811. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1812. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1813. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1814. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1815. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1816. MakeForm(Part,"Cyl")
  1817. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1818. for i = 1, 8 do
  1819. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1820. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1821. end
  1822. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1823. MakeForm(Part,"Cyl")
  1824. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1825. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1826. MakeForm(Part,"Ball")
  1827. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1828. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1829. MakeForm(Part,"Wedge")
  1830. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1831. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1832. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1833. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1834. MakeForm(Part,"Cyl")
  1835. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1836. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1837. MakeForm(Part,"Cyl")
  1838. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1839. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1840. MakeForm(Part,"Cyl")
  1841. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1842. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1843. MakeForm(Part,"Wedge")
  1844. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1845. local LASTPART = Handle
  1846. for i = 1, 10 do
  1847. if LASTPART == Handle then
  1848. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1849. LASTPART = Part
  1850. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1851. else
  1852. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1853. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1854. LASTPART = Part
  1855. end
  1856. end
  1857.  
  1858. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1859. MakeForm(Barrel,"Cyl")
  1860. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1861. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1862. MakeForm(Part,"Cyl")
  1863. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1864. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1865. MakeForm(Part,"Wedge")
  1866. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1867. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1868. MakeForm(Hole,"Cyl")
  1869. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1870. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1871. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1872. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1873. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1874. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1875. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1876. coroutine.resume(coroutine.create(function()
  1877. while wait() do
  1878. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1879. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1880. end
  1881. end))
  1882.  
  1883. local A = IT("Attachment",Barrel)
  1884. A.Position = VT(0,-2.5,0)
  1885. local B = IT("Attachment",Barrel)
  1886. B.Position = VT(0,2.5,0)
  1887. local Trail = IT("Trail",Barrel)
  1888. Trail.Attachment0 = A
  1889. Trail.Attachment1 = B
  1890. Trail.Lifetime = 0.2
  1891. Trail.Color = ColorSequence.new(BRICKC"Gold".Color)
  1892. Trail.Transparency = NumberSequence.new(0, 1)
  1893. Trail.Enabled = true
  1894.  
  1895. local bladeefo = Instance.new("ParticleEmitter",Barrel)
  1896. bladeefo.Texture = "http://www.roblox.com/asset/?id=2017111204"
  1897. bladeefo.LightEmission = 1
  1898. bladeefo.LockedToPart = true
  1899. bladeefo.Color = ColorSequence.new(BrickColor.new("Gold").Color)
  1900. bladeefo.Rate = 900
  1901. bladeefo.VelocitySpread = 900000000000
  1902. bladeefo.Lifetime = NumberRange.new(0.25)
  1903. bladeefo.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.25,0),NumberSequenceKeypoint.new(1,0,0)})
  1904. bladeefo.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)})
  1905. bladeefo.Rotation = NumberRange.new(-500,500)
  1906. bladeefo.RotSpeed = NumberRange.new(-500,500)
  1907. bladeefo.Speed = NumberRange.new(5,7.5)
  1908.  
  1909. local dd = Instance.new("ParticleEmitter",hole)
  1910. dd.Texture = "http://www.roblox.com/asset/?id=409250518"
  1911. dd.LightEmission = 1
  1912. dd.Color = ColorSequence.new(Color3.new(255,0,0))
  1913. dd.Rate = 50
  1914. dd.Lifetime = NumberRange.new(0.5)
  1915. dd.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(1,0,0)})
  1916. dd.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)})
  1917. dd.Speed = NumberRange.new(0)
  1918. dd.Rotation = NumberRange.new(-500,500)
  1919. dd.VelocitySpread = 90000
  1920. dd.LockedToPart = true
  1921.  
  1922. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.3, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1923. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1924.  
  1925. for _, c in pairs(Weapon:GetDescendants()) do
  1926. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1927. c.Material = "Glass"
  1928. c.Color = C3(1,0,0)
  1929. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1930. c.Color = C3(1,0,0)
  1931. c.Material = "Neon"
  1932. end
  1933. end
  1934.  
  1935. Weapon.Parent = Character
  1936. for _, c in pairs(Weapon:GetChildren()) do
  1937. if c.ClassName == "Part" then
  1938. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1939. end
  1940. end
  1941. function printbye(Name)
  1942. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  1943. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1944. end
  1945.  
  1946. workspace.ChildAdded:connect(function(instance)
  1947. for BANISH = 1, #TOBANISH do
  1948. if TOBANISH[BANISH] ~= nil then
  1949. if instance.Name == TOBANISH[BANISH] then
  1950. coroutine.resume(coroutine.create(function()
  1951. printbye(instance.Name)
  1952. instance:ClearAllChildren()
  1953. Debris:AddItem(instance,0.0005)
  1954. end))
  1955. end
  1956. end
  1957. end
  1958. end)
  1959. function Banish(Foe)
  1960. if Foe then
  1961. coroutine.resume(coroutine.create(function()
  1962. --if game.Players:FindFirstChild(Foe.Name) then
  1963. table.insert(TOBANISH,Foe.Name)
  1964. printbye(Foe.Name)
  1965. --end
  1966. Foe.Archivable = true
  1967. local CLONE = Foe:Clone()
  1968. Foe:Destroy()
  1969. CLONE.Parent = Effects
  1970. CLONE:BreakJoints()
  1971. local MATERIALS = {"Glass","Neon"}
  1972. for _, c in pairs(CLONE:GetDescendants()) do
  1973. if c:IsA("BasePart") then
  1974. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1975. CreateSound(340722848, c, 10, 1, false)
  1976. end
  1977. c.Anchored = true
  1978. c.Transparency = c.Transparency + 0.2
  1979. c.Material = MATERIALS[MRANDOM(1,2)]
  1980. c.Color = C3(1,0,0)
  1981. if c.ClassName == "MeshPart" then
  1982. c.TextureID = ""
  1983. end
  1984. if c:FindFirstChildOfClass("SpecialMesh") then
  1985. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1986. end
  1987. if c:FindFirstChildOfClass("Decal") then
  1988. c:FindFirstChildOfClass("Decal"):remove()
  1989. end
  1990. c.Name = "Banished"
  1991. c.CanCollide = false
  1992. else
  1993. c:remove()
  1994. end
  1995. end
  1996. local A = false
  1997. for i = 1, 35 do
  1998. if A == false then
  1999. A = true
  2000. elseif A == true then
  2001. A = false
  2002. end
  2003. for _, c in pairs(CLONE:GetDescendants()) do
  2004. if c:IsA("BasePart") then
  2005. c.Anchored = true
  2006. c.Material = MATERIALS[MRANDOM(1,2)]
  2007. c.Transparency = c.Transparency + 0.8/35
  2008. if A == false then
  2009. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2010. elseif A == true then
  2011. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2012. end
  2013. end
  2014. end
  2015. Swait()
  2016. end
  2017. CLONE:remove()
  2018. end))
  2019. end
  2020. end
  2021.  
  2022. function ApplyAoE(POSITION,RANGE,ISBANISH)
  2023. local CHILDREN = workspace:GetDescendants()
  2024. for index, CHILD in pairs(CHILDREN) do
  2025. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2026. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2027. if HUM then
  2028. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2029. if TORSO then
  2030. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2031. if ISBANISH == true then
  2032. Banish(CHILD)
  2033. else
  2034. if ISBANISH == "Gravity" then
  2035. HUM.PlatformStand = true
  2036. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  2037. local grav = Instance.new("BodyPosition",TORSO)
  2038. grav.D = 15
  2039. grav.P = 20000
  2040. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2041. grav.position = TORSO.Position
  2042. grav.Name = "V3BanishForce"..Player.Name
  2043. else
  2044. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  2045. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  2046. end
  2047. else
  2048. HUM.PlatformStand = false
  2049. end
  2050. end
  2051. elseif ISBANISH == "Gravity" then
  2052. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  2053. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  2054. HUM.PlatformStand = false
  2055. end
  2056. end
  2057. end
  2058. end
  2059. end
  2060. end
  2061. end
  2062.  
  2063. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  2064. if FLOOR ~= nil then
  2065. coroutine.resume(coroutine.create(function()
  2066. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  2067. PART.CFrame = CF(POSITION)
  2068. for i = 1, 45 do
  2069. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  2070. RingPiece.Material = FLOOR.Material
  2071. RingPiece.Color = FLOOR.Color
  2072. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  2073. Debris:AddItem(RingPiece,SWAIT)
  2074. end
  2075. PART:remove()
  2076. end))
  2077. end
  2078. end
  2079.  
  2080. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  2081. if FLOOR ~= nil then
  2082. for i = 1, AMOUNT do
  2083. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  2084. DEBREE.Material = FLOOR.Material
  2085. DEBREE.Color = FLOOR.Color
  2086. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  2087. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  2088. coroutine.resume(coroutine.create(function()
  2089. Swait(15)
  2090. DEBREE.Parent = workspace
  2091. DEBREE.CanCollide = true
  2092. Debris:AddItem(DEBREE,SWAIT)
  2093. end))
  2094. end
  2095. end
  2096. end
  2097.  
  2098. for _, c in pairs(Character:GetDescendants()) do
  2099. if c and c.Parent then
  2100. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  2101. local ACCESSORY = c.Parent
  2102. c.Parent = Character
  2103. if c then
  2104. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  2105. weldBetween(Head,c)
  2106. else
  2107. weldBetween(Torso,c)
  2108. end
  2109. end
  2110. ACCESSORY:remove()
  2111. elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  2112. c.Material = "Neon"
  2113. c.Color = C3(0,0,0)
  2114. if c:FindFirstChildOfClass("SpecialMesh") then
  2115. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2116. end
  2117. if c == Head then
  2118. if c:FindFirstChild("face") then
  2119. c.face:remove()
  2120. end
  2121. end
  2122. elseif c.ClassName == "Part" and c.Name == "Eye" then
  2123. c.Color = C3(58,125,21)
  2124. c.Material = "Neon"
  2125. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  2126. c:remove()
  2127. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2128. c:remove()
  2129. end
  2130. end
  2131. end
  2132. local BODY = {}
  2133. for _, c in pairs(Character:GetDescendants()) do
  2134. if c:IsA("BasePart") and c.Name ~= "Handle" then
  2135. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  2136. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2137. end
  2138. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  2139. elseif c:IsA("JointInstance") then
  2140. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  2141. end
  2142. end
  2143. function refit()
  2144. Character.Parent = workspace
  2145. for e = 1, #BODY do
  2146. if BODY[e] ~= nil then
  2147. local STUFF = BODY[e]
  2148. local PART = STUFF[1]
  2149. local PARENT = STUFF[2]
  2150. local MATERIAL = STUFF[3]
  2151. local COLOR = STUFF[4]
  2152. local TRANSPARENCY = STUFF[5]
  2153. --local SIZE = STUFF[6]
  2154. local NAME = STUFF[7]
  2155. if PART.ClassName == "Part" and PART ~= RootPart then
  2156. PART.Material = MATERIAL
  2157. PART.Transparency = TRANSPARENCY
  2158. PART.Name = NAME
  2159. end
  2160. if PART.Parent ~= PARENT then
  2161. Humanoid:remove()
  2162. PART.Parent = PARENT
  2163. Humanoid = IT("Humanoid",Character)
  2164. end
  2165. end
  2166. end
  2167. end
  2168.  
  2169. local SKILLTEXTCOLOR = C3(0,0,0)
  2170. local SKILLFONT = "Fantasy"
  2171. local SKILLTEXTSIZE = 6
  2172.  
  2173. Humanoid.Died:connect(function()
  2174. refit()
  2175. end)
  2176.  
  2177. function Charge(TIME,GYRO)
  2178. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  2179. local G = nil
  2180. if GYRO == true then
  2181. G = IT("BodyGyro",RootPart)
  2182. G.D = 250
  2183. G.P = 200000
  2184. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  2185. end
  2186. for i=0, TIME, 0.1 / Animation_Speed do
  2187. Swait()
  2188. if G then
  2189. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2190. end
  2191. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2192. 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)
  2193. 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)
  2194. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2195. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2196. 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)
  2197. 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)
  2198. end
  2199. SND:remove()
  2200. if G then
  2201. return G
  2202. end
  2203. end
  2204.  
  2205. --//=================================\\
  2206. --|| ATTACK FUNCTIONS AND STUFF
  2207. --\\=================================//
  2208.  
  2209. function Shot()
  2210. ATTACK = true
  2211. Rooted = false
  2212. for i=0, 0.4, 0.1 / SPEED do
  2213. Swait()
  2214. turnto(Mouse.Hit.p)
  2215. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.1 / SPEED)
  2216. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / SPEED)
  2217. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.1 / SPEED)
  2218. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.1 / SPEED)
  2219. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.1 / SPEED)
  2220. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.1 / SPEED)
  2221. end
  2222. repeat
  2223. for i=0, 0.2, 0.1 / SPEED do
  2224. Swait()
  2225. turnto(Mouse.Hit.p)
  2226. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.1 / SPEED)
  2227. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / SPEED)
  2228. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.1 / SPEED)
  2229. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.1 / SPEED)
  2230. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.1 / SPEED)
  2231. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.1 / SPEED)
  2232. end
  2233. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  2234. SpawnTrail(Hole.Position,POS)
  2235. if HIT ~= nil then
  2236. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2237. Banish(HIT.Parent)
  2238. end
  2239. end
  2240. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2241. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 151414336, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2242. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2243. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2244. for i=0, 0.3, 0.1 / SPEED do
  2245. Swait()
  2246. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.1 / SPEED)
  2247. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / SPEED)
  2248. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / SPEED)
  2249. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / SPEED)
  2250. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / SPEED)
  2251. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / SPEED)
  2252. end
  2253. until KEYHOLD == false
  2254. ATTACK = false
  2255. Rooted = false
  2256. end
  2257.  
  2258. function Morning_Star()
  2259. ATTACK = true
  2260. Rooted = true
  2261. for i=0, 1, 0.1 / Animation_Speed do
  2262. Swait()
  2263. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2264. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2265. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2266. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2267. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2268. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2269. end
  2270. coroutine.resume(coroutine.create(function()
  2271. local POS = Mouse.Hit.p
  2272. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Strike", VT(0,2000,0))
  2273. MakeForm(RAY,"Cyl")
  2274. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Strike", VT(0,0,0))
  2275. MakeForm(SPHERE,"Ball")
  2276. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Gold", "Strike", VT(0,0,0))
  2277. MakeForm(SHIELD,"Ball")
  2278. SHIELD.CFrame = CF(POS)
  2279. RAY.CFrame = CF(POS)
  2280. SPHERE.CFrame = CF(POS)
  2281. CreateSound(440145570, SPHERE, 10, 0.8, false)
  2282. CreateSound(415700134, SPHERE, 10, 0.8, false)
  2283. for i = 1, 200 do
  2284. Swait()
  2285. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2286. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  2287. SPHERE.Size = SPHERE.Size + VT(2,2,2)
  2288. SHIELD.Size = SPHERE.Size + VT(3,3,3)
  2289. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  2290. end
  2291. for i = 1, 45 do
  2292. Swait()
  2293. RAY.Transparency = RAY.Transparency + 1/45
  2294. SPHERE.Transparency = RAY.Transparency
  2295. SHIELD.Transparency = SPHERE.Transparency + 1/45
  2296. end
  2297. RAY:remove()
  2298. SHIELD:remove()
  2299. SPHERE:remove()
  2300. end))
  2301. for i=0, 1, 0.1 / Animation_Speed do
  2302. Swait()
  2303. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2304. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2305. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2306. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2307. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2308. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2309. end
  2310. ATTACK = false
  2311. Rooted = false
  2312. end
  2313.  
  2314.  
  2315. function Deathbound()
  2316. ATTACK = true
  2317. Rooted = true
  2318. for i=0, 1, 0.1 / Animation_Speed do
  2319. Swait()
  2320. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2321. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2322. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2323. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2324. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2325. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2326. end
  2327. local DONE = false
  2328. local GATE = nil
  2329. local GATESPIN = true
  2330. coroutine.resume(coroutine.create(function()
  2331. repeat
  2332. Swait()
  2333. if GATE ~= nil then
  2334. GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0))
  2335. end
  2336. until GATESPIN == false
  2337. end))
  2338. coroutine.resume(coroutine.create(function()
  2339. repeat
  2340. Swait()
  2341. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2342. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2343. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2344. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2345. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2346. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2347. until DONE == true
  2348. Swait(50)
  2349. for i = 1, 35 do
  2350. Swait(4)
  2351. local FIRED = false
  2352. local CHILDREN = workspace:GetDescendants()
  2353. for index, CHILD in pairs(CHILDREN) do
  2354. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2355. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2356. if HUM then
  2357. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2358. if TORSO then
  2359. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2360. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2361. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2362. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
  2363. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2364. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2365. Kill(CHILD)
  2366. FIRED = true
  2367. break
  2368. end
  2369. end
  2370. end
  2371. end
  2372. end
  2373. if FIRED == false then
  2374. local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2375. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
  2376. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2377. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2378. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2379. if HITBOD ~= nil then
  2380. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2381. Kill(HITBOD.Parent)
  2382. end
  2383. end
  2384. end
  2385. end
  2386. for i = 1, 45 do
  2387. Swait()
  2388. GATE.Size = GATE.Size - VT(3,0,3)
  2389. end
  2390. GATESPIN = false
  2391. GATE:remove()
  2392. end))
  2393. Swait(15)
  2394. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2395. GATE = CreatePart(3, Effects, "Neon", 0, 1, "Lime green", "Gate", VT(0,0,0))
  2396. local DECAL = IT("Decal",GATE)
  2397. DECAL.Texture = "http://www.roblox.com/asset/?id=1526406096"
  2398. DECAL.Face = "Top"
  2399. GATE.CFrame = CF(HITPOS)
  2400. CreateSound(160772554, GATE, 7, 1.3, false)
  2401. for i = 1, 45 do
  2402. Swait()
  2403. GATE.Size = GATE.Size + VT(3,0,3)
  2404. end
  2405. CreateSound(145080998, RightHole, 7, 1, false)
  2406. CreateSound(145080998, LeftHole, 7, 1, false)
  2407. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2408. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2409. ATTACK = false
  2410. Rooted = false
  2411. DONE = true
  2412. end
  2413.  
  2414. function Debree(POS,SWAIT)
  2415. coroutine.resume(coroutine.create(function()
  2416. local HOLDER = IT("Model",Effects)
  2417. HOLDER.Name = "Debree"
  2418. local HITFLOOR = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2419. MagicSphere(VT(15,1,15),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  2420. MagicSphere(VT(13,1,13),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  2421. MagicSphere(VT(12,1,12),SWAIT,CF(POS),"Reddish brown",VT(0,0,0))
  2422. repeat Swait() until HITFLOOR ~= nil
  2423. local O = 0
  2424. for i = 1, 18 do
  2425. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3))
  2426. Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2427. O = O - (45/4)/5+i/4
  2428. coroutine.resume(coroutine.create(function()
  2429. Swait(SWAIT)
  2430. for i = 1, 60 do
  2431. Swait()
  2432. local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace)
  2433. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2434. end
  2435. for i = 1, 50 do
  2436. Swait()
  2437. Part.Size = Part.Size * 0.9
  2438. end
  2439. end))
  2440. end
  2441. local O = 0
  2442. for i = 1, 18 do
  2443. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3))
  2444. Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2445. O = O + (45/4)/5-i/4
  2446. coroutine.resume(coroutine.create(function()
  2447. Swait(SWAIT)
  2448. for i = 1, 60 do
  2449. Swait()
  2450. local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace)
  2451. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2452. end
  2453. for i = 1, 50 do
  2454. Swait()
  2455. Part.Size = Part.Size * 0.9
  2456. end
  2457. end))
  2458. end
  2459. Swait(SWAIT+110)
  2460. HOLDER:remove()
  2461. end))
  2462. end
  2463.  
  2464. function Prison_Key()
  2465. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  2466. PLAYMAINANIM = false
  2467. if WhichPose == "Cast1" then
  2468. for i=0, Time, 0.1 / Animation_Speed do
  2469. Swait()
  2470. if Magic == true then
  2471. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2472. end
  2473. if Gyro ~= nil and Gyro ~= false then
  2474. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2475. end
  2476. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  2477. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  2478. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2479. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2480. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2481. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2482. end
  2483. elseif WhichPose == "Cast2" then
  2484. for i=0, Time, 0.1 / Animation_Speed do
  2485. Swait()
  2486. if Magic == true then
  2487. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2488. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2489. end
  2490. if Gyro ~= nil and Gyro ~= false then
  2491. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2492. end
  2493. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2494. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  2495. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2496. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2497. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2498. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2499. end
  2500. elseif WhichPose == "RightArmUp" then
  2501. for i=0, Time, 0.1 / Animation_Speed do
  2502. Swait()
  2503. if Magic == true then
  2504. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2505. end
  2506. if Gyro ~= nil and Gyro ~= false then
  2507. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2508. end
  2509. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  2510. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2511. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2512. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2513. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2514. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2515. end
  2516. elseif WhichPose == "Taunt" then
  2517. for i=0, Time, 0.1 / Animation_Speed do
  2518. Swait()
  2519. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2520. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  2521. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2522. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2523. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2524. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2525. end
  2526. HATWELD.Part0 = RightArm
  2527. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  2528. CreateSound(221057812,Torso,10,1,false)
  2529. for i=0, Time*2, 0.1 / Animation_Speed do
  2530. Swait()
  2531. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2532. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  2533. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2534. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2535. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2536. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2537. end
  2538. for i=0, Time, 0.1 / Animation_Speed do
  2539. Swait()
  2540. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2541. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  2542. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2543. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2544. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2545. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2546. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  2547. end
  2548. HATWELD.Part0 = Head
  2549. HATWELD.C0 = CF(0,0.35,0)
  2550. elseif WhichPose == "Prepare key" then
  2551. for i=0, Time, 0.1 / Animation_Speed do
  2552. Swait()
  2553. if Gyro ~= nil and Gyro ~= false then
  2554. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  2555. end
  2556. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  2557. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  2558. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2559. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2560. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2561. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2562. end
  2563. elseif WhichPose == "Turn key" then
  2564. for i=0, Time, 0.1 / Animation_Speed do
  2565. Swait()
  2566. if Gyro ~= nil and Gyro ~= false then
  2567. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  2568. end
  2569. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  2570. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  2571. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2572. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2573. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2574. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2575. end
  2576. end
  2577. PLAYMAINANIM = true
  2578. end
  2579. if Mouse.Target ~= nil then
  2580. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2581. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2582. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2583. local GYRO = IT("BodyGyro",RootPart)
  2584. GYRO.D = 750
  2585. GYRO.P = 20000
  2586. GYRO.MaxTorque = VT(0,40000000,0)
  2587. local grav = Instance.new("BodyPosition",TORSO)
  2588. grav.D = 15
  2589. grav.P = 20000
  2590. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2591. grav.position = TORSO.Position
  2592. local GYRO2 = IT("BodyGyro",TORSO)
  2593. GYRO2.D = 750
  2594. GYRO2.P = 20000
  2595. GYRO2.MaxTorque = VT(0,40000000,0)
  2596. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2597. grav.Name = "Jail"
  2598. local LOCKPARTS = {}
  2599. ATTACK = true
  2600. Rooted = false
  2601. local LOCK = IT("Model",Effects)
  2602. LOCK.Name = "Lock"
  2603. local LOCK2 = IT("Model",LOCK)
  2604. LOCK2.Name = "Metal"
  2605. --CREATE LOCK--
  2606. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  2607. LOCK.PrimaryPart = BASE
  2608. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  2609. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  2610. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  2611. MakeForm(PRT,"Cyl")
  2612. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  2613. PRT.Color = C3(0,0,0)
  2614. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  2615. MakeForm(PRT,"Cyl")
  2616. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  2617. PRT.Color = C3(0,0,0)
  2618. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  2619. for i = 1, 45 do
  2620. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2621. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  2622. end
  2623. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2624. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  2625. LOCK2.PrimaryPart = PRT
  2626. ---------------
  2627. local CHILDREN = LOCK:GetDescendants()
  2628. for index, CHILD in pairs(CHILDREN) do
  2629. if CHILD:IsA("BasePart") then
  2630. CHILD.Transparency = 1
  2631. end
  2632. end
  2633. for i = 1, 75 do
  2634. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  2635. Swait()
  2636. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2637. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2638. local CHILDREN = LOCK:GetDescendants()
  2639. for index, CHILD in pairs(CHILDREN) do
  2640. if CHILD:IsA("BasePart") then
  2641. CHILD.Transparency = CHILD.Transparency - 1/75
  2642. end
  2643. end
  2644. end
  2645. HUM.DisplayDistanceType = "None"
  2646. local KEY = IT("Model",Effects)
  2647. KEY.Name = "Key"
  2648. --CREATE KEY--
  2649. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "KeyBase", VT(0.1, 1, 0.1),false)
  2650. KEY.PrimaryPart = KBASE
  2651. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  2652. local WLD = weldBetween(RightArm,KBASE)
  2653. for i = 1, 45 do
  2654. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "Key", VT(0.1, 0.1, 0.1),false)
  2655. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  2656. weldBetween(KBASE,PRT)
  2657. end
  2658. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "Key", VT(0.3, 0.1, 0.1),false)
  2659. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  2660. weldBetween(KBASE,PRT)
  2661. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "Key", VT(0.3, 0.1, 0.1),false)
  2662. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  2663. weldBetween(KBASE,PRT)
  2664. --------------
  2665. Rooted = true
  2666. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  2667. coroutine.resume(coroutine.create(function()
  2668. for i = 1, 10 do
  2669. Swait()
  2670. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2671. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2672. end
  2673. CreateSound(1149318312,BASE,5,1,false)
  2674. CreateSound(160772554,BASE,3,1,false)
  2675. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  2676. for i = 1, 4 do
  2677. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2678. end
  2679. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  2680. wait(1)
  2681. TORSO.Parent.Parent = LOCK
  2682. for i = 1, 75 do
  2683. Swait()
  2684. local CHILDREN = KEY:GetDescendants()
  2685. for index, CHILD in pairs(CHILDREN) do
  2686. if CHILD:IsA("BasePart") then
  2687. CHILD.Transparency = i/25
  2688. end
  2689. end
  2690. local CHILDREN = LOCK:GetDescendants()
  2691. for index, CHILD in pairs(CHILDREN) do
  2692. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  2693. CHILD.Transparency = CHILD.Transparency + 1/75
  2694. elseif CHILD.ClassName == "Decal" then
  2695. CHILD.Transparency = CHILD.Transparency + 1/75
  2696. end
  2697. end
  2698. end
  2699. TORSO.Parent:ClearAllChildren()
  2700. KEY:remove()
  2701. LOCK:remove()
  2702. end))
  2703. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  2704. GYRO:remove()
  2705. ATTACK = false
  2706. Rooted = false
  2707. end
  2708. end
  2709. end
  2710.  
  2711. function MagicSphere2(size,waitt,cframe,color)
  2712. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
  2713. local mesh = IT("SpecialMesh",wave)
  2714. mesh.MeshType = "Sphere"
  2715. mesh.Scale = VT(size,size,size)
  2716. mesh.Offset = VT(0,0,0)
  2717. wave.CFrame = cframe
  2718. coroutine.resume(coroutine.create(function(PART)
  2719. for i = 1, waitt do
  2720. Swait()
  2721. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  2722. wave.Transparency = wave.Transparency - (1/waitt)
  2723. end
  2724. wave:remove()
  2725. end))
  2726. end
  2727. function MagicSphere(size,waitt,cframe,color)
  2728. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  2729. local mesh = IT("SpecialMesh",wave)
  2730. mesh.MeshType = "Sphere"
  2731. mesh.Scale = VT(size,size,size)
  2732. mesh.Offset = VT(0,0,0)
  2733. wave.CFrame = cframe
  2734. coroutine.resume(coroutine.create(function(PART)
  2735. for i = 1, waitt do
  2736. Swait()
  2737. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  2738. wave.Transparency = wave.Transparency + (1/waitt)
  2739. if wave.Transparency > 0.99 then
  2740. wave:remove()
  2741. end
  2742. end
  2743. end))
  2744. end
  2745.  
  2746. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  2747. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  2748. local mesh = IT("SpecialMesh",wave)
  2749. mesh.MeshType = "FileMesh"
  2750. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2751. mesh.Scale = VT(size,size,size)
  2752. wave.CFrame = cframe
  2753. coroutine.resume(coroutine.create(function(PART)
  2754. for i = 1, waitt do
  2755. Swait()
  2756. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  2757. if doesrotate == true then
  2758. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  2759. end
  2760. wave.Transparency = wave.Transparency + (0.5/waitt)
  2761. if wave.Transparency > 0.99 then
  2762. wave:remove()
  2763. end
  2764. end
  2765. end))
  2766. end
  2767. function CheckTableForString(Table, String)
  2768. for i, v in pairs(Table) do
  2769. if string.find(string.lower(String), string.lower(v)) then
  2770. return true
  2771. end
  2772. end
  2773. return false
  2774. end
  2775.  
  2776. function CheckIntangible(Hit)
  2777. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  2778. if Hit and Hit.Parent then
  2779. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  2780. return true
  2781. end
  2782. end
  2783. return false
  2784. end
  2785.  
  2786. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  2787. local Direction = CFrame.new(StartPos, Vec).lookVector
  2788. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  2789. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  2790. if RayHit and CheckIntangible(RayHit) then
  2791. if DelayIfHit then
  2792. wait()
  2793. end
  2794. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  2795. end
  2796. return RayHit, RayPos, RayNormal
  2797. end
  2798.  
  2799. function attractnearest(postype,position,range,maxstrength,last)
  2800. if postype == "Vector" then
  2801. for i,v in ipairs(workspace:GetChildren()) do
  2802. local body = v:GetChildren()
  2803. for part = 1, #body do
  2804. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2805. if(body[part].Position - position).Magnitude < range then
  2806. if body[part]:FindFirstChild("ATTRACT") == nil then
  2807. local bv = Instance.new("BodyVelocity")
  2808. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2809. bv.velocity = CF(body[part].Position,position).lookVector*maxstrength
  2810. bv.Parent = body[part]
  2811. bv.Name = "ATTRACT"
  2812. else
  2813. coroutine.resume(coroutine.create(function()
  2814. for i = 1, last/5 do
  2815. Swait(5)
  2816. body[part].ATTRACT.velocity = CF(body[part].Position,position).lookVector*maxstrength
  2817. end
  2818. body[part].ATTRACT:remove()
  2819. end))
  2820. end
  2821. end
  2822. end
  2823. end
  2824. if v.ClassName == "Part" then
  2825. if v.Anchored == false and (v.Position - position).Magnitude < range then
  2826. if v:FindFirstChild("ATTRACT") == nil then
  2827. local bv = Instance.new("BodyVelocity")
  2828. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2829. bv.velocity = CF(v.Position,position).lookVector*maxstrength
  2830. bv.Parent = v
  2831. bv.Name = "ATTRACT"
  2832. else
  2833. coroutine.resume(coroutine.create(function()
  2834. for i = 1, last/5 do
  2835. Swait(5)
  2836. v.ATTRACT.velocity = CF(v.Position,position).lookVector*maxstrength
  2837. end
  2838. v.ATTRACT:remove()
  2839. end))
  2840. end
  2841. end
  2842. end
  2843. end
  2844. elseif postype == "Part" then
  2845. for i,v in ipairs(workspace:GetChildren()) do
  2846. local body = v:GetChildren()
  2847. for part = 1, #body do
  2848. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2849. if(body[part].Position - position.Position).Magnitude < range then
  2850. if body[part]:FindFirstChild("ATTRACT") == nil then
  2851. local bv = Instance.new("BodyVelocity")
  2852. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2853. bv.velocity = CF(body[part].Position,position.Position).lookVector*maxstrength
  2854. bv.Parent = body[part]
  2855. bv.Name = "ATTRACT"
  2856. else
  2857. coroutine.resume(coroutine.create(function()
  2858. for i = 1, last/5 do
  2859. Swait(5)
  2860. body[part].ATTRACT.velocity = CF(body[part].Position,position.Position).lookVector*maxstrength
  2861. end
  2862. body[part].ATTRACT:remove()
  2863. end))
  2864. end
  2865. end
  2866. end
  2867. end
  2868. if v.ClassName == "Part" then
  2869. if v.Anchored == false and (v.Position - position.Position).Magnitude < range then
  2870. if v:FindFirstChild("ATTRACT") == nil then
  2871. local bv = Instance.new("BodyVelocity")
  2872. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2873. bv.velocity = CF(v.Position,position.Position).lookVector*maxstrength
  2874. bv.Parent = v
  2875. bv.Name = "ATTRACT"
  2876. else
  2877. coroutine.resume(coroutine.create(function()
  2878. for i = 1, last/5 do
  2879. Swait(5)
  2880. v.ATTRACT.velocity = CF(v.Position,position.Position).lookVector*maxstrength
  2881. end
  2882. v.ATTRACT:remove()
  2883. end))
  2884. end
  2885. end
  2886. end
  2887. end
  2888. end
  2889. end
  2890.  
  2891. function killnearest(position,range,maxstrength)
  2892. for i,v in ipairs(workspace:GetChildren()) do
  2893. local body = v:GetChildren()
  2894. for part = 1, #body do
  2895. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2896. if(body[part].Position - position).Magnitude < range then
  2897. if v.ClassName == "Model" then
  2898. v:BreakJoints()
  2899. end
  2900. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  2901. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  2902. end
  2903. end
  2904. end
  2905. if v.ClassName == "Part" then
  2906. if v.Anchored == false and (v.Position - position).Magnitude < range then
  2907. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  2908. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  2909. end
  2910. end
  2911. end
  2912. end
  2913.  
  2914. function Tulen()
  2915. ATTACK = true
  2916. Rooted = true
  2917. local SOUND = CreateSound("134978657", Head, 10, 1)
  2918. Swait()
  2919. repeat
  2920. Swait()
  2921. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2922. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2923. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2924. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2925. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2926. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2927. until SOUND.Playing == false
  2928. ATTACK = false
  2929. Rooted = false
  2930. end
  2931.  
  2932. function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  2933. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  2934. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
  2935. wave.CFrame = CFRAME
  2936. coroutine.resume(coroutine.create(function(PART)
  2937. for i = 1, WAIT do
  2938. Swait()
  2939. mesh.Scale = mesh.Scale + GROW
  2940. if DOESROT == true then
  2941. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  2942. end
  2943. wave.Transparency = wave.Transparency + 0.5 / WAIT
  2944. if wave.Transparency > 0.99 then
  2945. wave:remove()
  2946. end
  2947. end
  2948. end))
  2949. end
  2950. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  2951. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  2952. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
  2953. wave.CFrame = CFRAME
  2954. coroutine.resume(coroutine.create(function(PART)
  2955. for i = 1, WAIT do
  2956. Swait()
  2957. mesh.Scale = mesh.Scale + GROW
  2958. wave.Transparency = wave.Transparency + 1 / WAIT
  2959. if wave.Transparency > 0.99 then
  2960. wave:remove()
  2961. end
  2962. end
  2963. end))
  2964. end
  2965. function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
  2966. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  2967. local mesh
  2968. if KIND == "Base" then
  2969. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
  2970. elseif KIND == "Thin" then
  2971. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  2972. elseif KIND == "Round" then
  2973. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  2974. end
  2975. wave.CFrame = CFRAME
  2976. coroutine.resume(coroutine.create(function(PART)
  2977. for i = 1, WAIT do
  2978. Swait()
  2979. mesh.Scale = mesh.Scale + GROW / 10
  2980. wave.Transparency = wave.Transparency + 0.5 / WAIT
  2981. if wave.Transparency > 0.99 then
  2982. wave:remove()
  2983. end
  2984. end
  2985. end))
  2986. end
  2987. function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
  2988. for _, c in pairs(PARENT:GetChildren()) do
  2989. if c.ClassName == "Model" then
  2990. if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  2991. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  2992. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  2993. if DIST > (TORSO.Position - FROM).Magnitude then
  2994. table.insert(TABLE, c)
  2995. end
  2996. AddChildrenToTable(FROM, c, DIST, TABLE)
  2997. elseif c.ClassName == "Folder" then
  2998. AddChildrenToTable(FROM, c, DIST, TABLE)
  2999. end
  3000. end
  3001. end
  3002. end
  3003.  
  3004. function Orbital_Devastor()
  3005. local HITBODIES = {}
  3006. local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Pearl", "CenterPart", VT(0, 0, 0))
  3007. local HITFLOOR, ECH, NORMAL = Raycast(Mouse.Hit.p + VT(0, 2, 0), CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0)).lookVector, 10000000, Character)
  3008. CENTER.CFrame = CF(ECH)
  3009. local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Laser01", VT(25, 99999, 25))
  3010. MakeForm(RAY, "Cyl")
  3011. local RAY2 = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Laser01", VT(28, 99999, 28))
  3012. MakeForm(RAY2, "Cyl")
  3013. RAY.CFrame = CF(ECH)
  3014. RAY2.CFrame = CF(ECH)
  3015. CreateSound("1368573150", CENTER, 10, 0.8)
  3016. for i = 1, 100 do
  3017. Swait()
  3018. RAY.Transparency = RAY.Transparency - 0.01
  3019. RAY.Size = RAY.Size - VT(0.25, 0, 0.25)
  3020. RAY2.Transparency = RAY2.Transparency - 0.012
  3021. RAY2.Size = RAY2.Size - VT(0.28, 0, 0.28)
  3022. end
  3023. for i = 1, 5 do
  3024. CreateRing(VT(i / 10, i / 10, 0), false, 0, 25, CF(ECH) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(MRANDOM(0, 10) / 10, 0, 0), VT(i / 5, i / 5, 0))
  3025. end
  3026. RAY:remove()
  3027. RAY2:remove()
  3028. CreateSound("1368637781", CENTER, 10, 0.8)
  3029. MagicSphere(VT(0, 0, 0), 15, CF(ECH), "Really red", VT(8, 8, 8))
  3030. MagicSphere(VT(1, 1, 1), 25, CF(ECH), "Really black", VT(8, 8, 8))
  3031. AddChildrenToTable(ECH, workspace, 80, HITBODIES)
  3032. Debris:AddItem(CENTER, 5)
  3033. CreateSound("414517163", CENTER, 10, 0.8)
  3034. for i = 1, 5 do
  3035. Slice("Round", 0, 35, CF(ECH) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(0.5, 0, 0.5))
  3036. end
  3037. for e = 1, #HITBODIES do
  3038. if HITBODIES[e] ~= nil then
  3039. local BOD = HITBODIES[e]
  3040. local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
  3041. if TORS then
  3042. BOD:BreakJoints()
  3043. for _, c in pairs(BOD:GetChildren()) do
  3044. if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  3045. local bv = Instance.new("BodyVelocity")
  3046. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3047. bv.velocity = CF(ECH, c.Position).lookVector * 250
  3048. bv.Parent = c
  3049. Debris:AddItem(bv, 0.2)
  3050. end
  3051. end
  3052. end
  3053. end
  3054. end
  3055. end
  3056.  
  3057. function Noclip()
  3058. ATTACK = true
  3059. Rooted = true
  3060. UNANCHOR = false
  3061. RootPart.Anchored = true
  3062. local CLIPPING = true
  3063. local MOVEMENT = nil
  3064. CreateSound(96098241, Torso, 3, MRANDOM(9,12)/10, false)
  3065. for i = 1, 50 do
  3066. Swait()
  3067. EXTRATRANS = EXTRATRANS + 0.5/50
  3068. RootPart.CFrame = RootPart.CFrame * CF(0,(1-(i/50))/4.3,0)
  3069. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3070. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3071. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3072. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3073. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3074. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3075. end
  3076. local AURA = CreateSound(1393698948, Torso, 3, 1, true)
  3077. local KEY = Mouse.KeyDown:connect(function(NEWKEY)
  3078. if NEWKEY == "w" then
  3079. MOVEMENT = "Forward"
  3080. repeat
  3081. Swait()
  3082. RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.2)
  3083. until KEYHOLD == false
  3084. elseif NEWKEY == "s" then
  3085. MOVEMENT = "Backwards"
  3086. repeat
  3087. Swait()
  3088. RootPart.CFrame = RootPart.CFrame * CF(0,0,0.2)
  3089. until KEYHOLD == false
  3090. elseif NEWKEY == "a" then
  3091. MOVEMENT = "Strafe"
  3092. repeat
  3093. Swait()
  3094. RootPart.CFrame = RootPart.CFrame * CF(0.2,0,0)
  3095. until KEYHOLD == false
  3096. elseif NEWKEY == "d" then
  3097. MOVEMENT = "Strafe"
  3098. repeat
  3099. Swait()
  3100. RootPart.CFrame = RootPart.CFrame * CF(-0.2,0,0)
  3101. until KEYHOLD == false
  3102. elseif NEWKEY == "e" then
  3103. CLIPPING = false
  3104. end
  3105. MOVEMENT = nil
  3106. end)
  3107. local LOOP = 0
  3108. repeat
  3109. Swait()
  3110. AURA.Parent = Torso
  3111. LOOP = LOOP + 1
  3112. if LOOP >= 15 then
  3113. LOOP = 0
  3114. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(15,1,15), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-3.5,0).p), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3115. end
  3116. if MOVEMENT == nil then
  3117. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3118. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3119. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3120. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3121. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3122. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3123. elseif MOVEMENT == "Forward" then
  3124. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  3125. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3126. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3127. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3128. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3129. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3130. elseif MOVEMENT == "Backwards" then
  3131. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  3132. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3133. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3134. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3135. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3136. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3137. elseif MOVEMENT == "Strafe" then
  3138. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3139. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3140. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3141. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3142. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3143. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3144. end
  3145. until CLIPPING == false
  3146. KEY:Disconnect()
  3147. coroutine.resume(coroutine.create(function()
  3148. for i = 1, 20 do
  3149. Swait()
  3150. AURA.Volume = AURA.Volume - 3/20
  3151. end
  3152. AURA:remove()
  3153. end))
  3154. CreateSound(814168787, Torso, 1, MRANDOM(9,12)/10, false)
  3155. for i = 1, 50 do
  3156. Swait()
  3157. EXTRATRANS = EXTRATRANS - 0.5/50
  3158. RootPart.CFrame = RootPart.CFrame * CF(0,-(1-(i/50))/4.3,0)
  3159. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3160. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3161. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3162. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3163. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3164. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3165. end
  3166. EXTRATRANS = 0
  3167. UNANCHOR = true
  3168. ATTACK = false
  3169. Rooted = false
  3170. end
  3171.  
  3172. function HI()
  3173. ATTACK = true
  3174. Rooted = false
  3175. local LOOP = 0
  3176. for i=0, 0.1, 0.1 / Animation_Speed do
  3177. Swait()
  3178. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3179. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3180. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3181. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3182. end
  3183. for i=0, 3, 0.1 / Animation_Speed do
  3184. Swait()
  3185. LOOP = LOOP + 1
  3186. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3187. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3188. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3189. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.8, 0.4) * ANGLES(RAD(170), RAD(0), RAD(-25 - 25 * SIN(LOOP / 5))) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3190. end
  3191. for i=0, 0.1, 0.1 / Animation_Speed do
  3192. Swait()
  3193. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3194. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3195. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3196. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3197. end
  3198. ATTACK = false
  3199. Rooted = false
  3200. end
  3201.  
  3202. function WarpVector()
  3203. ATTACK = false
  3204. Rooted = true
  3205.  
  3206. Debree(CF(RootPart.Position)*CF(0,-2.8,0).p,75)
  3207. UNANCHOR = false
  3208.  
  3209. RootPart.Anchored = true
  3210. for i=0, 2, 0.1 / Animation_Speed do
  3211. Swait()
  3212. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3213. 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.5 / Animation_Speed)
  3214. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3215. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3216. 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)
  3217. 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)
  3218. end
  3219.  
  3220. local POS = RootPart.Position
  3221. RootPart.CFrame = CF(CF(Mouse.Hit.p)*CF(0,2.8,0).p,POS)
  3222. Debree(CF(RootPart.Position)*CF(0,-2.5,0).p,150)
  3223. for i=0, 2, 0.1 / Animation_Speed do
  3224. Swait()
  3225. 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)
  3226. 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.5 / Animation_Speed)
  3227. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3228. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3229. 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)
  3230. 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)
  3231. end
  3232. UNANCHOR = true
  3233. ATTACK = false
  3234. Rooted = false
  3235. end
  3236.  
  3237. function AttackTemplate()
  3238. ATTACK = true
  3239. Rooted = false
  3240. for i=0, 1, 0.1 / Animation_Speed do
  3241. Swait()
  3242. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  3243. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
  3244. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  3245. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  3246. 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)), 2 / Animation_Speed)
  3247. 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)), 2 / Animation_Speed)
  3248. end
  3249. ATTACK = false
  3250. Rooted = false
  3251. end
  3252.  
  3253. --//=================================\\
  3254. --|| ASSIGN THINGS TO KEYS
  3255. --\\=================================//
  3256.  
  3257. function MouseDown(Mouse)
  3258. if ATTACK == false then
  3259. Click()
  3260. end
  3261. end
  3262.  
  3263. function MouseDown(Mouse)
  3264. if ATTACK == false then
  3265. end
  3266. end
  3267.  
  3268. function MouseUp(Mouse)
  3269. HOLD = false
  3270. end
  3271.  
  3272. function KeyDown(Key)
  3273. KEYHOLD = true
  3274. if Key == "z" and ATTACK == false then
  3275. Shot()
  3276. end
  3277.  
  3278. if Key == "q" and ATTACK == false then
  3279. WarpVector()
  3280. end
  3281.  
  3282. if Key == "x" and ATTACK == false then
  3283. Morning_Star()
  3284. end
  3285.  
  3286. if Key == "c" and ATTACK == false then
  3287. Prison_Key()
  3288. end
  3289. if Key == "e" and ATTACK == false then
  3290. Noclip()
  3291. end
  3292. if Key == "f" and ATTACK == false then
  3293. HI()
  3294. end
  3295. if Key == "r" and ATTACK == false then
  3296. Tulen()
  3297. end
  3298. if Key == "v" and ATTACK == false then
  3299. Orbital_Devastor()
  3300. end
  3301. end
  3302.  
  3303. function KeyUp(Key)
  3304. KEYHOLD = false
  3305. end
  3306.  
  3307. Mouse.Button1Down:connect(function(NEWKEY)
  3308. MouseDown(NEWKEY)
  3309. end)
  3310. Mouse.Button1Up:connect(function(NEWKEY)
  3311. MouseUp(NEWKEY)
  3312. end)
  3313. Mouse.KeyDown:connect(function(NEWKEY)
  3314. KeyDown(NEWKEY)
  3315. end)
  3316. Mouse.KeyUp:connect(function(NEWKEY)
  3317. KeyUp(NEWKEY)
  3318. end)
  3319.  
  3320. --//=================================\\
  3321. --\\=================================//
  3322.  
  3323.  
  3324. function unanchor()
  3325. if UNANCHOR == true then
  3326. g = Character:GetChildren()
  3327. for i = 1, #g do
  3328. if g[i].ClassName == "Part" then
  3329. g[i].Anchored = false
  3330. end
  3331. end
  3332. end
  3333. end
  3334.  
  3335.  
  3336. --//=================================\\
  3337. --|| WRAP THE WHOLE SCRIPT UP
  3338. --\\=================================//
  3339.  
  3340. Humanoid.Changed:connect(function(Jump)
  3341. if Jump == "Jump" and (Disable_Jump == true) then
  3342. Humanoid.Jump = false
  3343. end
  3344. end)
  3345.  
  3346. local CONNECT = nil
  3347.  
  3348. while true do
  3349. Swait()
  3350. ANIMATE.Parent = nil
  3351. if Character:FindFirstChildOfClass("Humanoid") == nil then
  3352. Humanoid = IT("Humanoid",Character)
  3353. end
  3354. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  3355. v:Stop();
  3356. end
  3357. SINE = SINE + CHANGE
  3358. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3359. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3360. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  3361. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  3362. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  3363. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3364. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
  3365. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * 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)
  3366. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * 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)
  3367. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  3368. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  3369. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  3370. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  3371. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  3372. end
  3373. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3374. ANIM = "Jump"
  3375. if ATTACK == false then
  3376. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  3377. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  3378. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.16 / Animation_Speed)
  3379. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  3380. 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.3 / Animation_Speed)
  3381. 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.3 / Animation_Speed)
  3382. end
  3383. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3384. ANIM = "Fall"
  3385. if ATTACK == false then
  3386. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  3387. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  3388. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.16 / Animation_Speed)
  3389. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  3390. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.3 / Animation_Speed)
  3391. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.3 / Animation_Speed)
  3392. end
  3393. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3394. ANIM = "Idle"
  3395. if ATTACK == false then
  3396. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  3397. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  3398. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3399. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3400. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3401. 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)
  3402. end
  3403. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3404. ANIM = "Walk"
  3405. if ATTACK == false then
  3406. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  3407. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(-10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  3408. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed)
  3409. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.8 / Animation_Speed)
  3410. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  3411. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  3412. end
  3413. end
  3414. unanchor()
  3415. Humanoid.MaxHealth = "inf"
  3416. Humanoid.Health = "inf"
  3417. if Rooted == false then
  3418. Disable_Jump = false
  3419. Humanoid.WalkSpeed = Speed
  3420. elseif Rooted == true then
  3421. Disable_Jump = true
  3422. Humanoid.WalkSpeed = 0
  3423. end
  3424. sick.Parent = Torso
  3425. sick:resume()
  3426. sick.Volume = 5
  3427. sick.Pitch = 1
  3428. sick.SoundId = "rbxassetid://0"
  3429. sick.Name = "BanishV3Music"
  3430. end
  3431. if Head:FindFirstChild("face") then
  3432. Head.face.Texture = "rbxassetid://176217464"
  3433. end
  3434.  
  3435. Humanoid.Changed:connect(function(Jump)
  3436. if Jump == "Jump" and (Disable_Jump == true) then
  3437. Humanoid.Jump = false
  3438. end
  3439. end)
  3440.  
  3441. local BLINKLOOP = 0
  3442.  
  3443. while true do
  3444. Swait()
  3445. script.Parent = WEAPONGUI
  3446. ANIMATE.Parent = nil
  3447. Humanoid.Parent = Character
  3448. if Humanoid then
  3449. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  3450. IDLEANIMATION:Play()
  3451. end
  3452. SINE = SINE + CHANGE
  3453. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3454. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3455. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  3456. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  3457. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  3458. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3459. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
  3460. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * 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)
  3461. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * 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)
  3462. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  3463. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3464. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3465. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3466. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3467. end
  3468. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3469. ANIM = "Jump"
  3470. if ATTACK == false then
  3471. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3472. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3473. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3474. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3475. 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)
  3476. 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)
  3477. end
  3478. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3479. ANIM = "Fall"
  3480. if ATTACK == false then
  3481. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3482. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3483. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3484. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3485. 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)
  3486. 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)
  3487. end
  3488. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3489. ANIM = "Idle"
  3490. if ATTACK == false then
  3491. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  3492. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  3493. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3494. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3495. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3496. 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)
  3497. end
  3498. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3499. ANIM = "Walk"
  3500. if ATTACK == false then
  3501. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  3502. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(-10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  3503. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed)
  3504. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.8 / Animation_Speed)
  3505. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  3506. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  3507. end
  3508. end
  3509. unanchor()
  3510. Humanoid.MaxHealth = "inf"
  3511. Humanoid.Health = "inf"
  3512. if Rooted == false then
  3513. Disable_Jump = false
  3514. Humanoid.WalkSpeed = Speed
  3515. elseif Rooted == true then
  3516. Disable_Jump = true
  3517. Humanoid.WalkSpeed = 0
  3518. end
  3519. sick.SoundId = "rbxassetid://0"
  3520. sick.Looped = true
  3521. sick.Pitch = 1
  3522. sick.Volume = 5
  3523. sick.Playing = true
  3524. sick.Parent = Torso
  3525. if Head:FindFirstChild("face") then
  3526. Head.face.Texture = "rbxassetid://404306534"
  3527. end
  3528. BLINKLOOP = BLINKLOOP + 1
  3529. if BLINKLOOP >=650 then
  3530. BLINKLOOP = 0
  3531. Blink()
  3532. end
  3533. if #GHOSTS>0 then
  3534. for e=1,#GHOSTS do
  3535. if GHOSTS[e]~=nil then
  3536. local Thing=GHOSTS[e]
  3537. if Thing~=nil then
  3538. if Thing:FindFirstChild("Head") then
  3539. if Thing:FindFirstChild("Head"):FindFirstChild("face") then
  3540. Thing:FindFirstChild("Head").face.Texture = "rbxassetid://479674570"
  3541. end
  3542. if Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound") then
  3543. Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound"):remove()
  3544. end
  3545. end
  3546. local TORSO = Thing:FindFirstChild("Torso")
  3547. if TORSO then
  3548. TORSO.Anchored = false
  3549. local ROOT = Thing.HumanoidRootPart
  3550. local RootJoint1 = ROOT:FindFirstChild("RootJoint")
  3551. local Neck1 = TORSO:FindFirstChild("Neck")
  3552. local RightShoulder1 = TORSO:FindFirstChild("Right Shoulder")
  3553. local LeftShoulder1 = TORSO:FindFirstChild("Left Shoulder")
  3554. local RightHip1 = TORSO:FindFirstChild("Right Hip")
  3555. local LeftHip1 = TORSO:FindFirstChild("Left Hip")
  3556. if ROOT and RootJoint1 then
  3557. local VELOCITY = (ROOT.Velocity * VT(1, 0, 1)).magnitude
  3558. if VELOCITY < 1 then
  3559. RootJoint1.C0 = ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 * SIN(SINE / 12)))
  3560. Neck1.C0 = NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD( - 2.5 * SIN(SINE / 12)))
  3561. RightShoulder1.C0 = CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 1.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0
  3562. LeftShoulder1.C0 = CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 1.5 * SIN(SINE / 12))) * LEFTSHOULDERC0
  3563. RightHip1.C0 = CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  3564. LeftHip1.C0 = CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  3565. elseif VELOCITY > 1 then
  3566. RootJoint1.C0 = ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 * SIN(SINE / 12)))
  3567. Neck1.C0 = NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD( - 2.5 * SIN(SINE / 12)))
  3568. RightShoulder1.C0 = CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 1.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0
  3569. LeftShoulder1.C0 = CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 1.5 * SIN(SINE / 12))) * LEFTSHOULDERC0
  3570. RightHip1.C0 = CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  3571. LeftHip1.C0 = CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  3572. end
  3573. end
  3574. local Human = Thing.Humanoid
  3575. if Human then
  3576. Human.HipHeight = 0.3
  3577. for _, c in pairs(Thing:GetChildren()) do
  3578. if c.ClassName == "Part" and c.Transparency < 1 then
  3579. c.Color = C3(0,0,0)
  3580. c.Transparency = 0.65 + 0.15 * COS(SINE / 25)
  3581. elseif c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
  3582. c:remove()
  3583. end
  3584. end
  3585. if Human then
  3586. local IDLEANIMATION = Human:LoadAnimation(ROBLOXIDLEANIMATION)
  3587. IDLEANIMATION:Play()
  3588. end
  3589. local list = game.Workspace:children()
  3590. local torso = nil
  3591. local dist = 50
  3592. local temp = nil
  3593. local human = nil
  3594. local temp2 = nil
  3595. local OwnerInDanger = false
  3596. for x = 1, #list do
  3597. temp2 = list[x]
  3598. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  3599. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  3600. human = temp2:findFirstChildOfClass("Humanoid")
  3601. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3602. if (temp.Position - Torso.Position).magnitude < 15 then
  3603. OwnerInDanger = true
  3604. newdist = (temp.Position - TORSO.Position).magnitude
  3605. dist = (Torso.Position - temp.Position).magnitude
  3606. Human:MoveTo(temp.Position)
  3607. torso = temp
  3608. if newdist < 7 then
  3609. torso.CFrame = CF(torso.Position,TORSO.Position)*CF(0,0,5)
  3610. CreateSound(814168787, temp, 1, 2, false)
  3611. ApplyDamage(human,MRANDOM(15,35),temp)
  3612. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,torso.Position)*CF(0,0,-2) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  3613. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = torso.CFrame*CF(0,-4*torso.Size.Y/2,0), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  3614. end
  3615. end
  3616. end
  3617. end
  3618. end
  3619. if OwnerInDanger == false then
  3620. for x = 1, #list do
  3621. temp2 = list[x]
  3622. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  3623. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  3624. human = temp2:findFirstChildOfClass("Humanoid")
  3625. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3626. if (temp.Position - Torso.Position).magnitude < dist then
  3627. newdist = (temp.Position - TORSO.Position).magnitude
  3628. Human:MoveTo(temp.Position)
  3629. torso = temp
  3630. if newdist < 15 then
  3631. if MRANDOM(1,35) == 1 then
  3632. CreateSound(438665935, temp, 1, 3, false)
  3633. ApplyDamage(human,MRANDOM(2,20),temp)
  3634. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,torso.Position)*CF(0,0,-2) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  3635. end
  3636. end
  3637. end
  3638. end
  3639. end
  3640. end
  3641. end
  3642. if torso == nil then
  3643. Human.WalkSpeed = Speed -0.2
  3644. if (Torso.Position - TORSO.Position).magnitude < 12 and (Torso.Position - TORSO.Position).magnitude >= 11 then
  3645. Human:MoveTo(TORSO.Position)
  3646. elseif (Torso.Position - TORSO.Position).magnitude > 15 then
  3647. Human:MoveTo(Torso.Position)
  3648. elseif (Torso.Position - TORSO.Position).magnitude < 11 then
  3649. Human:MoveTo(CF(Torso.Position,TORSO.Position)*CF(0,0,-5).p)
  3650. end
  3651. else
  3652. if OwnerInDanger == false then
  3653. Human.WalkSpeed = Speed*1.2
  3654. else
  3655. Human.WalkSpeed = Speed*5
  3656. end
  3657. end
  3658. if Human.Health == 0 then
  3659. Thing:remove()
  3660. table.remove(GHOSTS,e)
  3661. else
  3662. Human.Health = Human.Health + 0.5
  3663. end
  3664. else
  3665. Thing:remove()
  3666. table.remove(GHOSTS,e)
  3667. end
  3668. else
  3669. Thing:remove()
  3670. table.remove(GHOSTS,e)
  3671. end
  3672. end
  3673. end
  3674. end
  3675. end
  3676. refit()
  3677. end
  3678.  
  3679. --//=================================\\
  3680. --\\=================================//
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686. --//====================================================\\--
  3687. --|| END OF SCRIPT
  3688. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement