Advertisement
Christoffer07700Extr

a joke edit

Aug 23rd, 2019
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.77 KB | None | 0 0
  1. script.Name = "Banisher Gun V3 / 1"
  2. --//====================================================\\--
  3. --|| CREATED BY SHACKLUSTER
  4. --\\====================================================//--
  5.  
  6. script:ClearAllChildren()
  7. wait(0.2)
  8.  
  9. Player = game:GetService("Players").LocalPlayer
  10. PlayerGui = Player.PlayerGui
  11. Cam = workspace.CurrentCamera
  12. Backpack = Player.Backpack
  13. Character = Player.Character
  14. Humanoid = Character.Humanoid
  15. Mouse = Player:GetMouse()
  16. RootPart = Character["HumanoidRootPart"]
  17. Torso = Character["Torso"]
  18. Head = Character["Head"]
  19. RightArm = Character["Right Arm"]
  20. LeftArm = Character["Left Arm"]
  21. RightLeg = Character["Right Leg"]
  22. LeftLeg = Character["Left Leg"]
  23. RootJoint = RootPart["RootJoint"]
  24. Neck = Torso["Neck"]
  25. RightShoulder = Torso["Right Shoulder"]
  26. LeftShoulder = Torso["Left Shoulder"]
  27. RightHip = Torso["Right Hip"]
  28. LeftHip = Torso["Left Hip"]
  29. local TIME = 0
  30. local sick = Instance.new("Sound",Torso)
  31.  
  32. IT = Instance.new
  33. CF = CFrame.new
  34. VT = Vector3.new
  35. RAD = math.rad
  36. C3 = Color3.new
  37. UD2 = UDim2.new
  38. BRICKC = BrickColor.new
  39. ANGLES = CFrame.Angles
  40. EULER = CFrame.fromEulerAnglesXYZ
  41. COS = math.cos
  42. ACOS = math.acos
  43. SIN = math.sin
  44. ASIN = math.asin
  45. ABS = math.abs
  46. MRANDOM = math.random
  47. FLOOR = math.floor
  48. --//=================================\\
  49. --|| USEFUL VALUES
  50. --\\=================================//
  51.  
  52. Animation_Speed = 3
  53. local FORCERESET = false
  54. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  55. local Speed = 16
  56. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  57. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  58. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  59. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  60. local DAMAGEMULTIPLIER = 1
  61. local ANIM = "Idle"
  62. local ATTACK = false
  63. local EQUIPPED = false
  64. local HOLD = false
  65. local COMBO = 1
  66. local Rooted = false
  67. local SINE = 0
  68. local KEYHOLD = false
  69. local CHANGE = 2 / Animation_Speed
  70. local WALKINGANIM = false
  71. local VALUE1 = false
  72. local VALUE2 = false
  73. local ROBLOXIDLEANIMATION = IT("Animation")
  74. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  75. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  76. --ROBLOXIDLEANIMATION.Parent = Humanoid
  77. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  78. WEAPONGUI.Name = "BanishV3Gui"
  79. local Weapon = IT("Model")
  80. Weapon.Name = "Adds"
  81. local Effects = IT("Folder", Weapon)
  82. Effects.Name = "Effects"
  83. local ANIMATOR = Humanoid.Animator
  84. local ANIMATE = Character:FindFirstChild("Animate")
  85. local UNANCHOR = true
  86. local TOBANISH = {}
  87. script.Parent = PlayerGui
  88.  
  89. --//=================================\\
  90. --\\=================================//
  91.  
  92. --[[for i,v in pairs(Character:GetChildren()) do
  93. if v:IsA'Accessory' then v:Destroy() end
  94. end]]
  95. function GiveProperties(part, tab)
  96. for i,v in ipairs(tab) do
  97. part[i] = v
  98. end
  99. end
  100.  
  101.  
  102. --//=================================\\
  103. --|| RESIZE PLAYER
  104. --\\=================================//
  105.  
  106. for _, v in pairs (Character:GetChildren()) do
  107. if v:IsA("Accessory") then
  108. local HATACCESSORYWELD = v.Handle:FindFirstChild("AccessoryWeld")
  109. if HATACCESSORYWELD ~= nil then
  110. table.insert(
  111. HATACCESSORYWELDSC0,
  112. {
  113. HATACCESSORYWELD.Parent.Parent,
  114. HATACCESSORYWELD.Parent,
  115. HATACCESSORYWELD.Part0,
  116. HATACCESSORYWELD.Part1,
  117. HATACCESSORYWELD.C0.x,
  118. HATACCESSORYWELD.C0.y,
  119. HATACCESSORYWELD.C0.z,
  120. HATACCESSORYWELD.C1.x,
  121. HATACCESSORYWELD.C1.y,
  122. HATACCESSORYWELD.C1.z
  123. }
  124. )
  125. end
  126. NoOutlines(v.Handle)
  127. v.Handle.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  128. end
  129. end
  130. Humanoid.HipHeight = Humanoid.HipHeight * Player_Size
  131. for _, v in pairs (Character:GetChildren()) do
  132. if v:IsA("BasePart") then
  133. for _, b in pairs (v:GetChildren()) do
  134. if b.ClassName == "Motor6D" then
  135. table.insert(
  136. MOTOR6DWELDS,
  137. {
  138. b,
  139. b.Parent,
  140. b.Part0,
  141. b.Part1
  142. }
  143. )
  144. end
  145. end
  146. end
  147. end
  148. for _, v in pairs (Character:GetChildren()) do
  149. if v:IsA("BasePart") then
  150. v.Size = v.Size * Vector3.new(Player_Size, Player_Size, Player_Size)
  151. end
  152. end
  153. Player.Chatted:connect(function(msg)
  154. if string.sub(msg, 1, 5) == '/e w ' then
  155. lastchat = string.sub(msg, 6)
  156. end
  157. end)
  158. for i = 1, #MOTOR6DWELDS do
  159. local MAINTHING = MOTOR6DWELDS[i]
  160. local MOTOR6D = MAINTHING[1]
  161. local MOTOR6DPARENT = MAINTHING[2]
  162. local MOTOR6DPART0 = MAINTHING[3]
  163. local MOTOR6DPART1 = MAINTHING[4]
  164. local C01, C02, C03, C04, C05, C06, C07, C08, C09, C010, C011, C012 = MOTOR6D.C0:components()
  165. local C11, C12, C13, C14, C15, C16, C17, C18, C19, C110, C111, C112 = MOTOR6D.C1:components()
  166. --MOTOR6DPARENT.Size = MOTOR6DPARENT.Size * Vector3.new(Player_Size, Player_Size, Player_Size)
  167. MOTOR6D.Parent = MOTOR6DPARENT
  168. MOTOR6D.Part0 = MOTOR6DPART0
  169. MOTOR6D.Part1 = MOTOR6DPART1
  170. MOTOR6D.C0 = CFrame.new(C01 * Player_Size, C02 * Player_Size, C03 * Player_Size, C04, C05, C06, C07, C08, C09, C010, C011, C012)
  171. MOTOR6D.C1 = CFrame.new(C11 * Player_Size, C12 * Player_Size, C13 * Player_Size, C14, C15, C16, C17, C18, C19, C110, C111, C112)
  172. end
  173. for i = 1, #HATACCESSORYWELDSC0 do
  174. local MAINTHING = HATACCESSORYWELDSC0[i]
  175. local ACCESSORYPARENT = MAINTHING[1]
  176. local HANDLEPARENT = MAINTHING[2]
  177. local PART0 = MAINTHING[3]
  178. local PART1 = MAINTHING[4]
  179. local WELDC0X = MAINTHING[5]
  180. local WELDC0Y = MAINTHING[6]
  181. local WELDC0Z = MAINTHING[7]
  182. local WELDC1X = MAINTHING[8]
  183. local WELDC1Y = MAINTHING[9]
  184. local WELDC1Z = MAINTHING[10]
  185. local FAKEACCESSORYWELD = Instance.new("Weld")
  186. HANDLEPARENT.Size = HANDLEPARENT.Size * Vector3.new(Player_Size, Player_Size, Player_Size)
  187. FAKEACCESSORYWELD.Parent = HANDLEPARENT
  188. FAKEACCESSORYWELD.Parent.Mesh.Scale = (FAKEACCESSORYWELD.Parent.Mesh.Scale * Player_Size)
  189. FAKEACCESSORYWELD.Part0 = PART0
  190. FAKEACCESSORYWELD.Part1 = PART1
  191. FAKEACCESSORYWELD.C0 = CFrame.new(WELDC0X * Player_Size, WELDC0Y * Player_Size, WELDC0Z * Player_Size)
  192. FAKEACCESSORYWELD.C1 = CFrame.new(WELDC1X * Player_Size, WELDC1Y * Player_Size, WELDC1Z * Player_Size)
  193. end
  194. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  195. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  196. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  197. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  198. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  199. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  200. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  201. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  202. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  203. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  204. RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  205. LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  206. if Movement_Speed_Scales_With_Size == true then
  207. Humanoid.WalkSpeed = 16 * Player_Size
  208. end
  209. if Jump_Power_Scales_With_Size == true then
  210. Humanoid.JumpPower = 50 * Player_Size
  211. end
  212.  
  213. --//=================================\\
  214. --\\=================================//
  215.  
  216.  
  217. local phoenix = {faces = {'rbxassetid://57055455', 'rbxassetid://57056309'}, sounds = {'665529621','135166344', '135165859'},slam = '131218412', scale = {Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(Player_Size/150,Player_Size/150,Player_Size/150)},images = {'129044092','129044561', '53141804'}, meshes = {'0','0','434570496'}}
  218. Face.Texture = phoenix.faces[1]
  219. function OBJECTION(mr)
  220. if not mr then mr = MRANDOM(1,3) end
  221. Face.Texture = phoenix.faces[2]
  222. BillboardGui0 = Instance.new("BillboardGui")
  223. ImageLabel1 = Instance.new("ImageLabel")
  224. BillboardGui0.Name = "bully"
  225. BillboardGui0.Parent = RightArm
  226. BillboardGui0.Size = UDim2.new(Player_Size *5 + 0.5, 0, Player_Size *4, 0)
  227. BillboardGui0.Active = true
  228. BillboardGui0.Adornee = nil
  229. BillboardGui0.StudsOffset = Vector3.new(--[[Player_Size*2]]0,Player_Size*4,Player_Size*2)
  230. BillboardGui0.AlwaysOnTop = true
  231. BillboardGui0.ClipsDescendants = true
  232. game:service'Debris':AddItem(BillboardGui0, 2)
  233. ImageLabel1.Parent = BillboardGui0
  234. ImageLabel1.Transparency = 1
  235. ImageLabel1.Size = UDim2.new(1, 0, 1, 0)
  236. ImageLabel1.Active = true
  237. ImageLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  238. ImageLabel1.BackgroundTransparency = 1
  239. ImageLabel1.Image = 'rbxassetid://'..phoenix.images[mr]
  240. local s = Instance.new('Sound', Head)
  241. s.SoundId = 'rbxassetid://'..phoenix.sounds[mr]
  242. s.Volume = 10
  243. s.Pitch = 1 --phoenix.sounds[math.random(1,#peepee)]
  244. s:Play()
  245. local par = Instance.new('Part', Character)
  246. par.Name = 'fahs9we98iojhgw'
  247. par.CFrame = RightArm.CFrame * CFrame.new(0,-50--[[*Player_Size]],0)
  248. par.CanCollide = false
  249. par.Size = Vector3.new(10*Player_Size,100,10*Player_Size)
  250. par.Anchored = true
  251. par.Transparency = 1
  252. par:BreakJoints()
  253. par.Touched:Connect(function(prt)
  254. if prt:IsDescendantOf(Character) then return end
  255. local entity = false
  256. local hum = nil
  257. if prt.Parent ~= workspace and prt.Parent:FindFirstChildOfClass('Humanoid') then
  258. entity = true
  259. hum = prt.Parent:FindFirstChildOfClass('Humanoid')
  260. end
  261. coroutine.wrap(function()
  262. if mr == 2 then
  263. local wasanchored = false
  264. if prt.Anchored == true then
  265. wasanchored = true
  266. end
  267. prt.Anchored = true
  268. wait(5)
  269. if wasanchored == false then
  270. prt.Anchored = false
  271. end
  272. elseif mr == 1 then
  273. if hum ~= nil then
  274. hum.Health = hum.Health - 1
  275. end
  276. end
  277. end)()
  278. end)
  279. game:service'Debris':AddItem(par, 2)
  280. if mr == 3 then
  281. local p = Instance.new('Part', RightArm)
  282. p.CFrame = RightArm.CFrame * CFrame.new(0,-Player_Size,0)
  283. p.Size = Vector3.new(0.1,0.1,0.1)
  284. local m = Instance.new('SpecialMesh', p)
  285. m.MeshType = 'FileMesh'
  286. m.MeshId = 'rbxassetid://' ..phoenix.meshes[mr]
  287. m.Scale = phoenix.scale[mr]
  288. local BodyVelocity = Instance.new("BodyVelocity", p)
  289. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  290. BodyVelocity.velocity = RootPart.CFrame.lookVector*60
  291. p.Touched:connect(function()
  292. local function dab()
  293. MagnitudeDamage(0, 0, 0, 0, 1, 1, 1, 1, p, 1, true, 20, 50, MRANDOM(1, 2), "Normal", p, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  294. end
  295. local s,m = pcall(dab)
  296. if m then
  297. print('no. | ' ..m)
  298. end
  299. end)
  300. end
  301. coroutine.wrap(function()
  302. wait(2)
  303. Face.Texture = phoenix.faces[1]
  304. end)()
  305. game:service'Debris':AddItem(s, 2)
  306. game:service'Debris':AddItem(p, 5)
  307. end
  308.  
  309. chat = function(t)
  310. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  311. Character:FindFirstChild("TalkingBillBoard"):destroy()
  312. end
  313. local hot = Instance.new("BillboardGui",Character)
  314. hot.Size = UDim2.new(0,100,0,40)
  315. hot.StudsOffset = Vector3.new(0,3*Player_Size,0)
  316. hot.Adornee = Character.Head
  317. hot.Name = "TalkingBillBoard"
  318. local fat = Instance.new("TextLabel",hot)
  319. fat.BackgroundTransparency = 1
  320. fat.BorderSizePixel = 0
  321. fat.Text = ""
  322. fat.Font = "SourceSans"
  323. fat.FontSize = "Size28"
  324. fat.TextStrokeTransparency = 0
  325. fat.TextColor3 = Color3.new(1,1,1)
  326. fat.TextStrokeColor3 = Color3.new(0,0,0)
  327. fat.Size = UDim2.new(1,0,0.5,0)
  328. local mlem = 1
  329. for i = 1,string.len(t),1 do
  330. if mlem == 1 then mlem = 2 else mlem = 1 end
  331. if i == string.len(t) then
  332. mlem = 1
  333. end
  334. Face.Texture = phoenix.faces[mlem]
  335. fat.Text = string.sub(t,1,i)
  336. CreateSound('131238032', Head, 5, 1)
  337. wait(1/30)
  338. end
  339. wait(1)
  340. hot:Destroy()
  341. end
  342.  
  343. --//=================================\\
  344. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  345. --\\=================================//
  346.  
  347. ArtificialHB = Instance.new("BindableEvent", script)
  348. ArtificialHB.Name = "ArtificialHB"
  349.  
  350. script:WaitForChild("ArtificialHB")
  351.  
  352. frame = Frame_Speed
  353. tf = 0
  354. allowframeloss = false
  355. tossremainder = false
  356. lastframe = tick()
  357. script.ArtificialHB:Fire()
  358.  
  359. game:GetService("RunService").Heartbeat:connect(function(s, p)
  360. tf = tf + s
  361. if tf >= frame then
  362. if allowframeloss then
  363. script.ArtificialHB:Fire()
  364. lastframe = tick()
  365. else
  366. for i = 1, math.floor(tf / frame) do
  367. script.ArtificialHB:Fire()
  368. end
  369. lastframe = tick()
  370. end
  371. if tossremainder then
  372. tf = 0
  373. else
  374. tf = tf - frame * math.floor(tf / frame)
  375. end
  376. end
  377. end)
  378.  
  379. --//=================================\\
  380. --\\=================================//
  381.  
  382. --//=================================\\
  383. --|| SOME FUNCTIONS
  384. --\\=================================//
  385.  
  386. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  387. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  388. end
  389.  
  390. function PositiveAngle(NUMBER)
  391. if NUMBER >= 0 then
  392. NUMBER = 0
  393. end
  394. return NUMBER
  395. end
  396.  
  397. function NegativeAngle(NUMBER)
  398. if NUMBER <= 0 then
  399. NUMBER = 0
  400. end
  401. return NUMBER
  402. end
  403.  
  404. function Swait(NUMBER)
  405. if NUMBER == 0 or NUMBER == nil then
  406. ArtificialHB.Event:wait()
  407. else
  408. for i = 1, NUMBER do
  409. ArtificialHB.Event:wait()
  410. end
  411. end
  412. end
  413.  
  414. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  415. local NEWMESH = IT(MESH)
  416. if MESH == "SpecialMesh" then
  417. NEWMESH.MeshType = MESHTYPE
  418. if MESHID ~= "nil" and MESHID ~= "" then
  419. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  420. end
  421. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  422. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  423. end
  424. end
  425. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  426. NEWMESH.Scale = SCALE
  427. NEWMESH.Parent = PARENT
  428. return NEWMESH
  429. end
  430.  
  431. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  432. local NEWPART = IT("Part")
  433. NEWPART.formFactor = FORMFACTOR
  434. NEWPART.Reflectance = REFLECTANCE
  435. NEWPART.Transparency = TRANSPARENCY
  436. NEWPART.CanCollide = false
  437. NEWPART.Locked = true
  438. NEWPART.Anchored = true
  439. if ANCHOR == false then
  440. NEWPART.Anchored = false
  441. end
  442. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  443. NEWPART.Name = NAME
  444. NEWPART.Size = SIZE
  445. NEWPART.Position = Torso.Position
  446. NEWPART.Material = MATERIAL
  447. NEWPART:BreakJoints()
  448. NEWPART.Parent = PARENT
  449. return NEWPART
  450. end
  451.  
  452. local function weldBetween(a, b)
  453. local weldd = Instance.new("ManualWeld")
  454. weldd.Part0 = a
  455. weldd.Part1 = b
  456. weldd.C0 = CFrame.new()
  457. weldd.C1 = b.CFrame:inverse() * a.CFrame
  458. weldd.Parent = a
  459. return weldd
  460. end
  461.  
  462.  
  463. function QuaternionFromCFrame(cf)
  464. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  465. local trace = m00 + m11 + m22
  466. if trace > 0 then
  467. local s = math.sqrt(1 + trace)
  468. local recip = 0.5 / s
  469. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  470. else
  471. local i = 0
  472. if m11 > m00 then
  473. i = 1
  474. end
  475. if m22 > (i == 0 and m00 or m11) then
  476. i = 2
  477. end
  478. if i == 0 then
  479. local s = math.sqrt(m00 - m11 - m22 + 1)
  480. local recip = 0.5 / s
  481. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  482. elseif i == 1 then
  483. local s = math.sqrt(m11 - m22 - m00 + 1)
  484. local recip = 0.5 / s
  485. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  486. elseif i == 2 then
  487. local s = math.sqrt(m22 - m00 - m11 + 1)
  488. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  489. end
  490. end
  491. end
  492.  
  493. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  494. local xs, ys, zs = x + x, y + y, z + z
  495. local wx, wy, wz = w * xs, w * ys, w * zs
  496. local xx = x * xs
  497. local xy = x * ys
  498. local xz = x * zs
  499. local yy = y * ys
  500. local yz = y * zs
  501. local zz = z * zs
  502. 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))
  503. end
  504.  
  505. function QuaternionSlerp(a, b, t)
  506. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  507. local startInterp, finishInterp;
  508. if cosTheta >= 0.0001 then
  509. if (1 - cosTheta) > 0.0001 then
  510. local theta = ACOS(cosTheta)
  511. local invSinTheta = 1 / SIN(theta)
  512. startInterp = SIN((1 - t) * theta) * invSinTheta
  513. finishInterp = SIN(t * theta) * invSinTheta
  514. else
  515. startInterp = 1 - t
  516. finishInterp = t
  517. end
  518. else
  519. if (1 + cosTheta) > 0.0001 then
  520. local theta = ACOS(-cosTheta)
  521. local invSinTheta = 1 / SIN(theta)
  522. startInterp = SIN((t - 1) * theta) * invSinTheta
  523. finishInterp = SIN(t * theta) * invSinTheta
  524. else
  525. startInterp = t - 1
  526. finishInterp = t
  527. end
  528. end
  529. 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
  530. end
  531.  
  532. function Clerp(a, b, t)
  533. local qa = {QuaternionFromCFrame(a)}
  534. local qb = {QuaternionFromCFrame(b)}
  535. local ax, ay, az = a.x, a.y, a.z
  536. local bx, by, bz = b.x, b.y, b.z
  537. local _t = 1 - t
  538. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  539. end
  540.  
  541. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  542. local frame = IT("Frame")
  543. frame.BackgroundTransparency = TRANSPARENCY
  544. frame.BorderSizePixel = BORDERSIZEPIXEL
  545. frame.Position = POSITION
  546. frame.Size = SIZE
  547. frame.BackgroundColor3 = COLOR
  548. frame.BorderColor3 = BORDERCOLOR
  549. frame.Name = NAME
  550. frame.Parent = PARENT
  551. return frame
  552. end
  553.  
  554. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  555. local label = IT("TextLabel")
  556. label.BackgroundTransparency = 1
  557. label.Size = UD2(1, 0, 1, 0)
  558. label.Position = UD2(0, 0, 0, 0)
  559. label.TextColor3 = TEXTCOLOR
  560. label.TextStrokeTransparency = STROKETRANSPARENCY
  561. label.TextTransparency = TRANSPARENCY
  562. label.FontSize = TEXTFONTSIZE
  563. label.Font = TEXTFONT
  564. label.BorderSizePixel = BORDERSIZEPIXEL
  565. label.TextScaled = false
  566. label.Text = TEXT
  567. label.Name = NAME
  568. label.Parent = PARENT
  569. return label
  570. end
  571.  
  572. function NoOutlines(PART)
  573. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  574. end
  575.  
  576. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  577. local NEWWELD = IT(TYPE)
  578. NEWWELD.Part0 = PART0
  579. NEWWELD.Part1 = PART1
  580. NEWWELD.C0 = C0
  581. NEWWELD.C1 = C1
  582. NEWWELD.Parent = PARENT
  583. return NEWWELD
  584. end
  585.  
  586. local S = IT("Sound")
  587. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  588. local NEWSOUND = nil
  589. coroutine.resume(coroutine.create(function()
  590. NEWSOUND = S:Clone()
  591. NEWSOUND.Parent = PARENT
  592. NEWSOUND.Volume = VOLUME
  593. NEWSOUND.Pitch = PITCH
  594. NEWSOUND.SoundId = "1753701701"..ID
  595. NEWSOUND:play()
  596. if DOESLOOP == true then
  597. NEWSOUND.Looped = true
  598. else
  599. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  600. NEWSOUND:remove()
  601. end
  602. end))
  603. return NEWSOUND
  604. end
  605.  
  606. function CFrameFromTopBack(at, top, back)
  607. local right = top:Cross(back)
  608. 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)
  609. end
  610.  
  611. --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})
  612. function WACKYEFFECT(Table)
  613. local TYPE = (Table.EffectType or "Sphere")
  614. local SIZE = (Table.Size or VT(1,1,1))
  615. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  616. local TRANSPARENCY = (Table.Transparency or 0)
  617. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  618. local CFRAME = (Table.CFrame or Torso.CFrame)
  619. local MOVEDIRECTION = (Table.MoveToPos or nil)
  620. local ROTATION1 = (Table.RotationX or 0)
  621. local ROTATION2 = (Table.RotationY or 0)
  622. local ROTATION3 = (Table.RotationZ or 0)
  623. local MATERIAL = (Table.Material or "Neon")
  624. local COLOR = (Table.Color or C3(1,1,1))
  625. local TIME = (Table.Time or 45)
  626. local SOUNDID = (Table.SoundID or nil)
  627. local SOUNDPITCH = (Table.SoundPitch or nil)
  628. local SOUNDVOLUME = (Table.SoundVolume or nil)
  629. coroutine.resume(coroutine.create(function()
  630. local PLAYSSOUND = false
  631. local SOUND = nil
  632. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  633. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  634. PLAYSSOUND = true
  635. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  636. end
  637. EFFECT.Color = COLOR
  638. local MSH = nil
  639. if TYPE == "Sphere" then
  640. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  641. elseif TYPE == "Block" then
  642. MSH = IT("BlockMesh",EFFECT)
  643. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  644. elseif TYPE == "Wave" then
  645. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  646. elseif TYPE == "Ring" then
  647. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  648. elseif TYPE == "Slash" then
  649. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  650. elseif TYPE == "Round Slash" then
  651. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  652. elseif TYPE == "Swirl" then
  653. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  654. elseif TYPE == "Skull" then
  655. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  656. elseif TYPE == "Crystal" then
  657. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  658. end
  659. if MSH ~= nil then
  660. local MOVESPEED = nil
  661. if MOVEDIRECTION ~= nil then
  662. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  663. end
  664. local GROWTH = SIZE - ENDSIZE
  665. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  666. if TYPE == "Block" then
  667. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  668. else
  669. EFFECT.CFrame = CFRAME
  670. end
  671. for LOOP = 1, TIME+1 do
  672. Swait()
  673. MSH.Scale = MSH.Scale - GROWTH/TIME
  674. if TYPE == "Wave" then
  675. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  676. end
  677. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  678. if TYPE == "Block" then
  679. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  680. else
  681. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  682. end
  683. if MOVEDIRECTION ~= nil then
  684. local ORI = EFFECT.Orientation
  685. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  686. EFFECT.Orientation = ORI
  687. end
  688. end
  689. if PLAYSSOUND == false then
  690. EFFECT:remove()
  691. else
  692. SOUND.Stopped:Connect(function()
  693. EFFECT:remove()
  694. end)
  695. end
  696. else
  697. if PLAYSSOUND == false then
  698. EFFECT:remove()
  699. else
  700. repeat Swait() until SOUND.Playing == false
  701. EFFECT:remove()
  702. end
  703. end
  704. end))
  705. end
  706.  
  707. function MakeForm(PART,TYPE)
  708. if TYPE == "Cyl" then
  709. local MSH = IT("CylinderMesh",PART)
  710. elseif TYPE == "Ball" then
  711. local MSH = IT("SpecialMesh",PART)
  712. MSH.MeshType = "Sphere"
  713. elseif TYPE == "Wedge" then
  714. local MSH = IT("SpecialMesh",PART)
  715. MSH.MeshType = "Wedge"
  716. end
  717. end
  718.  
  719. function SpawnTrail(FROM,TO,BIG)
  720. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Bright yellow", "Trail", VT(0,0,0))
  721. MakeForm(TRAIL,"Cyl")
  722. local DIST = (FROM - TO).Magnitude
  723. if BIG == true then
  724. TRAIL.Size = VT(0.5,DIST,0.5)
  725. else
  726. TRAIL.Size = VT(0.25,DIST,0.25)
  727. end
  728. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  729. coroutine.resume(coroutine.create(function()
  730. for i = 1, 5 do
  731. Swait()
  732. TRAIL.Transparency = TRAIL.Transparency + 0.1
  733. end
  734. TRAIL:remove()
  735. end))
  736. end
  737.  
  738. Debris = game:GetService("Debris")
  739.  
  740. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  741. local DIRECTION = CF(StartPos,EndPos).lookVector
  742. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  743. end
  744.  
  745. function turnto(position)
  746. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  747. end
  748.  
  749. --//=================================\\
  750. --|| WEAPON CREATION
  751. --\\=================================//
  752.  
  753. local Particle = IT("ParticleEmitter",nil)
  754. Particle.Enabled = false
  755. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  756. Particle.LightEmission = 0.5
  757. Particle.Rate = 150
  758. Particle.ZOffset = 0.2
  759. Particle.Rotation = NumberRange.new(-180, 180)
  760. Particle.RotSpeed = NumberRange.new(-180, 180)
  761. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  762. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  763.  
  764. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  765. function ParticleEmitter(Table)
  766. local PRTCL = Particle:Clone()
  767. local Speed = Table.Speed or 5
  768. local Drag = Table.Drag or 0
  769. local Size1 = Table.Size1 or 1
  770. local Size2 = Table.Size2 or 5
  771. local Lifetime1 = Table.Lifetime1 or 1
  772. local Lifetime2 = Table.Lifetime2 or 1.5
  773. local Parent = Table.Parent or Torso
  774. local Emit = Table.Emit or 100
  775. local Offset = Table.Offset or 360
  776. local Acel = Table.Acel or VT(0,0,0)
  777. local Enabled = Table.Enabled or false
  778. PRTCL.Parent = Parent
  779. PRTCL.Size = NumberSequence.new(Size1,Size2)
  780. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  781. PRTCL.Speed = NumberRange.new(Speed)
  782. PRTCL.VelocitySpread = Offset
  783. PRTCL.Drag = Drag
  784. PRTCL.Acceleration = Acel
  785. if Enabled == false then
  786. PRTCL:Emit(Emit)
  787. Debris:AddItem(PRTCL,Lifetime2)
  788. else
  789. PRTCL.Enabled = true
  790. end
  791. return PRTCL
  792. end
  793.  
  794. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.6,0.2),false)
  795. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  796. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.5,0.2),false)
  797. MakeForm(Part,"Wedge")
  798. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  799. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.3,0.2),false)
  800. MakeForm(Part,"Wedge")
  801. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  802. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.3,0.3),false)
  803. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  804. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.5,0.5),false)
  805. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  806. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.4,0.4,0.4),false)
  807. MakeForm(Part,"Cyl")
  808. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  809. for i = 1, 8 do
  810. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0,0.35,0.41),false)
  811. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  812. end
  813. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0.38,0.41,0.38),false)
  814. MakeForm(Part,"Cyl")
  815. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  816. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.37,0.5,0.37),false)
  817. MakeForm(Part,"Ball")
  818. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  819. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.7,0.4),false)
  820. MakeForm(Part,"Wedge")
  821. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  822. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.4,0.2),false)
  823. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  824. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.35,0.35,0.35),false)
  825. MakeForm(Part,"Cyl")
  826. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  827. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.5,0.1,0.5),false)
  828. MakeForm(Part,"Cyl")
  829. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  830. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.5,0.1,0.45),false)
  831. MakeForm(Part,"Cyl")
  832. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  833. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.5,0.2),false)
  834. MakeForm(Part,"Wedge")
  835. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  836. local LASTPART = Handle
  837. for i = 1, 10 do
  838. if LASTPART == Handle then
  839. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.1,0.2,0),false)
  840. LASTPART = Part
  841. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  842. else
  843. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.1,0.05,0),false)
  844. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  845. LASTPART = Part
  846. end
  847. end
  848.  
  849. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.15,2,0.15),false)
  850. MakeForm(Barrel,"Cyl")
  851. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  852. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.25,1,0.25),false)
  853. MakeForm(Part,"Cyl")
  854. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  855. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0,0.1,0.2),false)
  856. MakeForm(Part,"Wedge")
  857. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  858. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0.125,0,0.125),false)
  859. MakeForm(Hole,"Cyl")
  860. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  861. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0,0,0),false)
  862. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  863. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  864. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Brown", "Eye", VT(0,0,0),false)
  865. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  866. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  867. coroutine.resume(coroutine.create(function()
  868. while wait() do
  869. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  870. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  871. end
  872. end))
  873.  
  874. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  875. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  876.  
  877. for _, c in pairs(Weapon:GetDescendants()) do
  878. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  879. c.Material = "Glass"
  880. c.Color = C3(0,0,0)
  881. elseif c.ClassName == "Part" and c.Name == "Eye" then
  882. c.Color = C3(1,0,0)
  883. c.Material = "Neon"
  884. end
  885. end
  886.  
  887. Weapon.Parent = Character
  888. for _, c in pairs(Weapon:GetChildren()) do
  889. if c.ClassName == "Part" then
  890. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  891. end
  892. end
  893.  
  894. local SKILLTEXTCOLOR = C3(1,0,0)
  895. local SKILLFONT = "Antique"
  896. local SKILLTEXTSIZE = 7
  897.  
  898. Humanoid.Died:connect(function()
  899. ATTACK = true
  900. end)
  901.  
  902. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  903. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  904. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  905. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  906. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  907. ]]
  908. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  909. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  910. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  911. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  912. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  913. ]]
  914. function printbye(Name)
  915. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  916. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  917. end
  918.  
  919. workspace.ChildAdded:connect(function(instance)
  920. for BANISH = 1, #TOBANISH do
  921. if TOBANISH[BANISH] ~= nil then
  922. if instance.Name == TOBANISH[BANISH] then
  923. coroutine.resume(coroutine.create(function()
  924. printbye(instance.Name)
  925. instance:ClearAllChildren()
  926. Debris:AddItem(instance,0.0005)
  927. end))
  928. end
  929. end
  930. end
  931. end)
  932.  
  933. --//=================================\\
  934. --|| DAMAGING
  935. --\\=================================//
  936.  
  937. function Banish(Foe)
  938. if Foe then
  939. coroutine.resume(coroutine.create(function()
  940. --if game.Players:FindFirstChild(Foe.Name) then
  941. table.insert(TOBANISH,Foe.Name)
  942. printbye(Foe.Name)
  943. --end
  944. Foe.Archivable = true
  945. local CLONE = Foe:Clone()
  946. Foe:Destroy()
  947. CLONE.Parent = Effects
  948. CLONE:BreakJoints()
  949. local MATERIALS = {"Glass","Neon"}
  950. for _, c in pairs(CLONE:GetDescendants()) do
  951. if c:IsA("BasePart") then
  952. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  953. CreateSound(340722848, c, 10, 1, false)
  954. end
  955. c.Anchored = true
  956. c.Transparency = c.Transparency + 0.2
  957. c.Material = MATERIALS[MRANDOM(1,2)]
  958. c.Color = C3(1,0,0)
  959. if c.ClassName == "MeshPart" then
  960. c.TextureID = ""
  961. end
  962. if c:FindFirstChildOfClass("SpecialMesh") then
  963. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  964. end
  965. if c:FindFirstChildOfClass("Decal") then
  966. c:FindFirstChildOfClass("Decal"):remove()
  967. end
  968. c.Name = "Banished"
  969. c.CanCollide = false
  970. else
  971. c:remove()
  972. end
  973. end
  974. local A = false
  975. for i = 1, 35 do
  976. if A == false then
  977. A = true
  978. elseif A == true then
  979. A = false
  980. end
  981. for _, c in pairs(CLONE:GetDescendants()) do
  982. if c:IsA("BasePart") then
  983. c.Anchored = true
  984. c.Material = MATERIALS[MRANDOM(1,2)]
  985. c.Transparency = c.Transparency + 0.8/35
  986. if A == false then
  987. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  988. elseif A == true then
  989. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  990. end
  991. end
  992. end
  993. Swait()
  994. end
  995. CLONE:remove()
  996. end))
  997. end
  998. end
  999.  
  1000. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1001. local CHILDREN = workspace:GetDescendants()
  1002. for index, CHILD in pairs(CHILDREN) do
  1003. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1004. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1005. if HUM then
  1006. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1007. if TORSO then
  1008. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1009. if ISBANISH == true then
  1010. Banish(CHILD)
  1011. else
  1012. if ISBANISH == "Gravity" then
  1013. HUM.PlatformStand = true
  1014. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1015. local grav = Instance.new("BodyPosition",TORSO)
  1016. grav.D = 15
  1017. grav.P = 20000
  1018. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1019. grav.position = TORSO.Position
  1020. grav.Name = "V3BanishForce"..Player.Name
  1021. else
  1022. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1023. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1024. end
  1025. else
  1026. HUM.PlatformStand = false
  1027. end
  1028. end
  1029. elseif ISBANISH == "Gravity" then
  1030. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1031. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1032. HUM.PlatformStand = false
  1033. end
  1034. end
  1035. end
  1036. end
  1037. end
  1038. end
  1039. end
  1040.  
  1041. --//=================================\\
  1042. --|| ATTACK FUNCTIONS AND STUFF
  1043. --\\=================================//
  1044.  
  1045. function Banisher_Bullet()
  1046. ATTACK = true
  1047. Rooted = false
  1048. for i=0, 0.4, 0.1 / Animation_Speed do
  1049. Swait()
  1050. turnto(Mouse.Hit.p)
  1051. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1052. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1053. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1054. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1055. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1056. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1057. end
  1058. repeat
  1059. for i=0, 0.2, 0.1 / Animation_Speed do
  1060. Swait()
  1061. turnto(Mouse.Hit.p)
  1062. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1063. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1064. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1065. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1066. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1067. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1068. end
  1069. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1070. SpawnTrail(Hole.Position,POS)
  1071. if HIT ~= nil then
  1072. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1073. Banish(HIT.Parent)
  1074. end
  1075. end
  1076. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1077. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1078. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1079. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1080. for i=0, 0.3, 0.1 / Animation_Speed do
  1081. Swait()
  1082. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1083. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1084. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1085. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1086. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1087. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1088. end
  1089. until KEYHOLD == false
  1090. ATTACK = false
  1091. Rooted = false
  1092. end
  1093.  
  1094. function AttackTemplate()
  1095. ATTACK = true
  1096. Rooted = false
  1097. for i=0, 1, 0.1 / Animation_Speed do
  1098. Swait()
  1099. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1100. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1101. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1102. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1103. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1104. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1105. end
  1106. ATTACK = false
  1107. Rooted = false
  1108. end
  1109.  
  1110.  
  1111. --//=================================\\
  1112. --|| ASSIGN THINGS TO KEYS
  1113. --\\=================================//
  1114.  
  1115. function MouseDown(Mouse)
  1116. if ATTACK == false then
  1117. end
  1118. end
  1119.  
  1120. function MouseUp(Mouse)
  1121. HOLD = false
  1122. end
  1123.  
  1124. function KeyDown(Key)
  1125. KEYHOLD = true
  1126. if Key == "z" and ATTACK == false then
  1127. Banisher_Bullet()
  1128. end
  1129.  
  1130. if Key == "b" and ATTACK == false then
  1131. end
  1132.  
  1133. if Key == "c" and ATTACK == false then
  1134. end
  1135.  
  1136. if Key == "v" and ATTACK == false then
  1137. end
  1138.  
  1139. if Key == "x" and ATTACK == false then
  1140. end
  1141. end
  1142.  
  1143. function KeyUp(Key)
  1144. KEYHOLD = false
  1145. end
  1146.  
  1147. Mouse.Button1Down:connect(function(NEWKEY)
  1148. MouseDown(NEWKEY)
  1149. end)
  1150. Mouse.Button1Up:connect(function(NEWKEY)
  1151. MouseUp(NEWKEY)
  1152. end)
  1153. Mouse.KeyDown:connect(function(NEWKEY)
  1154. KeyDown(NEWKEY)
  1155. end)
  1156. Mouse.KeyUp:connect(function(NEWKEY)
  1157. KeyUp(NEWKEY)
  1158. end)
  1159.  
  1160. --//=================================\\
  1161. --\\=================================//
  1162.  
  1163.  
  1164. function unanchor()
  1165. if UNANCHOR == true then
  1166. g = Character:GetChildren()
  1167. for i = 1, #g do
  1168. if g[i].ClassName == "Part" then
  1169. g[i].Anchored = false
  1170. end
  1171. end
  1172. end
  1173. end
  1174.  
  1175.  
  1176. --//=================================\\
  1177. --|| WRAP THE WHOLE SCRIPT UP
  1178. --\\=================================//
  1179.  
  1180. Humanoid.Changed:connect(function(Jump)
  1181. if Jump == "Jump" and (Disable_Jump == true) then
  1182. Humanoid.Jump = false
  1183. end
  1184. end)
  1185.  
  1186. local CONNECT = nil
  1187.  
  1188. while true do
  1189. Swait()
  1190. ANIMATE.Parent = nil
  1191. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1192. Humanoid = IT("Humanoid",Character)
  1193. end
  1194. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1195. v:Stop();
  1196. end
  1197. SINE = SINE + CHANGE
  1198. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1199. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1200. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1201. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1202. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1203. 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)
  1204. 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)
  1205. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1206. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1207. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1208. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1209. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1210. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1211. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1212. end
  1213. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1214. ANIM = "Jump"
  1215. if ATTACK == false then
  1216. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1217. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1218. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1219. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1220. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1221. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1222. end
  1223. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1224. ANIM = "Fall"
  1225. if ATTACK == false then
  1226. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1227. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1228. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1229. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1230. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1231. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1232. end
  1233. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1234. ANIM = "Idle"
  1235. if ATTACK == false then
  1236. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1237. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1238. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1239. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1240. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1241. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1242. end
  1243. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1244. ANIM = "Walk"
  1245. if ATTACK == false then
  1246. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1247. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1248. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1249. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1250. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1251. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1252. end
  1253. end
  1254. unanchor()
  1255. Humanoid.MaxHealth = "inf"
  1256. Humanoid.Health = "inf"
  1257. if Rooted == false then
  1258. Disable_Jump = false
  1259. Humanoid.WalkSpeed = Speed
  1260. elseif Rooted == true then
  1261. Disable_Jump = true
  1262. Humanoid.WalkSpeed = 0
  1263. end
  1264. sick.Parent = Torso
  1265. sick:resume()
  1266. sick.Volume = 5
  1267. sick.Pitch = 1
  1268. sick.SoundId = "131238032"
  1269. sick.Name = "BanishV3Music"
  1270. end
  1271.  
  1272. --//=================================\\
  1273. --\\=================================//
  1274.  
  1275. --//=================================\\
  1276. --|| CHARACTER CRAP
  1277. --\\=================================//
  1278. --shirt: 43803419
  1279. --pants: 675588491
  1280. Humanoid.Name = 'ur mom gay you spy ' ..MRANDOM(-569242,46126) * 1000000
  1281. Humanoid.MaxHealth = math.huge
  1282. wait()
  1283. local ff = Instance.new('ForceField') ff.Visible = false
  1284. Humanoid.Health = math.huge
  1285. for i,v in pairs(Character:GetChildren()) do
  1286. if v:IsA'Shirt' or v:IsA'Pants' then
  1287. v:Destroy()
  1288. end
  1289. end
  1290. local pants = Instance.new('Pants', Character)
  1291. pants.PantsTemplate = 'rbxassetid://675588491'
  1292. pants.Name = 'Pants'
  1293. local shirt = Instance.new('Shirt', Character)
  1294. shirt.ShirtTemplate = 'rbxassetid://43803419'
  1295. shirt.Name = 'Shirt'
  1296.  
  1297. --//=================================\\
  1298. --|| HAIR
  1299. --\\=================================//
  1300.  
  1301. --[[ Sleep well, hair.
  1302. local Hair = Instance.new('Part', Character)
  1303. Hair:BreakJoints()
  1304. GiveProperties(Hair, {Name = 'aaaeee', Anchored = true, FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(2, 0.800000012, 2),CanCollide = false,Locked = true,})
  1305. local Mesh = Instance.New('SpecialMesh', Hair)
  1306. GiveProperties(Mesh, {Scale = Vector3.new(1.04999995*Player_Size, 1.04999995*Player_Size, 1.04999995*Player_Size),MeshId = "rbxassetid://23594638",TextureId = "rbxassetid://25561109",MeshType = Enum.MeshType.FileMesh,})
  1307. CreateWeldOrSnapOrMotor('Weld',Hair, Hair, Head, CFrame.new(0, 0, 0, -1, -1.77635684e-15, -7.79469364e-15, -1.9275158e-15, 0.998754859, -0.049887754, 7.88173305e-15, -0.049887754, -0.998754859), CFrame.new(0, 0.419681549*Player_Size, 0.172475815*Player_Size, -1, 0, 0, 0, 1, 0, 0, 0, -1))
  1308. ]]
  1309.  
  1310.  
  1311. --//====================================================\\--
  1312. --|| END OF SCRIPT
  1313. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement