asdf2345

Untitled

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