Advertisement
Basykung7845

Pan

May 2nd, 2019
1,193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.85 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Basykung7845")
  8. print("Have Fun It my edit :D")
  9. script.Parent = Player.Character
  10.  
  11. --RemoteEvent for communicating
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput_Event"
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local function fakeEvent()
  17. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  18. t.connect = t.Connect
  19. return t
  20. end
  21.  
  22. --Creating fake input objects with fake variables
  23. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  24. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  25. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  26. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  27. end}
  28. --Merged 2 functions into one by checking amount of arguments
  29. CAS.UnbindAction = CAS.BindAction
  30.  
  31. --This function will trigger the events that have been :Connect()'ed
  32. local function te(self,ev,...)
  33. local t = m[ev]
  34. if t and t._fakeEvent and t.Function then
  35. t.Function(...)
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=Player then return end
  43. if io.isMouse then
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. else
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  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})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local Mouse = Player:GetMouse()
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87.  
  88. wait(0.2)
  89. Player = owner
  90. PlayerGui = Player.PlayerGui
  91. Cam = workspace.CurrentCamera
  92. Backpack = Player.Backpack
  93. Character = Player.Character
  94. Humanoid = Character.Humanoid
  95. RootPart = Character["HumanoidRootPart"]
  96. Torso = Character["Torso"]
  97. Head = Character["Head"]
  98. RightArm = Character["Right Arm"]
  99. LeftArm = Character["Left Arm"]
  100. RightLeg = Character["Right Leg"]
  101. LeftLeg = Character["Left Leg"]
  102. RootJoint = RootPart["RootJoint"]
  103. Neck = Torso["Neck"]
  104. RightShoulder = Torso["Right Shoulder"]
  105. LeftShoulder = Torso["Left Shoulder"]
  106. RightHip = Torso["Right Hip"]
  107. LeftHip = Torso["Left Hip"]
  108. local TIME = 0
  109. plr = owner
  110. local sick = Instance.new("Sound",Character)
  111. sick.Volume = 5
  112. sick.TimePosition = 0
  113. sick.PlaybackSpeed = 1
  114. sick.Pitch = 1
  115. sick.SoundId = "rbxassetid://1716320712"
  116. sick.Name = "wrecked"
  117. sick.Looped = true
  118. sick:Play()
  119.  
  120. local currentThemePlaying = sick.SoundId
  121. local currentPitch = sick.Pitch
  122. local currentVol = sick.Volume
  123. function newTheme(ID,timepos,pitch,vol)
  124. local sickz = sick
  125. --sickz:Stop()
  126. sickz.Volume = vol
  127. --sickz.TimePosition = timepos
  128. sickz.PlaybackSpeed = pitch
  129. sickz.Pitch = pitch
  130. sickz.SoundId = ID
  131. sickz.Name = "wrecked"
  132. sickz.Looped = true
  133. currentThemePlaying = sickz.SoundId
  134. currentVol = sickz.Volume
  135. currentPitch = sickz.Pitch
  136. --sickz:Play()
  137. --coroutine.resume(coroutine.create(function()
  138. --wait(0.05)
  139. --end))
  140. end
  141.  
  142. function newThemeCust(ID,timepos,pitch,vol)
  143. local sickz = sick
  144. sickz:Stop()
  145. sickz.Volume = vol
  146. sickz.TimePosition = timepos
  147. sickz.PlaybackSpeed = pitch
  148. sickz.Pitch = pitch
  149. sickz.SoundId = ID
  150. sickz.Name = "wrecked"
  151. sickz.Looped = true
  152. currentThemePlaying = sickz.SoundId
  153. currentVol = sickz.Volume
  154. currentPitch = sickz.Pitch
  155. sickz:Play()
  156. coroutine.resume(coroutine.create(function()
  157. wait(0.05)
  158. end))
  159. end
  160.  
  161. Character.Archivable = true
  162. Player:ClearCharacterAppearance()
  163.  
  164. IT = Instance.new
  165. CF = CFrame.new
  166. VT = Vector3.new
  167. RAD = math.rad
  168. C3 = Color3.new
  169. UD2 = UDim2.new
  170. BRICKC = BrickColor.new
  171. ANGLES = CFrame.Angles
  172. EULER = CFrame.fromEulerAnglesXYZ
  173. COS = math.cos
  174. ACOS = math.acos
  175. SIN = math.sin
  176. ASIN = math.asin
  177. ABS = math.abs
  178. MRANDOM = math.random
  179. FLOOR = math.floor
  180.  
  181. --//=================================\\
  182. --|| USEFUL VALUES
  183. --\\=================================//
  184.  
  185. Animation_Speed = 3
  186. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  187. local Speed = 20
  188. local SIZE = 1.4
  189. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  190. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  191. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  192. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  193. local DAMAGEMULTIPLIER = 1
  194. local ANIM = "Idle"
  195. local ATTACK = false
  196. local EQUIPPED = false
  197. local HOLD = false
  198. local COMBO = 1
  199. local Rooted = false
  200. local SINE = 0
  201. local KEYHOLD = false
  202. local CHANGE = 2 / Animation_Speed
  203. local WALKINGANIM = false
  204. local VALUE1 = false
  205. local VALUE2 = false
  206. local ROBLOXIDLEANIMATION = IT("Animation")
  207. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  208. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  209. local ATANIM = IT("Animation")
  210. ATANIM.Name = "Attack Animation"
  211. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  212. --ROBLOXIDLEANIMATION.Parent = Humanoid
  213. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  214. WEAPONGUI.Name = "Weapon GUI"
  215. local Weapon = IT("Model")
  216. Weapon.Name = "Weapon2"
  217. local Weapon2 = IT("Model")
  218. Weapon2.Name = "Weapon2"
  219. local Effects = IT("Folder", Weapon)
  220. Effects.Name = "Effects"
  221. local ANIMATOR = Humanoid.Animator
  222. local ANIMATE = Character.Animate
  223. local UNANCHOR = true
  224. local CLOCKLOOP = 0
  225. local CLOCKTARGET = nil
  226. local CLOCKSPEED = 1
  227. script.Parent = WEAPONGUI
  228. local CLONE = Character:Clone()
  229. CLONE.Parent = nil
  230. Character.Archivable = false
  231. --//=================================\\
  232. --\\=================================//
  233.  
  234. local plr = Player
  235. local char = plr.Character
  236. local hum = char.Humanoid
  237.  
  238. -------------------------------------------------------
  239. --Start Good Stuff--
  240. -------------------------------------------------------
  241. cam = game.Workspace.CurrentCamera
  242. CF = CFrame.new
  243. angles = CFrame.Angles
  244. attack = false
  245. Euler = CFrame.fromEulerAnglesXYZ
  246. Rad = math.rad
  247. IT = Instance.new
  248. BrickC = BrickColor.new
  249. Cos = math.cos
  250. Acos = math.acos
  251. Sin = math.sin
  252. Asin = math.asin
  253. Abs = math.abs
  254. Mrandom = math.random
  255. Floor = math.floor
  256. --//=================================\\
  257. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  258. --\\=================================//
  259.  
  260. ArtificialHB = Instance.new("BindableEvent", script)
  261. ArtificialHB.Name = "ArtificialHB"
  262.  
  263. script:WaitForChild("ArtificialHB")
  264.  
  265. frame = Frame_Speed
  266. tf = 0
  267. allowframeloss = false
  268. tossremainder = false
  269. lastframe = tick()
  270. script.ArtificialHB:Fire()
  271.  
  272. game:GetService("RunService").Heartbeat:connect(function(s, p)
  273. tf = tf + s
  274. if tf >= frame then
  275. if allowframeloss then
  276. script.ArtificialHB:Fire()
  277. lastframe = tick()
  278. else
  279. for i = 1, math.floor(tf / frame) do
  280. script.ArtificialHB:Fire()
  281. end
  282. lastframe = tick()
  283. end
  284. if tossremainder then
  285. tf = 0
  286. else
  287. tf = tf - frame * math.floor(tf / frame)
  288. end
  289. end
  290. end)
  291.  
  292. --//=================================\\
  293. --\\=================================//
  294.  
  295. --//=================================\\
  296. --|| SOME FUNCTIONS
  297. --\\=================================//
  298.  
  299. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  300. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  301. end
  302.  
  303. function PositiveAngle(NUMBER)
  304. if NUMBER >= 0 then
  305. NUMBER = 0
  306. end
  307. return NUMBER
  308. end
  309.  
  310. function NegativeAngle(NUMBER)
  311. if NUMBER <= 0 then
  312. NUMBER = 0
  313. end
  314. return NUMBER
  315. end
  316.  
  317. function Swait(NUMBER)
  318. if NUMBER == 0 or NUMBER == nil then
  319. ArtificialHB.Event:wait()
  320. else
  321. for i = 1, NUMBER do
  322. ArtificialHB.Event:wait()
  323. end
  324. end
  325. end
  326.  
  327. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  328. local NEWMESH = IT(MESH)
  329. if MESH == "SpecialMesh" then
  330. NEWMESH.MeshType = MESHTYPE
  331. if MESHID ~= "nil" and MESHID ~= "" then
  332. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  333. end
  334. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  335. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  336. end
  337. end
  338. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  339. NEWMESH.Scale = SCALE
  340. NEWMESH.Parent = PARENT
  341. return NEWMESH
  342. end
  343.  
  344. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  345. local NEWPART = IT("Part")
  346. NEWPART.formFactor = FORMFACTOR
  347. NEWPART.Reflectance = REFLECTANCE
  348. NEWPART.Transparency = TRANSPARENCY
  349. NEWPART.CanCollide = false
  350. NEWPART.Locked = true
  351. NEWPART.Anchored = true
  352. if ANCHOR == false then
  353. NEWPART.Anchored = false
  354. end
  355. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  356. NEWPART.Name = NAME
  357. NEWPART.Size = SIZE
  358. NEWPART.Position = Torso.Position
  359. NEWPART.Material = MATERIAL
  360. NEWPART:BreakJoints()
  361. NEWPART.Parent = PARENT
  362. return NEWPART
  363. end
  364.  
  365. local function weldBetween(a, b)
  366. local weldd = Instance.new("ManualWeld")
  367. weldd.Part0 = a
  368. weldd.Part1 = b
  369. weldd.C0 = CFrame.new()
  370. weldd.C1 = b.CFrame:inverse() * a.CFrame
  371. weldd.Parent = a
  372. return weldd
  373. end
  374.  
  375.  
  376. function QuaternionFromCFrame(cf)
  377. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  378. local trace = m00 + m11 + m22
  379. if trace > 0 then
  380. local s = math.sqrt(1 + trace)
  381. local recip = 0.5 / s
  382. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  383. else
  384. local i = 0
  385. if m11 > m00 then
  386. i = 1
  387. end
  388. if m22 > (i == 0 and m00 or m11) then
  389. i = 2
  390. end
  391. if i == 0 then
  392. local s = math.sqrt(m00 - m11 - m22 + 1)
  393. local recip = 0.5 / s
  394. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  395. elseif i == 1 then
  396. local s = math.sqrt(m11 - m22 - m00 + 1)
  397. local recip = 0.5 / s
  398. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  399. elseif i == 2 then
  400. local s = math.sqrt(m22 - m00 - m11 + 1)
  401. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  402. end
  403. end
  404. end
  405.  
  406. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  407. local xs, ys, zs = x + x, y + y, z + z
  408. local wx, wy, wz = w * xs, w * ys, w * zs
  409. local xx = x * xs
  410. local xy = x * ys
  411. local xz = x * zs
  412. local yy = y * ys
  413. local yz = y * zs
  414. local zz = z * zs
  415. 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))
  416. end
  417.  
  418. function QuaternionSlerp(a, b, t)
  419. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  420. local startInterp, finishInterp;
  421. if cosTheta >= 0.0001 then
  422. if (1 - cosTheta) > 0.0001 then
  423. local theta = ACOS(cosTheta)
  424. local invSinTheta = 1 / SIN(theta)
  425. startInterp = SIN((1 - t) * theta) * invSinTheta
  426. finishInterp = SIN(t * theta) * invSinTheta
  427. else
  428. startInterp = 1 - t
  429. finishInterp = t
  430. end
  431. else
  432. if (1 + cosTheta) > 0.0001 then
  433. local theta = ACOS(-cosTheta)
  434. local invSinTheta = 1 / SIN(theta)
  435. startInterp = SIN((t - 1) * theta) * invSinTheta
  436. finishInterp = SIN(t * theta) * invSinTheta
  437. else
  438. startInterp = t - 1
  439. finishInterp = t
  440. end
  441. end
  442. 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
  443. end
  444.  
  445. function Clerp(a, b, t)
  446. local qa = {QuaternionFromCFrame(a)}
  447. local qb = {QuaternionFromCFrame(b)}
  448. local ax, ay, az = a.x, a.y, a.z
  449. local bx, by, bz = b.x, b.y, b.z
  450. local _t = 1 - t
  451. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  452. end
  453.  
  454. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  455. local frame = IT("Frame")
  456. frame.BackgroundTransparency = TRANSPARENCY
  457. frame.BorderSizePixel = BORDERSIZEPIXEL
  458. frame.Position = POSITION
  459. frame.Size = SIZE
  460. frame.BackgroundColor3 = COLOR
  461. frame.BorderColor3 = BORDERCOLOR
  462. frame.Name = NAME
  463. frame.Parent = PARENT
  464. return frame
  465. end
  466.  
  467. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  468. local label = IT("TextLabel")
  469. label.BackgroundTransparency = 1
  470. label.Size = UD2(1, 0, 1, 0)
  471. label.Position = UD2(0, 0, 0, 0)
  472. label.TextColor3 = TEXTCOLOR
  473. label.TextStrokeTransparency = STROKETRANSPARENCY
  474. label.TextTransparency = TRANSPARENCY
  475. label.FontSize = TEXTFONTSIZE
  476. label.Font = TEXTFONT
  477. label.BorderSizePixel = BORDERSIZEPIXEL
  478. label.TextStrokeColor3 = C3(1,1,1)
  479. label.TextScaled = false
  480. label.Text = TEXT
  481. label.Name = NAME
  482. label.Parent = PARENT
  483. return label
  484. end
  485.  
  486. function NoOutlines(PART)
  487. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  488. end
  489.  
  490. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  491. local NEWWELD = IT(TYPE)
  492. NEWWELD.Part0 = PART0
  493. NEWWELD.Part1 = PART1
  494. NEWWELD.C0 = C0
  495. NEWWELD.C1 = C1
  496. NEWWELD.Parent = PARENT
  497. return NEWWELD
  498. end
  499.  
  500. local S = IT("Sound")
  501. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  502. local NEWSOUND = nil
  503. coroutine.resume(coroutine.create(function()
  504. NEWSOUND = S:Clone()
  505. NEWSOUND.Parent = PARENT
  506. NEWSOUND.Volume = VOLUME
  507. NEWSOUND.Pitch = PITCH
  508. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  509. NEWSOUND:play()
  510. if DOESLOOP == true then
  511. NEWSOUND.Looped = true
  512. else
  513. repeat wait(1) until NEWSOUND.Playing == false
  514. NEWSOUND:remove()
  515. end
  516. end))
  517. return NEWSOUND
  518. end
  519.  
  520. function CFrameFromTopBack(at, top, back)
  521. local right = top:Cross(back)
  522. 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)
  523. end
  524.  
  525. --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})
  526. function WACKYEFFECT(Table)
  527. local TYPE = (Table.EffectType or "Sphere")
  528. local SIZE = (Table.Size or VT(1,1,1))
  529. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  530. local TRANSPARENCY = (Table.Transparency or 0)
  531. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  532. local CFRAME = (Table.CFrame or Torso.CFrame)
  533. local MOVEDIRECTION = (Table.MoveToPos or nil)
  534. local ROTATION1 = (Table.RotationX or 0)
  535. local ROTATION2 = (Table.RotationY or 0)
  536. local ROTATION3 = (Table.RotationZ or 0)
  537. local MATERIAL = (Table.Material or "Neon")
  538. local COLOR = (Table.Color or C3(1,1,1))
  539. local TIME = (Table.Time or 45)
  540. local SOUNDID = (Table.SoundID or nil)
  541. local SOUNDPITCH = (Table.SoundPitch or nil)
  542. local SOUNDVOLUME = (Table.SoundVolume or nil)
  543. coroutine.resume(coroutine.create(function()
  544. local PLAYSSOUND = false
  545. local SOUND = nil
  546. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  547. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  548. PLAYSSOUND = true
  549. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  550. end
  551. EFFECT.Color = COLOR
  552. local MSH = nil
  553. if TYPE == "Sphere" then
  554. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  555. elseif TYPE == "Block" then
  556. MSH = IT("BlockMesh",EFFECT)
  557. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  558. elseif TYPE == "Wave" then
  559. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  560. elseif TYPE == "Ring" then
  561. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  562. elseif TYPE == "Slash" then
  563. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  564. elseif TYPE == "Round Slash" then
  565. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  566. elseif TYPE == "Swirl" then
  567. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  568. elseif TYPE == "Skull" then
  569. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  570. elseif TYPE == "Crystal" then
  571. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  572. end
  573. if MSH ~= nil then
  574. local MOVESPEED = nil
  575. if MOVEDIRECTION ~= nil then
  576. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  577. end
  578. local GROWTH = SIZE - ENDSIZE
  579. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  580. if TYPE == "Block" then
  581. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  582. else
  583. EFFECT.CFrame = CFRAME
  584. end
  585. for LOOP = 1, TIME+1 do
  586. Swait()
  587. MSH.Scale = MSH.Scale - GROWTH/TIME
  588. if TYPE == "Wave" then
  589. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  590. end
  591. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  592. if TYPE == "Block" then
  593. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  594. else
  595. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  596. end
  597. if MOVEDIRECTION ~= nil then
  598. local ORI = EFFECT.Orientation
  599. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  600. EFFECT.Orientation = ORI
  601. end
  602. end
  603. if PLAYSSOUND == false then
  604. EFFECT:remove()
  605. else
  606. repeat Swait() until SOUND.Playing == false
  607. EFFECT:remove()
  608. end
  609. else
  610. if PLAYSSOUND == false then
  611. EFFECT:remove()
  612. else
  613. repeat Swait() until SOUND.Playing == false
  614. EFFECT:remove()
  615. end
  616. end
  617. end))
  618. end
  619.  
  620. function MakeForm(PART,TYPE)
  621. if TYPE == "Cyl" then
  622. local MSH = IT("CylinderMesh",PART)
  623. elseif TYPE == "Ball" then
  624. local MSH = IT("SpecialMesh",PART)
  625. MSH.MeshType = "Sphere"
  626. elseif TYPE == "Wedge" then
  627. local MSH = IT("SpecialMesh",PART)
  628. MSH.MeshType = "Wedge"
  629. end
  630. end
  631.  
  632. function SpawnTrail(FROM,TO,BIG)
  633. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Reddish lilac", "Trail", VT(0,0,0))
  634. MakeForm(TRAIL,"Cyl")
  635. local DIST = (FROM - TO).Magnitude
  636. if BIG == true then
  637. TRAIL.Size = VT(0.5,DIST,0.5)
  638. else
  639. TRAIL.Size = VT(0.25,DIST,0.25)
  640. end
  641. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  642. coroutine.resume(coroutine.create(function()
  643. for i = 1, 5 do
  644. Swait()
  645. TRAIL.Transparency = TRAIL.Transparency + 0.1
  646. end
  647. TRAIL:remove()
  648. end))
  649. end
  650.  
  651. function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  652. local NEWPART = IT("Part")
  653. NEWPART.formFactor = FORMFACTOR
  654. NEWPART.Reflectance = REFLECTANCE
  655. NEWPART.Transparency = TRANSPARENCY
  656. NEWPART.CanCollide = false
  657. NEWPART.Locked = true
  658. NEWPART.Anchored = true
  659. if ANCHOR == false then
  660. NEWPART.Anchored = false
  661. end
  662. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  663. NEWPART.Name = NAME
  664. NEWPART.Size = SIZE
  665. NEWPART.Position = Torso.Position
  666. NEWPART.Material = MATERIAL
  667. NEWPART:BreakJoints()
  668. NEWPART.Parent = PARENT
  669. return NEWPART
  670. end
  671.  
  672. function CreateWave3(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  673. local wave = CreatePart2(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  674. local mesh = IT("SpecialMesh",wave)
  675. mesh.MeshType = "FileMesh"
  676. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  677. mesh.Scale = SIZE
  678. mesh.Offset = VT(0,0,-SIZE.X/8)
  679. wave.CFrame = CFRAME
  680. coroutine.resume(coroutine.create(function(PART)
  681. for i = 1, WAIT do
  682. Swait()
  683. mesh.Scale = mesh.Scale + GROW
  684. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  685. if DOESROT == true then
  686. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  687. end
  688. wave.Transparency = wave.Transparency + (0.5/WAIT)
  689. if wave.Transparency > 0.99 then
  690. wave:remove()
  691. end
  692. end
  693. end))
  694. end
  695.  
  696. function CreateSwirl3(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  697. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  698. local mesh = IT("SpecialMesh",wave)
  699. mesh.MeshType = "FileMesh"
  700. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  701. mesh.Scale = SIZE
  702. wave.CFrame = CFRAME
  703. coroutine.resume(coroutine.create(function(PART)
  704. for i = 1, WAIT do
  705. Swait()
  706. mesh.Scale = mesh.Scale + GROW
  707. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  708. if DOESROT == true then
  709. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  710. end
  711. wave.Transparency = wave.Transparency + (0.5/WAIT)
  712. if wave.Transparency > 0.99 then
  713. wave:remove()
  714. end
  715. end
  716. end))
  717. end
  718.  
  719. function MagicSphere4(SIZE,WAIT,CFRAME,COLOR,GROW)
  720. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  721. local mesh = IT("SpecialMesh",wave)
  722. mesh.MeshType = "Sphere"
  723. mesh.Scale = SIZE
  724. mesh.Offset = VT(0,0,0)
  725. wave.CFrame = CFRAME
  726. coroutine.resume(coroutine.create(function(PART)
  727. for i = 1, WAIT do
  728. Swait()
  729. mesh.Scale = mesh.Scale + GROW
  730. wave.Transparency = wave.Transparency + (1/WAIT)
  731. if wave.Transparency > 0.99 then
  732. wave:remove()
  733. end
  734. end
  735. end))
  736. end
  737.  
  738. Debris = game:GetService("Debris")
  739.  
  740. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  741. local DIRECTION = CF(StartPos,EndPos).lookVector
  742. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  743. end
  744.  
  745. function turnto(position)
  746. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  747. end
  748.  
  749. --//=================================\\
  750. --|| WEAPON CREATION
  751. --\\=================================//
  752.  
  753. Humanoid.Parent = nil
  754. RootPart.Size = RootPart.Size*SIZE
  755. Torso.Size = Torso.Size*SIZE
  756. RightArm.Size = RightArm.Size*SIZE
  757. RightLeg.Size = RightLeg.Size*SIZE
  758. LeftArm.Size = LeftArm.Size*SIZE
  759. LeftLeg.Size = LeftLeg.Size*SIZE
  760. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  761. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  762. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  763. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  764. RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  765. LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  766. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  767. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  768. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  769. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  770. Head.Size = Head.Size*SIZE
  771. RootJoint.Parent = RootPart
  772. Neck.Parent = Torso
  773. RightShoulder.Parent = Torso
  774. LeftShoulder.Parent = Torso
  775. RightHip.Parent = Torso
  776. LeftHip.Parent = Torso
  777.  
  778. Humanoid.DisplayDistanceType = "None"
  779.  
  780. local Handle = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  781. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  782. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  783. MakeForm(Part,"Wedge")
  784. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  785. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  786. MakeForm(Part,"Wedge")
  787. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  788. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  789. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  790. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  791. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  792. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  793. MakeForm(Part,"Cyl")
  794. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  795. for i = 1, 8 do
  796. local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  797. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  798. end
  799. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  800. MakeForm(Part,"Cyl")
  801. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  802. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  803. MakeForm(Part,"Ball")
  804. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  805. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  806. MakeForm(Part,"Wedge")
  807. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  808. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  809. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  810. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  811. MakeForm(Part,"Cyl")
  812. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  813. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  814. MakeForm(Part,"Cyl")
  815. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  816. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  817. MakeForm(Part,"Cyl")
  818. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  819. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  820. MakeForm(Part,"Wedge")
  821. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  822. local LASTPART = Handle
  823. for i = 1, 10 do
  824. if LASTPART == Handle then
  825. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  826. LASTPART = Part
  827. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  828. else
  829. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  830. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  831. LASTPART = Part
  832. end
  833. end
  834.  
  835. local Barrel = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  836. MakeForm(Barrel,"Cyl")
  837. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  838. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  839. MakeForm(Part,"Cyl")
  840. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  841. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  842. MakeForm(Part,"Wedge")
  843. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  844. local Hole = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  845. MakeForm(Hole,"Cyl")
  846. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  847. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  848. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  849. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  850. local Part = CreatePart(3, Weapon2, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  851. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  852. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  853. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  854. local GEARWELD3 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1), CF(0, 0, -2))
  855. CreateMesh("SpecialMesh", Part, "FileMesh", 545588120, "", VT(0.006,0.006,0.03), VT(0,0,0.2))
  856. coroutine.resume(coroutine.create(function()
  857. while wait() do
  858. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  859. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  860. GEARWELD3.C0 = GEARWELD3.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  861. end
  862. end))
  863.  
  864. local top = Instance.new("Shirt")
  865. top.ShirtTemplate = "rbxassetid://1533635803"
  866. top.Parent = Character
  867. top.Name = "Cloth"
  868. local bottom = Instance.new("Pants")
  869. bottom.PantsTemplate = "rbxassetid://1460022985"
  870. bottom.Parent = Character
  871. bottom.Name = "Cloth"
  872. local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false)
  873. PRT.Color = C3(0,0,0)
  874. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
  875. CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0))
  876. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
  877. PRT.Color = C3(1,1,1)
  878. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  879. CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
  880. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
  881. PRT.Color = C3(159/255, 111/255, 183/255)
  882. MakeForm(PRT,"Ball")
  883. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  884. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false)
  885. PRT.Color = C3(159/255, 111/255, 183/255)
  886. MakeForm(PRT,"Ball")
  887. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
  888. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  889. PRT.Color = C3(159/255, 111/255, 183/255)
  890. MakeForm(PRT,"Ball")
  891. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  892. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  893. PRT.Color = C3(159/255, 111/255, 183/255)
  894. MakeForm(PRT,"Ball")
  895. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  896. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  897. PRT.Color = C3(159/255, 111/255, 183/255)
  898. MakeForm(PRT,"Ball")
  899. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
  900. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  901. PRT.Color = C3(159/255, 111/255, 183/255)
  902. MakeForm(PRT,"Ball")
  903. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
  904.  
  905. local LASTPART = Head
  906. for i = 1, 24 do
  907. local MATH = (1-(i/30))
  908. if LASTPART == Head then
  909. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  910. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0))
  911. LASTPART = Horn
  912. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  913. else
  914. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  915. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  916. LASTPART = Horn
  917. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  918. end
  919. end
  920. local LASTPART = Head
  921. for i = 1, 8 do
  922. local MATH = (1-(i/14))
  923. if LASTPART == Head then
  924. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  925. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0))
  926. LASTPART = Horn
  927. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  928. else
  929. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  930. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  931. LASTPART = Horn
  932. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
  933. end
  934. end
  935.  
  936. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
  937. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  938. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
  939. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  940. MakeForm(PRT,"Cyl")
  941. local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
  942. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  943. MakeForm(PRT,"Cyl")
  944. PRT.Color = C3(159/255, 111/255, 183/255)
  945. local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
  946. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  947. MakeForm(RING,"Cyl")
  948. RING.Color = C3(0,0,0)
  949. for i = 1, 12 do
  950. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false)
  951. PRT.Color = C3(0,0,0)
  952. local MSH = IT("BlockMesh",PRT)
  953. MSH.Scale = VT(0.6,1,1)
  954. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE))
  955. end
  956. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false)
  957. PRT.Color = C3(0,0,0)
  958. local MSH = IT("BlockMesh",PRT)
  959. MSH.Scale = VT(0.4,1,1)
  960. local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE))
  961. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
  962. PRT.Color = C3(0,0,0)
  963. local MSH = IT("BlockMesh",PRT)
  964. MSH.Scale = VT(0.4,1,1)
  965. local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE))
  966. coroutine.resume(coroutine.create(function()
  967. while true do
  968. Swait()
  969. CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED
  970. WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
  971. WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
  972. if CLOCKLOOP <= -150 then
  973. if VALUE1 == false then
  974. CLOCKLOOP = 0
  975. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 4})
  976. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  977. ApplyAoE3(HITPOS,10,15,45,75,false)
  978. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  979. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  980. if CLOCKTARGET ~= nil then
  981. CLOCKTARGET.Health = CLOCKTARGET.Health - 20
  982. if CLOCKTARGET.Torso ~= nil then
  983. CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  984. end
  985. if CLOCKTARGET.Health == 0 then
  986. CLOCKTARGET = nil
  987. end
  988. end
  989. end
  990. end
  991. end
  992. end))
  993.  
  994. for _, c in pairs(Weapon:GetChildren()) do
  995. if c.ClassName == "Part" then
  996. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  997. end
  998. end
  999.  
  1000. for _, c in pairs(Weapon2:GetDescendants()) do
  1001. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1002. c.Material = "Glass"
  1003. c.Color = C3(1,1,1)
  1004. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1005. c.Color = C3(159/255, 111/255, 183/255)
  1006. c.Material = "Neon"
  1007. end
  1008. end
  1009.  
  1010. Head.Color = C3(1,1,1)
  1011. Torso.Color = C3(0,0,0)
  1012. LeftArm.Color = C3(0,0,0)
  1013. LeftLeg.Color = C3(0,0,0)
  1014. RightArm.Color = C3(0,0,0)
  1015. RightLeg.Color = C3(0,0,0)
  1016.  
  1017. Neck.Name = "Weld"
  1018. RootJoint.Name = "Weld"
  1019. RightShoulder.Name = "Weld"
  1020. LeftShoulder.Name = "Weld"
  1021. RightHip.Name = "Weld"
  1022. LeftHip.Name = "Weld"
  1023.  
  1024. local SKILLTEXTCOLOR = C3(159/255, 111/255, 183/255)
  1025. local SKILLFONT = "Fantasy"
  1026. local SKILLTEXTSIZE = 7
  1027.  
  1028. Weapon.Parent = Character
  1029. Weapon2.Parent = Character
  1030. Humanoid.Parent = Character
  1031.  
  1032. Humanoid.Died:connect(function()
  1033. ATTACK = true
  1034. end)
  1035.  
  1036. --//=================================\\
  1037. --|| DAMAGING
  1038. --\\=================================//
  1039.  
  1040.  
  1041.  
  1042. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1043. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1044. defence.Name = ("HitBy"..Player.Name)
  1045. game:GetService("Debris"):AddItem(defence, 0.001)
  1046. Damage = Damage * DAMAGEMULTIPLIER
  1047. if Humanoid.Health ~= 0 then
  1048. local CritChance = MRANDOM(1,100)
  1049. if Damage > Humanoid.Health then
  1050. Damage = math.ceil(Humanoid.Health)
  1051. if Damage == 0 then
  1052. Damage = 0.1
  1053. end
  1054. end
  1055. Humanoid.Health = Humanoid.Health - Damage
  1056. end
  1057. end
  1058.  
  1059. function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1060. local CHILDREN = workspace:GetDescendants()
  1061. for index, CHILD in pairs(CHILDREN) do
  1062. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1063. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1064. if HUM then
  1065. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1066. if TORSO then
  1067. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1068. if INSTAKILL == true then
  1069. CHILD:BreakJoints()
  1070. else
  1071. local DMG = MRANDOM(MINDMG,MAXDMG)
  1072. ApplyDamage(HUM,DMG,TORSO)
  1073. end
  1074. if FLING > 0 then
  1075. for _, c in pairs(CHILD:GetChildren()) do
  1076. if c:IsA("BasePart") then
  1077. local bv = Instance.new("BodyVelocity")
  1078. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1079. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1080. bv.Parent = c
  1081. Debris:AddItem(bv,0.05)
  1082. end
  1083. end
  1084. end
  1085. end
  1086. end
  1087. end
  1088. end
  1089. end
  1090. end
  1091.  
  1092. --//=================================\\
  1093. --|| ATTACK FUNCTIONS AND STUFF
  1094. --\\=================================//
  1095.  
  1096. function Taunt()
  1097. ATTACK = true
  1098. local LAUGH = nil
  1099. sick.Volume = 0
  1100. local DANCE = true
  1101. local KEY = Mouse.KeyDown:connect(function(NEWKEY)
  1102. if NEWKEY == "t" then
  1103. DANCE = false
  1104. sick.Volume = 5
  1105. end
  1106. end)
  1107. coroutine.resume(coroutine.create(function()
  1108. repeat
  1109. Swait()
  1110. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1111. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1112. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(43 - 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1113. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(-42 + 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1114. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1.02*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1115. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1116. until LAUGH ~= nil
  1117. repeat
  1118. for i = 1, 15 do
  1119. Swait()
  1120. LAUGH.Parent = Effects
  1121. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1122. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1123. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(43 - 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1124. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(-42 + 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1125. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1.02*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1126. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1127. end
  1128. if DANCE == false then
  1129. break
  1130. end
  1131. for i = 1, 15 do
  1132. Swait()
  1133. LAUGH.Parent = Effects
  1134. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1135. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1136. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(-15 - 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1137. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(15 + 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1138. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1.02*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1139. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1140. end
  1141. until LAUGH.Playing == false
  1142. ATTACK = false
  1143. LAUGH:remove()
  1144. KEY:remove()
  1145. sick.Volume = 5
  1146. end))
  1147. wait(0.1)
  1148. LAUGH = CreateSound(1028096631, Head, 10, 1, false)
  1149. end
  1150.  
  1151. function Bullet()
  1152. ATTACK = true
  1153. Rooted = false
  1154. for i=0, 0.4, 0.1 / Animation_Speed do
  1155. Swait()
  1156. turnto(Mouse.Hit.p)
  1157. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1158. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1159. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1160. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.6*SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1161. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1162. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1163. end
  1164. repeat
  1165. for i=0, 0.2, 0.1 / Animation_Speed do
  1166. Swait()
  1167. turnto(Mouse.Hit.p)
  1168. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(40)), 1 / Animation_Speed)
  1169. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.4) * ANGLES(RAD(-10), RAD(0), RAD(-32)), 0.5 / Animation_Speed)
  1170. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1171. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.6*SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1172. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1173. end
  1174. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1175. SpawnTrail(Hole.Position,POS)
  1176. if HIT ~= nil then
  1177. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1178. ApplyAoE3(POS,3,5,15,0,false)
  1179. end
  1180. end
  1181. CreateSound(213603013, Hole, 10, 1, false)
  1182. 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(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1183. 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(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1184. for i=0, 0.3, 0.1 / Animation_Speed do
  1185. Swait()
  1186. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(40)), 1 / Animation_Speed)
  1187. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.4) * ANGLES(RAD(5), RAD(0), RAD(-32)), 0.25 / Animation_Speed)
  1188. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(15), RAD(40)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1189. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.6*SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1190. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1191. end
  1192. until KEYHOLD == false
  1193. ATTACK = false
  1194. end
  1195.  
  1196. function Bullet_Rain()
  1197. ATTACK = true
  1198. Rooted = true
  1199. for i=0, 0.6, 0.1 / Animation_Speed do
  1200. Swait()
  1201. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1202. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1203. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1204. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1205. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6*SIZE, 0.75*SIZE, -0.5*SIZE) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  1206. end
  1207. local DONE = false
  1208. local GATE = nil
  1209. local GATESPIN = true
  1210. coroutine.resume(coroutine.create(function()
  1211. repeat
  1212. Swait()
  1213. if GATE ~= nil then
  1214. GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
  1215. end
  1216. until GATESPIN == false
  1217. end))
  1218. coroutine.resume(coroutine.create(function()
  1219. repeat
  1220. Swait()
  1221. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1222. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1223. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.01 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1224. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0.01, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1225. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.75*SIZE, -0.5*SIZE) * ANGLES(RAD(0), RAD(-180), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  1226. until DONE == true
  1227. Swait(10)
  1228. for i = 1, 75 do
  1229. Swait(1.5)
  1230. local FIRED = false
  1231. local CHILDREN = workspace:GetDescendants()
  1232. for index, CHILD in pairs(CHILDREN) do
  1233. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1234. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1235. if HUM then
  1236. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1237. if TORSO then
  1238. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1239. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1240. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1241. 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(159/255, 111/255, 183/255), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 3})
  1242. 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(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1243. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1244. ApplyAoE3(CFRAME.p,3,0.25,1,2,false)
  1245. FIRED = true
  1246. break
  1247. end
  1248. end
  1249. end
  1250. end
  1251. end
  1252. if FIRED == false then
  1253. 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)))
  1254. 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(159/255, 111/255, 183/255), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 6})
  1255. 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(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1256. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1257. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1258. if HITBOD ~= nil then
  1259. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1260. ApplyAoE3(HITBOD,3,0.25,1,0,false)
  1261. end
  1262. end
  1263. end
  1264. end
  1265. for i = 1, 45 do
  1266. Swait()
  1267. GATE.Size = GATE.Size - VT(3,0,3)
  1268. end
  1269. GATESPIN = false
  1270. GATE:remove()
  1271. end))
  1272. Swait(5)
  1273. local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p, (CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0))).lookVector, 15, Character)
  1274. GATE = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Gate", VT(0,0,0))
  1275. local DECAL = IT("Decal",GATE)
  1276. DECAL.Texture = "http://www.roblox.com/asset/?id=0"
  1277. DECAL.Face = "Top"
  1278. GATE.CFrame = CF(HITPOS)
  1279. CreateSound(160772554, GATE, 7, 1.3, false)
  1280. for i = 1, 45 do
  1281. Swait()
  1282. GATE.Size = GATE.Size + VT(3,0,3)
  1283. end
  1284. CreateSound(145080998, Hole2, 7, 1, false)
  1285. ATTACK = false
  1286. Rooted = false
  1287. DONE = true
  1288. end
  1289.  
  1290. function GoldenPunch()
  1291. ATTACK = true
  1292. Rooted = false
  1293. local SPEED = Speed
  1294. Speed = 8
  1295. CreateSound("169445572", RightArm, 10, 0.9)
  1296. for i=0, 4, 0.1 / Animation_Speed do
  1297. Swait()
  1298. turnto(Mouse.Hit.p)
  1299. MagicSphere4(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Lavender",VT(-1/15,-1/15,-1/15))
  1300. MagicSphere4(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Hot pink",VT(-2/15,-2/15,-2/15))
  1301. MagicSphere4(VT(1,1,1),15,LeftArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Lavender",VT(-1/15,-1/15,-1/15))
  1302. MagicSphere4(VT(2,2,2),15,LeftArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Hot pink",VT(-2/15,-2/15,-2/15))
  1303. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * SIZE, 0 * SIZE, -0.2 * SIZE + 0.05 * COS(SINE / 12) * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1304. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1.2 * SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1))), 0.2 / Animation_Speed)
  1305. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(90 + 11 * COS(SINE / 1)), RAD(-30 + 11 * COS(SINE / 1)), RAD(-65 + 11 * COS(SINE / 1))) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1306. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(90 + 11 * COS(SINE / 1)), RAD(30 + 11 * COS(SINE / 1)), RAD(65 + 11 * COS(SINE / 1))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1307. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1))), 0.15 / Animation_Speed)
  1308. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1))), 0.15 / Animation_Speed)
  1309. end
  1310. for i=0, 0.15, 0.1 / Animation_Speed do
  1311. Swait()
  1312. turnto(Mouse.Hit.p)
  1313. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * SIZE, 0 * SIZE, -0.2 * SIZE + 0.05 * COS(SINE / 12) * SIZE) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  1314. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1.2 * SIZE) - 1)) * ANGLES(RAD(25 + 11 * COS(SINE / 1)), RAD(0), RAD(35 + 11 * COS(SINE / 1))), 1 / Animation_Speed)
  1315. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(90 + 11 * COS(SINE / 1)), RAD(0), RAD(85 + 11 * COS(SINE / 1))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1316. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(90 + 11 * COS(SINE / 1)), RAD(0), RAD(-85 + 11 * COS(SINE / 1))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1317. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1))), 1 / Animation_Speed)
  1318. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1))), 1 / Animation_Speed)
  1319. end
  1320. local PART = CreatePart2(3, Effects, "Neon", 0, 0.8, "Dark indigo", "Punch", VT(50,50,50),false)
  1321. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  1322. PART.Shape = "Ball"
  1323. local bv = Instance.new("BodyVelocity")
  1324. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1325. bv.velocity = RootPart.CFrame.lookVector*600
  1326. bv.Parent = PART
  1327. bv.Name = "PROJECTILEVELOCITY"
  1328. CreateWave3(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Lavender",VT(2.5,0.2,2.5))
  1329. CreateWave3(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Lavender",VT(3,0.2,3))
  1330. CreateSwirl3(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Lavender",VT(2,0.6,2))
  1331. CreateSwirl3(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Lavender",VT(2.2,0.6,2.2))
  1332. CreateSound(414517163, Effects, 10, MRANDOM(7, 12) / 10)
  1333. coroutine.resume(coroutine.create(function()
  1334. for i = 1, 10 do
  1335. Swait()
  1336. PART.Transparency = PART.Transparency + 0.2/10
  1337. PART.Size = PART.Size + VT(5,5,5)
  1338. ApplyAoE3(PART.Position,35,10,15,100,false)
  1339. end
  1340. PART:Destroy()
  1341. end))
  1342. for i=0, 1, 0.1 / Animation_Speed do
  1343. Swait()
  1344. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * SIZE, 0 * SIZE, -0.2 * SIZE + 0.05 * COS(SINE / 12) * SIZE) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  1345. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(25 + 11 * COS(SINE / 1)), RAD(0), RAD(35 + 11 * COS(SINE / 1))), 3 / Animation_Speed)
  1346. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(90 + 11 * COS(SINE / 1)), RAD(0), RAD(0 + 11 * COS(SINE / 1))) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1347. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-70 + 11 * COS(SINE / 1)), RAD(0), RAD(-25 + 11 * COS(SINE / 1))) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1348. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -0.8 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1))), 3 / Animation_Speed)
  1349. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1)), RAD(0 + 11 * COS(SINE / 1))), 3 / Animation_Speed)
  1350. end
  1351. Speed = SPEED
  1352. ATTACK = false
  1353. Rooted = false
  1354. end
  1355. --//=================================\\
  1356. --|| ASSIGN THINGS TO KEYS
  1357. --\\=================================//
  1358.  
  1359. function MouseDown(Mouse)
  1360. HOLD = true
  1361. if ATTACK == false then
  1362. end
  1363. end
  1364.  
  1365. function MouseUp(Mouse)
  1366. HOLD = false
  1367. end
  1368.  
  1369. function KeyDown(Key)
  1370. KEYHOLD = true
  1371. if Key == "z" and ATTACK == false then
  1372. Bullet()
  1373. end
  1374.  
  1375. if Key == "x" and ATTACK == false then
  1376. Bullet_Rain()
  1377. end
  1378.  
  1379. if Key == "c" and ATTACK == false then
  1380. GoldenPunch()
  1381. end
  1382.  
  1383. if Key == "t" and ATTACK == false then
  1384. Taunt()
  1385. end
  1386. end
  1387.  
  1388. local OVMID = 1716320712
  1389. local OVMPIT = 1
  1390. local OVMVOL = 1
  1391. plr.Chatted:connect(function(message)
  1392. if ATTACK == false then
  1393. if message:sub(1,5) == "play/" then
  1394. OVMID = message:sub(6)
  1395. newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  1396. elseif message:sub(1,6) == "pitch/" then
  1397. OVMPIT = message:sub(7)
  1398. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  1399. elseif message:sub(1,4) == "vol/" then
  1400. OVMVOL = message:sub(5)
  1401. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  1402. elseif message:sub(1,7) == "sr/" then
  1403. sick.TimePosition = 0
  1404. Head.Color = C3(1,1,1)
  1405. Torso.Color = C3(0,0,0)
  1406. LeftArm.Color = C3(0,0,0)
  1407. LeftLeg.Color = C3(0,0,0)
  1408. RightArm.Color = C3(0,0,0)
  1409. RightLeg.Color = C3(0,0,0)
  1410. newThemeCust("rbxassetid://"..OVMID,message:sub(8),OVMPIT,OVMVOL)
  1411. elseif message:sub(1,9) == "te/" then
  1412. sick.TimePosition = 0
  1413. end
  1414. end
  1415. end)
  1416.  
  1417. function KeyUp(Key)
  1418. KEYHOLD = false
  1419. end
  1420.  
  1421. Mouse.Button1Down:connect(function(NEWKEY)
  1422. MouseDown(NEWKEY)
  1423. end)
  1424. Mouse.Button1Up:connect(function(NEWKEY)
  1425. MouseUp(NEWKEY)
  1426. end)
  1427. Mouse.KeyDown:connect(function(NEWKEY)
  1428. KeyDown(NEWKEY)
  1429. end)
  1430. Mouse.KeyUp:connect(function(NEWKEY)
  1431. KeyUp(NEWKEY)
  1432. end)
  1433.  
  1434. --//=================================\\
  1435. --\\=================================//
  1436.  
  1437.  
  1438. function unanchor()
  1439. if UNANCHOR == true then
  1440. RootPart.Anchored = false
  1441. end
  1442. g = Character:GetChildren()
  1443. for i = 1, #g do
  1444. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  1445. g[i].Anchored = false
  1446. end
  1447. end
  1448. g = Weapon:GetChildren()
  1449. for i = 1, #g do
  1450. if g[i].ClassName == "Part" then
  1451. g[i].Anchored = false
  1452. end
  1453. end
  1454. end
  1455.  
  1456.  
  1457. --//=================================\\
  1458. --|| WRAP THE WHOLE SCRIPT UP
  1459. --\\=================================//
  1460.  
  1461. Humanoid.Changed:connect(function(Jump)
  1462. if Jump == "Jump" and (Disable_Jump == true) then
  1463. Humanoid.Jump = false
  1464. end
  1465. end)
  1466.  
  1467. while true do
  1468. Swait()
  1469. script.Parent = WEAPONGUI
  1470. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1471. v:Stop();
  1472. end
  1473. ANIMATE.Parent = nil
  1474. SINE = SINE + CHANGE*1.5
  1475. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1476. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1477. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  1478. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  1479. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1480. 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)
  1481. 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)
  1482. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1483. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1484. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1485. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1486. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1487. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1488. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1489. end
  1490. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1491. ANIM = "Jump"
  1492. if ATTACK == false then
  1493. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1494. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1495. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1496. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1497. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  1498. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed)
  1499. end
  1500. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1501. ANIM = "Fall"
  1502. if ATTACK == false then
  1503. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1504. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1505. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1506. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1507. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  1508. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  1509. end
  1510. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1511. ANIM = "Idle"
  1512. if ATTACK == false then
  1513. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1514. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1515. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(45), RAD(0 + 2.5 * SIN(SINE / 25)), RAD(55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1516. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(45), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1517. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1518. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1519. end
  1520. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1521. ANIM = "Walk"
  1522. if ATTACK == false then
  1523. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1524. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed)
  1525. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1526. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1527. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1528. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1529. end
  1530. end
  1531. unanchor()
  1532. Humanoid.MaxHealth = "inf"
  1533. Humanoid.Health = "inf"
  1534. if Rooted == false then
  1535. Disable_Jump = false
  1536. Humanoid.WalkSpeed = Speed
  1537. elseif Rooted == true then
  1538. Disable_Jump = true
  1539. Humanoid.WalkSpeed = 0
  1540. end
  1541. for _, c in pairs(Character:GetChildren()) do
  1542. if c.ClassName == "Part" and c.Name ~= "Detail" then
  1543. c.Material = "Fabric"
  1544. if c:FindFirstChildOfClass("ParticleEmitter") then
  1545. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1546. end
  1547. if c == Head then
  1548. if c:FindFirstChild("face") then
  1549. c.face:remove()
  1550. end
  1551. end
  1552. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1553. c:remove()
  1554. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1555. c:remove()
  1556. end
  1557. end
  1558. Humanoid.Name = "Pandora = "..Player.Name
  1559. end
  1560.  
  1561. --//=================================\\
  1562. --\\=================================//
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568. --//====================================================\\--
  1569. --|| END OF SCRIPT
  1570. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement