Advertisement
memberhero

Gunner Pandora Script

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