Advertisement
Scripter_Tix

Untitled

Jul 10th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 103.08 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6. script.Name = "BANISHER"
  7. --//====================================================\\--
  8. --|| CREATED BY SHACKLUSTER
  9. --|| EDIT BY NAME CLAN
  10. --|| TRANSFORM TO BANISHER GUN V.4
  11. --|| BY nguyenducloi123
  12. --\\====================================================//--
  13.  
  14. wait(0.2)
  15.  
  16. Player = game:GetService("Players").LocalPlayer
  17. PlayerGui = Player.PlayerGui
  18. chara = Player.Character
  19. Character = Player.Character
  20. Cam = workspace.CurrentCamera
  21. Backpack = Player.Backpack
  22. Character = Player.Character
  23. Humanoid = Character.Humanoid
  24. Mouse = Player:GetMouse()
  25. RootPart = Character["HumanoidRootPart"]
  26. Torso = Character["Torso"]
  27. Head = Character["Head"]
  28. RightArm = Character["Right Arm"]
  29. LeftArm = Character["Left Arm"]
  30. RightLeg = Character["Right Leg"]
  31. LeftLeg = Character["Left Leg"]
  32. RootJoint = RootPart["RootJoint"]
  33. Neck = Torso["Neck"]
  34. RightShoulder = Torso["Right Shoulder"]
  35. LeftShoulder = Torso["Left Shoulder"]
  36. RightHip = Torso["Right Hip"]
  37. LeftHip = Torso["Left Hip"]
  38. local sick = Instance.new("Sound",Character)
  39. sick.Parent = Character
  40. sick.SoundId = "rbxassetid://1608398085"
  41. sick.Looped = true
  42. sick.Pitch = 1
  43. sick.Volume = 7
  44. sick:Play()
  45. Character.Archivable = true
  46. Humanoid.DisplayDistanceType = "None"
  47.  
  48. local naeeym2 = Instance.new("BillboardGui",Character)
  49. naeeym2.AlwaysOnTop = true
  50. naeeym2.Size = UDim2.new(5,35,2,35)
  51. naeeym2.StudsOffset = Vector3.new(0,3,0)
  52. naeeym2.Adornee = Character.Head
  53. naeeym2.Name = "Name"
  54. local tecks2 = Instance.new("TextLabel",naeeym2)
  55. tecks2.BackgroundTransparency = 1
  56. tecks2.TextScaled = true
  57. tecks2.BorderSizePixel = 0
  58. tecks2.Text = "β„‘π”ͺ π”žπ”£π”¨ π”ˆπ”‘π”¦π”±π”¦π”«π”€"
  59. tecks2.Font = "Code"
  60. tecks2.TextSize = 30
  61. tecks2.TextTransparency = 1
  62. tecks2.TextStrokeTransparency = 1
  63. tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
  64. tecks2.Size = UDim2.new(1,0,0.5,0)
  65. tecks2.Parent = naeeym2
  66.  
  67. IT = Instance.new
  68. CF = CFrame.new
  69. VT = Vector3.new
  70. RAD = math.rad
  71. C3 = Color3.new
  72. UD2 = UDim2.new
  73. BRICKC = BrickColor.new
  74. ANGLES = CFrame.Angles
  75. EULER = CFrame.fromEulerAnglesXYZ
  76. COS = math.cos
  77. ACOS = math.acos
  78. SIN = math.sin
  79. ASIN = math.asin
  80. ABS = math.abs
  81. MRANDOM = math.random
  82. FLOOR = math.floor
  83.  
  84. --//=================================\\
  85. --|| USEFUL VALUES
  86. --\\=================================//
  87.  
  88.  
  89.  
  90. --//=================================\\
  91. --\\=================================//
  92.  
  93.  
  94. --//=================================\\
  95. --|| CUSTOMIZATION
  96. --\\=================================//
  97.  
  98. Class_Name = "Sharpshooter"
  99. Weapon_Name = "Add-ons"
  100.  
  101. Custom_Color_1 = BRICKC("Really black"); --1st color for the weapon.
  102. Custom_Color_2 = BRICKC("Maroon"); --2nd color for the weapon.
  103.  
  104. Custom_Color_3 = BRICKC("Really red"); --Color for the abilities.
  105. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  106. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  107. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  108. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  109.  
  110. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  111. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  112. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  113. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  114. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  115.  
  116.  
  117. Player_Size = 1 --Size of the player.
  118. Animation_Speed = 3
  119. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  120.  
  121. local Speed = 20
  122. local Effects2 = {}
  123.  
  124. --//=================================\\
  125. --|| END OF CUSTOMIZATION
  126. --\\=================================//
  127.  
  128.  
  129. --//=================================\\
  130. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  131. --\\=================================//
  132.  
  133. ArtificialHB = Instance.new("BindableEvent", script)
  134. ArtificialHB.Name = "ArtificialHB"
  135.  
  136. script:WaitForChild("ArtificialHB")
  137.  
  138. frame = Frame_Speed
  139. tf = 0
  140. allowframeloss = false
  141. tossremainder = false
  142. lastframe = tick()
  143. script.ArtificialHB:Fire()
  144.  
  145. game:GetService("RunService").Heartbeat:connect(function(s, p)
  146. tf = tf + s
  147. if tf >= frame then
  148. if allowframeloss then
  149. script.ArtificialHB:Fire()
  150. lastframe = tick()
  151. else
  152. for i = 1, math.floor(tf / frame) do
  153. script.ArtificialHB:Fire()
  154. end
  155. lastframe = tick()
  156. end
  157. if tossremainder then
  158. tf = 0
  159. else
  160. tf = tf - frame * math.floor(tf / frame)
  161. end
  162. end
  163. end)
  164.  
  165. --//=================================\\
  166. --\\=================================//
  167.  
  168. --//=================================\\
  169. --|| SOME FUNCTIONS
  170. --\\=================================//
  171.  
  172. function Clerp(a, b, t)
  173. local qa = {QuaternionFromCFrame(a)}
  174. local qb = {QuaternionFromCFrame(b)}
  175. local ax, ay, az = a.x, a.y, a.z
  176. local bx, by, bz = b.x, b.y, b.z
  177. local _t = 1 - t
  178. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  179. end
  180.  
  181. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  182. local frame = IT("Frame")
  183. frame.BackgroundTransparency = TRANSPARENCY
  184. frame.BorderSizePixel = BORDERSIZEPIXEL
  185. frame.Position = POSITION
  186. frame.Size = SIZE
  187. frame.BackgroundColor3 = COLOR
  188. frame.BorderColor3 = BORDERCOLOR
  189. frame.Name = NAME
  190. frame.Parent = PARENT
  191. return frame
  192. end
  193.  
  194. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  195. local label = IT("TextLabel")
  196. label.BackgroundTransparency = 1
  197. label.Size = UD2(1, 0, 1, 0)
  198. label.Position = UD2(0, 0, 0, 0)
  199. label.TextColor3 = TEXTCOLOR
  200. label.TextStrokeTransparency = STROKETRANSPARENCY
  201. label.TextTransparency = TRANSPARENCY
  202. label.FontSize = TEXTFONTSIZE
  203. label.Font = TEXTFONT
  204. label.BorderSizePixel = BORDERSIZEPIXEL
  205. label.TextScaled = false
  206. label.Text = TEXT
  207. label.Name = NAME
  208. label.Parent = PARENT
  209. return label
  210. end
  211.  
  212. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  213. if FLOOR ~= nil then
  214. coroutine.resume(coroutine.create(function()
  215. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  216. PART.CFrame = CF(POSITION)
  217. for i = 1, 45 do
  218. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  219. RingPiece.Material = FLOOR.Material
  220. RingPiece.Color = FLOOR.Color
  221. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  222. Debris:AddItem(RingPiece,SWAIT)
  223. end
  224. PART:remove()
  225. end))
  226. end
  227. end
  228.  
  229. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  230. if FLOOR ~= nil then
  231. for i = 1, AMOUNT do
  232. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  233. DEBREE.Material = FLOOR.Material
  234. DEBREE.Color = FLOOR.Color
  235. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  236. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  237. coroutine.resume(coroutine.create(function()
  238. Swait(15)
  239. DEBREE.Parent = workspace
  240. DEBREE.CanCollide = true
  241. Debris:AddItem(DEBREE,SWAIT)
  242. end))
  243. end
  244. end
  245. end
  246.  
  247. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  248. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  249. end
  250.  
  251. function PositiveAngle(NUMBER)
  252. if NUMBER >= 0 then
  253. NUMBER = 0
  254. end
  255. return NUMBER
  256. end
  257.  
  258. function NegativeAngle(NUMBER)
  259. if NUMBER <= 0 then
  260. NUMBER = 0
  261. end
  262. return NUMBER
  263. end
  264.  
  265. function Swait(NUMBER)
  266. if NUMBER == 0 or NUMBER == nil then
  267. ArtificialHB.Event:wait()
  268. else
  269. for i = 1, NUMBER do
  270. ArtificialHB.Event:wait()
  271. end
  272. end
  273. end
  274.  
  275. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  276. local NEWMESH = IT(MESH)
  277. if MESH == "SpecialMesh" then
  278. NEWMESH.MeshType = MESHTYPE
  279. if MESHID ~= "nil" and MESHID ~= "" then
  280. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  281. end
  282. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  283. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  284. end
  285. end
  286. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  287. NEWMESH.Scale = SCALE
  288. NEWMESH.Parent = PARENT
  289. return NEWMESH
  290. end
  291.  
  292. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  293. local NEWPART = IT("Part")
  294. NEWPART.formFactor = FORMFACTOR
  295. NEWPART.Reflectance = REFLECTANCE
  296. NEWPART.Transparency = TRANSPARENCY
  297. NEWPART.CanCollide = false
  298. NEWPART.Locked = true
  299. NEWPART.Anchored = true
  300. if ANCHOR == false then
  301. NEWPART.Anchored = false
  302. end
  303. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  304. NEWPART.Name = NAME
  305. NEWPART.Size = SIZE
  306. NEWPART.Position = Torso.Position
  307. NEWPART.Material = MATERIAL
  308. NEWPART:BreakJoints()
  309. NEWPART.Parent = PARENT
  310. return NEWPART
  311. end
  312.  
  313. local function weldBetween(a, b)
  314. local weldd = Instance.new("ManualWeld")
  315. weldd.Part0 = a
  316. weldd.Part1 = b
  317. weldd.C0 = CFrame.new()
  318. weldd.C1 = b.CFrame:inverse() * a.CFrame
  319. weldd.Parent = a
  320. return weldd
  321. end
  322.  
  323.  
  324. function QuaternionFromCFrame(cf)
  325. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  326. local trace = m00 + m11 + m22
  327. if trace > 0 then
  328. local s = math.sqrt(1 + trace)
  329. local recip = 0.5 / s
  330. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  331. else
  332. local i = 0
  333. if m11 > m00 then
  334. i = 1
  335. end
  336. if m22 > (i == 0 and m00 or m11) then
  337. i = 2
  338. end
  339. if i == 0 then
  340. local s = math.sqrt(m00 - m11 - m22 + 1)
  341. local recip = 0.5 / s
  342. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  343. elseif i == 1 then
  344. local s = math.sqrt(m11 - m22 - m00 + 1)
  345. local recip = 0.5 / s
  346. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  347. elseif i == 2 then
  348. local s = math.sqrt(m22 - m00 - m11 + 1)
  349. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  350. end
  351. end
  352. end
  353.  
  354. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  355. local xs, ys, zs = x + x, y + y, z + z
  356. local wx, wy, wz = w * xs, w * ys, w * zs
  357. local xx = x * xs
  358. local xy = x * ys
  359. local xz = x * zs
  360. local yy = y * ys
  361. local yz = y * zs
  362. local zz = z * zs
  363. 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))
  364. end
  365.  
  366. function QuaternionSlerp(a, b, t)
  367. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  368. local startInterp, finishInterp;
  369. if cosTheta >= 0.0001 then
  370. if (1 - cosTheta) > 0.0001 then
  371. local theta = ACOS(cosTheta)
  372. local invSinTheta = 1 / SIN(theta)
  373. startInterp = SIN((1 - t) * theta) * invSinTheta
  374. finishInterp = SIN(t * theta) * invSinTheta
  375. else
  376. startInterp = 1 - t
  377. finishInterp = t
  378. end
  379. else
  380. if (1 + cosTheta) > 0.0001 then
  381. local theta = ACOS(-cosTheta)
  382. local invSinTheta = 1 / SIN(theta)
  383. startInterp = SIN((t - 1) * theta) * invSinTheta
  384. finishInterp = SIN(t * theta) * invSinTheta
  385. else
  386. startInterp = t - 1
  387. finishInterp = t
  388. end
  389. end
  390. 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
  391. end
  392.  
  393. function Clerp(a, b, t)
  394. local qa = {QuaternionFromCFrame(a)}
  395. local qb = {QuaternionFromCFrame(b)}
  396. local ax, ay, az = a.x, a.y, a.z
  397. local bx, by, bz = b.x, b.y, b.z
  398. local _t = 1 - t
  399. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  400. end
  401.  
  402. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  403. local frame = IT("Frame")
  404. frame.BackgroundTransparency = TRANSPARENCY
  405. frame.BorderSizePixel = BORDERSIZEPIXEL
  406. frame.Position = POSITION
  407. frame.Size = SIZE
  408. frame.BackgroundColor3 = COLOR
  409. frame.BorderColor3 = BORDERCOLOR
  410. frame.Name = NAME
  411. frame.Parent = PARENT
  412. return frame
  413. end
  414.  
  415. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  416. local label = IT("TextLabel")
  417. label.BackgroundTransparency = 1
  418. label.Size = UD2(1, 0, 1, 0)
  419. label.Position = UD2(0, 0, 0, 0)
  420. label.TextColor3 = TEXTCOLOR
  421. label.TextStrokeTransparency = STROKETRANSPARENCY
  422. label.TextTransparency = TRANSPARENCY
  423. label.FontSize = TEXTFONTSIZE
  424. label.Font = TEXTFONT
  425. label.BorderSizePixel = BORDERSIZEPIXEL
  426. label.TextScaled = false
  427. label.Text = TEXT
  428. label.Name = NAME
  429. label.Parent = PARENT
  430. return label
  431. end
  432.  
  433. function NoOutlines(PART)
  434. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  435. end
  436.  
  437. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  438. local NEWWELD = IT(TYPE)
  439. NEWWELD.Part0 = PART0
  440. NEWWELD.Part1 = PART1
  441. NEWWELD.C0 = C0
  442. NEWWELD.C1 = C1
  443. NEWWELD.Parent = PARENT
  444. return NEWWELD
  445. end
  446.  
  447. local S = IT("Sound")
  448. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  449. local NEWSOUND = nil
  450. coroutine.resume(coroutine.create(function()
  451. NEWSOUND = S:Clone()
  452. NEWSOUND.Parent = PARENT
  453. NEWSOUND.Volume = VOLUME
  454. NEWSOUND.Pitch = PITCH
  455. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  456. NEWSOUND:play()
  457. if DOESLOOP == true then
  458. NEWSOUND.Looped = true
  459. else
  460. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  461. NEWSOUND:remove()
  462. end
  463. end))
  464. return NEWSOUND
  465. end
  466.  
  467. function CFrameFromTopBack(at, top, back)
  468. local right = top:Cross(back)
  469. 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)
  470. end
  471.  
  472. --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})
  473. function WACKYEFFECT(Table)
  474. local TYPE = (Table.EffectType or "Sphere")
  475. local SIZE = (Table.Size or VT(1,1,1))
  476. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  477. local TRANSPARENCY = (Table.Transparency or 0)
  478. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  479. local CFRAME = (Table.CFrame or Torso.CFrame)
  480. local MOVEDIRECTION = (Table.MoveToPos or nil)
  481. local ROTATION1 = (Table.RotationX or 0)
  482. local ROTATION2 = (Table.RotationY or 0)
  483. local ROTATION3 = (Table.RotationZ or 0)
  484. local MATERIAL = (Table.Material or "Neon")
  485. local COLOR = (Table.Color or C3(1,1,1))
  486. local TIME = (Table.Time or 45)
  487. local SOUNDID = (Table.SoundID or nil)
  488. local SOUNDPITCH = (Table.SoundPitch or nil)
  489. local SOUNDVOLUME = (Table.SoundVolume or nil)
  490. coroutine.resume(coroutine.create(function()
  491. local PLAYSSOUND = false
  492. local SOUND = nil
  493. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  494. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  495. PLAYSSOUND = true
  496. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  497. end
  498. EFFECT.Color = COLOR
  499. local MSH = nil
  500. if TYPE == "Sphere" then
  501. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  502. elseif TYPE == "Block" then
  503. MSH = IT("BlockMesh",EFFECT)
  504. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  505. elseif TYPE == "Wave" then
  506. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  507. elseif TYPE == "Ring" then
  508. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  509. elseif TYPE == "Slash" then
  510. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  511. elseif TYPE == "Round Slash" then
  512. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  513. elseif TYPE == "Swirl" then
  514. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  515. elseif TYPE == "Skull" then
  516. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  517. elseif TYPE == "Crystal" then
  518. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  519. end
  520. if MSH ~= nil then
  521. local MOVESPEED = nil
  522. if MOVEDIRECTION ~= nil then
  523. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  524. end
  525. local GROWTH = SIZE - ENDSIZE
  526. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  527. if TYPE == "Block" then
  528. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  529. else
  530. EFFECT.CFrame = CFRAME
  531. end
  532. for LOOP = 1, TIME+1 do
  533. Swait()
  534. MSH.Scale = MSH.Scale - GROWTH/TIME
  535. if TYPE == "Wave" then
  536. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  537. end
  538. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  539. if TYPE == "Block" then
  540. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  541. else
  542. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  543. end
  544. if MOVEDIRECTION ~= nil then
  545. local ORI = EFFECT.Orientation
  546. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  547. EFFECT.Orientation = ORI
  548. end
  549. end
  550. if PLAYSSOUND == false then
  551. EFFECT:remove()
  552. else
  553. SOUND.Stopped:Connect(function()
  554. EFFECT:remove()
  555. end)
  556. end
  557. else
  558. if PLAYSSOUND == false then
  559. EFFECT:remove()
  560. else
  561. repeat Swait() until SOUND.Playing == false
  562. EFFECT:remove()
  563. end
  564. end
  565. end))
  566. end
  567.  
  568. local DECAL = IT("Decal")
  569. function MakeRing()
  570. local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Really red"), "MagicRing", VT(0, 0, 0), true)
  571. local MSH = IT("BlockMesh", RING)
  572. local TOP = DECAL:Clone()
  573. local BOTTOM = DECAL:Clone()
  574. TOP.Parent = RING
  575. BOTTOM.Parent = RING
  576. TOP.Face = "Top"
  577. BOTTOM.Face = "Bottom"
  578. TOP.Texture = "http://www.roblox.com/asset/?id=127817121"
  579. BOTTOM.Texture = "http://www.roblox.com/asset/?id=127817121"
  580. local function REMOVE()
  581. coroutine.resume(coroutine.create(function()
  582. local SIZE = MSH.Scale.X
  583. for i = 1, 35 do
  584. Swait()
  585. MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60
  586. TOP.Transparency = TOP.Transparency + 0.02857142857142857
  587. BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857
  588. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
  589. end
  590. RING:remove()
  591. end))
  592. end
  593. return RING, MSH, REMOVE
  594. end
  595.  
  596. function MakeForm(PART,TYPE)
  597. if TYPE == "Cyl" then
  598. local MSH = IT("CylinderMesh",PART)
  599. elseif TYPE == "Ball" then
  600. local MSH = IT("SpecialMesh",PART)
  601. MSH.MeshType = "Sphere"
  602. elseif TYPE == "Wedge" then
  603. local MSH = IT("SpecialMesh",PART)
  604. MSH.MeshType = "Wedge"
  605. end
  606. end
  607.  
  608. function SpawnTrail(FROM,TO,BIG)
  609. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  610. MakeForm(TRAIL,"Cyl")
  611. local DIST = (FROM - TO).Magnitude
  612. if BIG == true then
  613. TRAIL.Size = VT(0.5,DIST,0.5)
  614. else
  615. TRAIL.Size = VT(0.25,DIST,0.25)
  616. end
  617. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  618. coroutine.resume(coroutine.create(function()
  619. for i = 1, 5 do
  620. Swait()
  621. TRAIL.Transparency = TRAIL.Transparency + 0.1
  622. end
  623. TRAIL:remove()
  624. end))
  625. end
  626. --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})
  627. function WACKYEFFECT(Table)
  628. local TYPE = (Table.EffectType or "Sphere")
  629. local SIZE = (Table.Size or VT(1,1,1))
  630. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  631. local TRANSPARENCY = (Table.Transparency or 0)
  632. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  633. local CFRAME = (Table.CFrame or Torso.CFrame)
  634. local MOVEDIRECTION = (Table.MoveToPos or nil)
  635. local ROTATION1 = (Table.RotationX or 0)
  636. local ROTATION2 = (Table.RotationY or 0)
  637. local ROTATION3 = (Table.RotationZ or 0)
  638. local MATERIAL = (Table.Material or "Neon")
  639. local COLOR = (Table.Color or C3(1,1,1))
  640. local TIME = (Table.Time or 45)
  641. local SOUNDID = (Table.SoundID or nil)
  642. local SOUNDPITCH = (Table.SoundPitch or nil)
  643. local SOUNDVOLUME = (Table.SoundVolume or nil)
  644. coroutine.resume(coroutine.create(function()
  645. local PLAYSSOUND = false
  646. local SOUND = nil
  647. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true)
  648. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  649. PLAYSSOUND = true
  650. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  651. end
  652. EFFECT.Color = COLOR
  653. local MSH = nil
  654. if TYPE == "Sphere" then
  655. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  656. elseif TYPE == "Block" then
  657. MSH = IT("BlockMesh",EFFECT)
  658. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  659. elseif TYPE == "Wave" then
  660. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  661. elseif TYPE == "Ring" then
  662. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  663. elseif TYPE == "Slash" then
  664. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  665. elseif TYPE == "Round Slash" then
  666. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  667. elseif TYPE == "Swirl" then
  668. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  669. elseif TYPE == "Skull" then
  670. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  671. elseif TYPE == "Crystal" then
  672. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  673. end
  674. if MSH ~= nil then
  675. local MOVESPEED = nil
  676. if MOVEDIRECTION ~= nil then
  677. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  678. end
  679. local GROWTH = SIZE - ENDSIZE
  680. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  681. if TYPE == "Block" then
  682. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  683. else
  684. EFFECT.CFrame = CFRAME
  685. end
  686. for LOOP = 1, TIME+1 do
  687. Swait()
  688. MSH.Scale = MSH.Scale - GROWTH/TIME
  689. if TYPE == "Wave" then
  690. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  691. end
  692. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  693. if TYPE == "Block" then
  694. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  695. else
  696. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  697. end
  698. if MOVEDIRECTION ~= nil then
  699. local ORI = EFFECT.Orientation
  700. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  701. EFFECT.Orientation = ORI
  702. end
  703. end
  704. if PLAYSSOUND == false then
  705. EFFECT:remove()
  706. else
  707. SOUND.Stopped:Connect(function()
  708. EFFECT:remove()
  709. end)
  710. end
  711. else
  712. if PLAYSSOUND == false then
  713. EFFECT:remove()
  714. else
  715. repeat Swait() until SOUND.Playing == false
  716. EFFECT:remove()
  717. end
  718. end
  719. end))
  720. end
  721.  
  722. function MakeForm(PART,TYPE)
  723. if TYPE == "Cyl" then
  724. local MSH = IT("CylinderMesh",PART)
  725. elseif TYPE == "Ball" then
  726. local MSH = IT("SpecialMesh",PART)
  727. MSH.MeshType = "Sphere"
  728. elseif TYPE == "Wedge" then
  729. local MSH = IT("SpecialMesh",PART)
  730. MSH.MeshType = "Wedge"
  731. end
  732. end
  733.  
  734. function SpawnTrail(FROM,TO,BIG)
  735. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  736. MakeForm(TRAIL,"Cyl")
  737. local DIST = (FROM - TO).Magnitude
  738. if BIG == true then
  739. TRAIL.Size = VT(0.5,DIST,0.5)
  740. else
  741. TRAIL.Size = VT(0.25,DIST,0.25)
  742. end
  743. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  744. coroutine.resume(coroutine.create(function()
  745. for i = 1, 5 do
  746. Swait()
  747. TRAIL.Transparency = TRAIL.Transparency + 0.1
  748. end
  749. TRAIL:remove()
  750. end))
  751. end
  752.  
  753. function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
  754. local TORSO = Torso
  755. local HUM = Humanoid
  756. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  757. coroutine.wrap(function()
  758. VT = Vector3.new
  759. MRANDOM = math.random
  760. local A = TIME
  761. local B = INTENSITY
  762. local C = true
  763. local HUMANOID = Humanoid
  764. local TIMER = A or 35
  765. local SHAKE = B or 5
  766. local FADE = C or true
  767. if HUMANOID then
  768. local FADER = SHAKE / TIMER
  769. for i = 1, TIMER do
  770. wait()
  771. HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10)
  772. end
  773. HUMANOID.CameraOffset = VT(0, 0, 0)
  774. end
  775.  
  776. end)()
  777. end
  778. end
  779.  
  780. function chatfunc(text)
  781. local chat = coroutine.wrap(function()
  782. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  783. Character:FindFirstChild("TalkingBillBoard"):destroy()
  784. end
  785. local Bill = Instance.new("BillboardGui",Character)
  786. Bill.Size = UDim2.new(0,100,0,40)
  787. Bill.StudsOffset = Vector3.new(0,3,0)
  788. Bill.Adornee = Character.Head
  789. Bill.Name = "TalkingBillBoard"
  790. local Hehe = Instance.new("TextLabel",Bill)
  791. Hehe.BackgroundTransparency = 1
  792. Hehe.BorderSizePixel = 0
  793. Hehe.Text = ""
  794. Hehe.Font = "Bodoni"
  795. Hehe.TextSize = 40
  796. Hehe.TextStrokeTransparency = 0
  797. Hehe.Size = UDim2.new(1,0,0.5,0)
  798. coroutine.resume(coroutine.create(function()
  799. while Hehe ~= nil do
  800. Swait()
  801. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  802. Hehe.Rotation = math.random(-2.5,2.5)
  803. Hehe.TextColor3 = Color3.new(MRANDOM(55,255),0,0)
  804. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  805. end
  806. end))
  807. for i = 1,string.len(text),1 do
  808. Swait()
  809. Hehe.Text = string.sub(text,1,i)
  810. end
  811. Swait(90)--Re[math.random(1, 93)]
  812. for i = 0, 1, .025 do
  813. Swait()
  814. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  815. Hehe.TextStrokeTransparency = i
  816. Hehe.TextTransparency = i
  817. end
  818. Bill:Destroy()
  819. end)
  820. chat()
  821. end
  822.  
  823. Debris = game:GetService("Debris")
  824.  
  825. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  826. local DIRECTION = CF(StartPos,EndPos).lookVector
  827. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  828. end
  829.  
  830. function turnto(position)
  831. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  832. end
  833.  
  834. --//=================================\\
  835. --|| RAGDOLL STUFF
  836. --\\=================================//
  837.  
  838. function recurse(root,callback,i)
  839. i= i or 0
  840. for _,v in pairs(root:GetChildren()) do
  841. i = i + 1
  842. callback(i,v)
  843.  
  844. if #v:GetChildren() > 0 then
  845. i = recurse(v,callback,i)
  846. end
  847. end
  848.  
  849. return i
  850. end
  851.  
  852. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  853. attachmentName = attachmentName.."RigAttachment"
  854. local constraint = Instance.new(className.."Constraint")
  855. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  856. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  857. constraint.Name = "RagdollConstraint"..part1.Name
  858.  
  859. for _,propertyData in next,properties or {} do
  860. constraint[propertyData[1]] = propertyData[2]
  861. end
  862.  
  863. constraint.Parent = character
  864. end
  865.  
  866. function getAttachment0(character, attachmentName)
  867. for _,child in next,character:GetChildren() do
  868. local attachment = child:FindFirstChild(attachmentName)
  869. if attachment then
  870. return attachment
  871. end
  872. end
  873. end
  874.  
  875. function ArtificialHitbox(Part)
  876. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  877. HITBOX.CanCollide = true
  878. HITBOX.CFrame = Part.CFrame
  879. weldBetween(Part,HITBOX)
  880. end
  881.  
  882. function R15Ragdoll(character,KeepArms)
  883. character:BreakJoints()
  884. coroutine.resume(coroutine.create(function()
  885. recurse(character, function(_,v)
  886. if v:IsA("Attachment") then
  887. v.Axis = Vector3.new(0, 1, 0)
  888. v.SecondaryAxis = Vector3.new(0, 0, 1)
  889. v.Rotation = Vector3.new(0, 0, 0)
  890. end
  891. end)
  892. for _,child in next,character:GetChildren() do
  893. if child:IsA("Accoutrement") then
  894. for _,part in next,child:GetChildren() do
  895. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  896. local attachment1 = part:FindFirstChildOfClass("Attachment")
  897. local attachment0 = getAttachment0(character,attachment1.Name)
  898. if attachment0 and attachment1 then
  899. local constraint = Instance.new("HingeConstraint")
  900. constraint.Attachment0 = attachment0
  901. constraint.Attachment1 = attachment1
  902. constraint.LimitsEnabled = true
  903. constraint.UpperAngle = 0
  904. constraint.LowerAngle = 0
  905. constraint.Parent = character
  906. end
  907. ArtificialHitbox(part)
  908. elseif part.Name == "HumanoidRootPart" then
  909. part:remove()
  910. end
  911. end
  912. end
  913. end
  914.  
  915. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  916. {"LimitsEnabled",true};
  917. {"UpperAngle",5};
  918. })
  919. if character:FindFirstChild("Head") then
  920. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  921. {"LimitsEnabled",true};
  922. {"UpperAngle",15};
  923. })
  924. end
  925.  
  926. local handProperties = {
  927. {"LimitsEnabled", true};
  928. {"UpperAngle",0};
  929. {"LowerAngle",0};
  930. }
  931. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  932. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  933.  
  934. local shinProperties = {
  935. {"LimitsEnabled", true};
  936. {"UpperAngle", 0};
  937. {"LowerAngle", -75};
  938. }
  939. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  940. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  941.  
  942. local footProperties = {
  943. {"LimitsEnabled", true};
  944. {"UpperAngle", 15};
  945. {"LowerAngle", -45};
  946. }
  947. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  948. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  949. if KeepArms == true then
  950. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  951. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  952. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  953. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  954. end
  955. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  956. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  957. Debris:AddItem(character,5)
  958. end))
  959. end
  960.  
  961. function Ragdoll(Character2,CharTorso,KeepArms)
  962. coroutine.resume(coroutine.create(function()
  963. Character2:BreakJoints()
  964. local hum = Character2:findFirstChild("Humanoid")
  965. hum:remove()
  966. local function Scan(ch)
  967. local e
  968. for e = 1,#ch do
  969. Scan(ch[e]:GetChildren())
  970. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  971. ch[e]:remove()
  972. end
  973. end
  974. end
  975. local NEWHUM = IT("Humanoid")
  976. NEWHUM.Name = "Corpse"
  977. NEWHUM.Health = 0
  978. NEWHUM.MaxHealth = 0
  979. NEWHUM.PlatformStand = true
  980. NEWHUM.Parent = Character2
  981. NEWHUM.DisplayDistanceType = "None"
  982.  
  983. local ch = Character2:GetChildren()
  984. local i
  985. for i = 1,#ch do
  986. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  987. ch[i]:remove()
  988. end
  989. end
  990.  
  991. local Torso2 = Character2.Torso
  992. local movevector = Vector3.new()
  993.  
  994. if Torso2 then
  995. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  996. local Head = Character2:FindFirstChild("Head")
  997. if Head then
  998. local Neck = Instance.new("Weld")
  999. Neck.Name = "Neck"
  1000. Neck.Part0 = Torso2
  1001. Neck.Part1 = Head
  1002. Neck.C0 = CFrame.new(0, 1.5, 0)
  1003. Neck.C1 = CFrame.new()
  1004. Neck.Parent = Torso2
  1005.  
  1006. end
  1007. local Limb = Character2:FindFirstChild("Right Arm")
  1008. if Limb and KeepArms == true then
  1009.  
  1010. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1011. local Joint = Instance.new("Glue")
  1012. Joint.Name = "RightShoulder"
  1013. Joint.Part0 = Torso2
  1014. Joint.Part1 = Limb
  1015. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1016. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1017. Joint.Parent = Torso2
  1018.  
  1019. local B = Instance.new("Part")
  1020. B.TopSurface = 0
  1021. B.BottomSurface = 0
  1022. B.formFactor = "Symmetric"
  1023. B.Size = Vector3.new(1, 1, 1)
  1024. B.Transparency = 1
  1025. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1026. B.Parent = Character2
  1027. local W = Instance.new("Weld")
  1028. W.Part0 = Limb
  1029. W.Part1 = B
  1030. W.C0 = CFrame.new(0, -0.5, 0)
  1031. W.Parent = Limb
  1032.  
  1033. end
  1034. local Limb = Character2:FindFirstChild("Left Arm")
  1035. if Limb and KeepArms == true then
  1036.  
  1037. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1038. local Joint = Instance.new("Glue")
  1039. Joint.Name = "LeftShoulder"
  1040. Joint.Part0 = Torso2
  1041. Joint.Part1 = Limb
  1042. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1043. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1044. Joint.Parent = Torso2
  1045.  
  1046. local B = Instance.new("Part")
  1047. B.TopSurface = 0
  1048. B.BottomSurface = 0
  1049. B.formFactor = "Symmetric"
  1050. B.Size = Vector3.new(1, 1, 1)
  1051. B.Transparency = 1
  1052. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1053. B.Parent = Character2
  1054. local W = Instance.new("Weld")
  1055. W.Part0 = Limb
  1056. W.Part1 = B
  1057. W.C0 = CFrame.new(0, -0.5, 0)
  1058. W.Parent = Limb
  1059.  
  1060. end
  1061. local Limb = Character2:FindFirstChild("Right Leg")
  1062. if Limb then
  1063.  
  1064. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1065. local Joint = Instance.new("Glue")
  1066. Joint.Name = "RightHip"
  1067. Joint.Part0 = Torso2
  1068. Joint.Part1 = Limb
  1069. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1070. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1071. Joint.Parent = Torso2
  1072.  
  1073. local B = Instance.new("Part")
  1074. B.TopSurface = 0
  1075. B.BottomSurface = 0
  1076. B.formFactor = "Symmetric"
  1077. B.Size = Vector3.new(1, 1, 1)
  1078. B.Transparency = 1
  1079. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1080. B.Parent = Character2
  1081. local W = Instance.new("Weld")
  1082. W.Part0 = Limb
  1083. W.Part1 = B
  1084. W.C0 = CFrame.new(0, -0.5, 0)
  1085. W.Parent = Limb
  1086.  
  1087. end
  1088. local Limb = Character2:FindFirstChild("Left Leg")
  1089. if Limb then
  1090.  
  1091. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1092. local Joint = Instance.new("Glue")
  1093. Joint.Name = "LeftHip"
  1094. Joint.Part0 = Torso2
  1095. Joint.Part1 = Limb
  1096. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1097. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1098. Joint.Parent = Torso2
  1099.  
  1100. local B = Instance.new("Part")
  1101. B.TopSurface = 0
  1102. B.BottomSurface = 0
  1103. B.formFactor = "Symmetric"
  1104. B.Size = Vector3.new(1, 1, 1)
  1105. B.Transparency = 1
  1106. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1107. B.Parent = Character2
  1108. local W = Instance.new("Weld")
  1109. W.Part0 = Limb
  1110. W.Part1 = B
  1111. W.C0 = CFrame.new(0, -0.5, 0)
  1112. W.Parent = Limb
  1113.  
  1114. end
  1115. --[
  1116. local Bar = Instance.new("Part")
  1117. Bar.TopSurface = 0
  1118. Bar.BottomSurface = 0
  1119. Bar.formFactor = "Symmetric"
  1120. Bar.Size = Vector3.new(1, 1, 1)
  1121. Bar.Transparency = 1
  1122. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1123. Bar.Parent = Character2
  1124. local Weld = Instance.new("Weld")
  1125. Weld.Part0 = Torso2
  1126. Weld.Part1 = Bar
  1127. Weld.C0 = CFrame.new(0, 0.5, 0)
  1128. Weld.Parent = Torso2
  1129. --]]
  1130. end
  1131. Character2.Parent = workspace
  1132. Debris:AddItem(Character2,5)
  1133.  
  1134. return Character2,Torso2
  1135. end))
  1136. end
  1137.  
  1138. --//=================================\\
  1139. --|| WEAPON CREATION
  1140. --\\=================================//
  1141.  
  1142. local Particle = IT("ParticleEmitter",nil)
  1143. Particle.Enabled = false
  1144. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1145. Particle.LightEmission = 0.5
  1146. Particle.Rate = 250
  1147. Particle.ZOffset = 0.2
  1148. Particle.Rotation = NumberRange.new(-180, 180)
  1149. Particle.RotSpeed = NumberRange.new(-180, 180)
  1150. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1151. Particle.Color = ColorSequence.new(C3(1,0,0),C3(1,0,0))
  1152.  
  1153. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1154. function ParticleEmitter(Table)
  1155. local PRTCL = Particle:Clone()
  1156. local Speed = Table.Speed or 5
  1157. local Drag = Table.Drag or 0
  1158. local Size1 = Table.Size1 or 1
  1159. local Size2 = Table.Size2 or 5
  1160. local Lifetime1 = Table.Lifetime1 or 1
  1161. local Lifetime2 = Table.Lifetime2 or 1.5
  1162. local Parent = Table.Parent or Torso
  1163. local Emit = Table.Emit or 100
  1164. local Offset = Table.Offset or 360
  1165. local Acel = Table.Acel or VT(0,0,0)
  1166. local Enabled = Table.Enabled or false
  1167. PRTCL.Parent = Parent
  1168. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1169. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1170. PRTCL.Speed = NumberRange.new(Speed)
  1171. PRTCL.VelocitySpread = Offset
  1172. PRTCL.Drag = Drag
  1173. PRTCL.Acceleration = Acel
  1174. if Enabled == false then
  1175. PRTCL:Emit(Emit)
  1176. Debris:AddItem(PRTCL,Lifetime2)
  1177. else
  1178. PRTCL.Enabled = true
  1179. end
  1180. return PRTCL
  1181. end
  1182.  
  1183. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1184. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1185. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1186. MakeForm(Part,"Wedge")
  1187. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1188. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1189. MakeForm(Part,"Wedge")
  1190. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1191. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1192. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1193. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1194. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1195. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1196. MakeForm(Part,"Cyl")
  1197. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1198. for i = 1, 8 do
  1199. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1200. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1201. end
  1202. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1203. MakeForm(Part,"Cyl")
  1204. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1205. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1206. MakeForm(Part,"Ball")
  1207. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1208. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1209. MakeForm(Part,"Wedge")
  1210. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1211. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1212. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1213. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1214. MakeForm(Part,"Cyl")
  1215. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1216. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1217. MakeForm(Part,"Cyl")
  1218. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1219. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1220. MakeForm(Part,"Cyl")
  1221. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1222. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1223. MakeForm(Part,"Wedge")
  1224. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1225. local LASTPART = Handle
  1226. for i = 1, 10 do
  1227. if LASTPART == Handle then
  1228. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1229. LASTPART = Part
  1230. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1231. else
  1232. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1233. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1234. LASTPART = Part
  1235. end
  1236. end
  1237.  
  1238. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1239. MakeForm(Barrel,"Cyl")
  1240. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1241. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1242. MakeForm(Part,"Cyl")
  1243. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1244. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1245. MakeForm(Part,"Wedge")
  1246. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1247. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1248. MakeForm(Hole,"Cyl")
  1249. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1250. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1251. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1252. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1253. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1254. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1255. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1256. coroutine.resume(coroutine.create(function()
  1257. while wait() do
  1258. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1259. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1260. end
  1261. end))
  1262.  
  1263. ParticleEmitter({Speed = 0.35, Drag = 0, Size1 = 0.4, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(1,5,1)})
  1264. --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)})
  1265.  
  1266. for _, c in pairs(Weapon:GetDescendants()) do
  1267. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1268. c.Material = "Glass"
  1269. c.Color = C3(0,0,0)
  1270. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1271. c.Color = C3(1,0,0)
  1272. c.Material = "Neon"
  1273. end
  1274. end
  1275.  
  1276. Weapon.Parent = Character
  1277. for _, c in pairs(Weapon:GetChildren()) do
  1278. if c.ClassName == "Part" then
  1279. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1280. end
  1281. end
  1282.  
  1283. local SKILLTEXTCOLOR = C3(1,0,0)
  1284. local SKILLFONT = "Fantasy"
  1285. local SKILLTEXTSIZE = 5
  1286.  
  1287. Humanoid.Died:connect(function()
  1288. ATTACK = true
  1289. end)
  1290.  
  1291. 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")
  1292. 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")
  1293. 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")
  1294. 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")
  1295. 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")
  1296. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.100, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  1297.  
  1298. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] ВыстрСл", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1299. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[V] Π’ΠΎΠΆΠ΅ выстрСл (посильнСС)", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1300. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Иди ΡΠΏΠ°Ρ‚ΡŒ", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1301. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[C] ВыстрСл Π’ Π’ΠΎΠ·Π΄ΡƒΡ…", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1302. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[T] Π‘ΠΌΠ΅Ρ…", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1303. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[F] ΠŸΠΎΠΌΠΈΠ»ΡƒΠΉ", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 6")
  1304.  
  1305. function printbye(Name)
  1306. local MESSAGES = {"Stay until It's Over...... "}
  1307. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1308. end
  1309.  
  1310. workspace.ChildAdded:connect(function(instance)
  1311. for BANISH = 1, #TOBANISH do
  1312. if TOBANISH[BANISH] ~= nil then
  1313. if instance.Name == TOBANISH[BANISH] then
  1314. coroutine.resume(coroutine.create(function()
  1315. printbye(instance.Name)
  1316. instance:ClearAllChildren()
  1317. Debris:AddItem(instance,0.0005)
  1318. end))
  1319. end
  1320. end
  1321. end
  1322. end)
  1323.  
  1324. --//=================================\\
  1325. --|| DAMAGING
  1326. --\\=================================//
  1327.  
  1328. function ApplyDamage(Humanoid,Damage,OneShot)
  1329. Damage = Damage * DAMAGEMULTIPLIER
  1330. local DEAD = false
  1331. if Humanoid.Health < 2000 and OneShot == false then
  1332. if Humanoid.Health - Damage > 0 then
  1333. Humanoid.Health = Humanoid.Health - Damage
  1334. else
  1335. Humanoid.Parent:BreakJoints()
  1336. DEAD = true
  1337. end
  1338. else
  1339. DEAD = true
  1340. Humanoid.Parent:BreakJoints()
  1341. end
  1342. if DEAD == true then
  1343. local PARTS = {}
  1344. for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do
  1345. if CHILD:IsA("BasePart") then
  1346. table.insert(PARTS,CHILD)
  1347. end
  1348. end
  1349. coroutine.resume(coroutine.create(function()
  1350. wait(2)
  1351. repeat
  1352. Swait()
  1353. local PIECE = nil
  1354. if MRANDOM(1,5) == 1 then
  1355. for E = 1, #PARTS do
  1356. if MRANDOM(1,5) == 1 then
  1357. PIECE = PARTS[E]
  1358. table.remove(PARTS,E)
  1359. break
  1360. end
  1361. end
  1362. end
  1363. if PIECE ~= nil then
  1364. if PIECE.Name == "Head" then
  1365. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1366. else
  1367. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1368. end
  1369. PIECE:remove()
  1370. end
  1371. until #PARTS == 0
  1372. end))
  1373. end
  1374. end
  1375.  
  1376.  
  1377. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  1378. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1379. defence.Name = ("HitBy"..Player.Name)
  1380. game:GetService("Debris"):AddItem(defence, 0.001)
  1381. Damage = Damage * DAMAGEMULTIPLIER
  1382. if Humanoid.Health ~= 0 then
  1383. local CritChance = MRANDOM(1,100)
  1384. if Damage > Humanoid.Health then
  1385. Damage = math.ceil(Humanoid.Health)
  1386. if Damage == 0 then
  1387. Damage = 0.1
  1388. end
  1389. end
  1390. Humanoid.Health = Humanoid.Health - Damage
  1391. end
  1392. end
  1393.  
  1394. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  1395. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1396. defence.Name = ("HitBy"..Player.Name)
  1397. game:GetService("Debris"):AddItem(defence, 0.001)
  1398. Damage = Damage * DAMAGEMULTIPLIER
  1399. if Humanoid.Health ~= 0 then
  1400. local CritChance = MRANDOM(1,100)
  1401. if Damage > Humanoid.Health then
  1402. Damage = math.ceil(Humanoid.Health)
  1403. if Damage == 0 then
  1404. Damage = 0.1
  1405. end
  1406. end
  1407. Humanoid.Health = Humanoid.Health - Damage
  1408. end
  1409. end
  1410.  
  1411. function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1412. local CHILDREN = workspace:GetDescendants()
  1413. for index, CHILD in pairs(CHILDREN) do
  1414. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1415. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1416. if HUM then
  1417. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1418. if TORSO then
  1419. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1420. if INSTAKILL == true then
  1421. CHILD:BreakJoints()
  1422. else
  1423. local DMG = MRANDOM(MINDMG,MAXDMG)
  1424. ApplyDamage(HUM,DMG,TORSO)
  1425. end
  1426. if FLING > 0 then
  1427. for _, c in pairs(CHILD:GetChildren()) do
  1428. if c:IsA("BasePart") then
  1429. local bv = Instance.new("BodyVelocity")
  1430. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1431. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1432. bv.Parent = c
  1433. Debris:AddItem(bv,0.05)
  1434. end
  1435. end
  1436. end
  1437. end
  1438. end
  1439. end
  1440. end
  1441. end
  1442. end
  1443.  
  1444. function CameraEnshaking(Length, Intensity)
  1445. coroutine.resume(coroutine.create(function()
  1446. local intensity = 1 * Intensity
  1447. local rotM = 0.01 * Intensity
  1448. for i = 0, Length, 0.1 do
  1449. Swait()
  1450. intensity = intensity - 0.05 * Intensity / Length
  1451. rotM = rotM - 5.0E-4 * Intensity / Length
  1452. Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)))
  1453. Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM)
  1454. end
  1455. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1456. end))
  1457. end
  1458.  
  1459. function ApplyAoE4(POSITION,RANGE,BRUTAL)
  1460. local CHILDREN = workspace:GetDescendants()
  1461. for index, CHILD in pairs(CHILDREN) do
  1462. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1463. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1464. if HUM then
  1465. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1466. if TORSO then
  1467. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1468. if BRUTAL == true then
  1469. Kill(CHILD)
  1470. else
  1471. CHILD:BreakJoints()
  1472. end
  1473. end
  1474. end
  1475. end
  1476. end
  1477. end
  1478. end
  1479.  
  1480. function Kill(Char)
  1481. local NewCharacter = IT("Model",Effects)
  1482. NewCharacter.Name = "Ow im ded ;-;"
  1483. for _, c in pairs(Char:GetDescendants()) do
  1484. if c:IsA("BasePart") and c.Transparency == 0 then
  1485. c:BreakJoints()
  1486. c.Material = "Glass"
  1487. c.Color = C3(1,0,0)
  1488. c.CanCollide = true
  1489. c.Transparency = 0.3
  1490. if c:FindFirstChildOfClass("SpecialMesh") then
  1491. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1492. end
  1493. if c.Name == "Head" then
  1494. c:ClearAllChildren()
  1495. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1496. end
  1497. if c.ClassName == "MeshPart" then
  1498. c.TextureID = ""
  1499. end
  1500. if c:FindFirstChildOfClass("BodyPosition") then
  1501. c:FindFirstChildOfClass("BodyPosition"):remove()
  1502. end
  1503. if c:FindFirstChildOfClass("ParticleEmitter") then
  1504. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1505. end
  1506. c.Parent = NewCharacter
  1507. c.Name = "DeadPart"
  1508. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1509. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1510. end
  1511. end
  1512. Char:remove()
  1513. Debris:AddItem(NewCharacter,5)
  1514. end
  1515.  
  1516. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1517. local CHILDREN = workspace:GetDescendants()
  1518. for index, CHILD in pairs(CHILDREN) do
  1519. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1520. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1521. if HUM then
  1522. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1523. if TORSO then
  1524. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1525. if BRUTAL == true then
  1526. Kill(CHILD)
  1527. else
  1528. CHILD:BreakJoints()
  1529. end
  1530. end
  1531. end
  1532. end
  1533. end
  1534. end
  1535. end
  1536.  
  1537. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1538. local CHILDREN = workspace:GetDescendants()
  1539. for index, CHILD in pairs(CHILDREN) do
  1540. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1541. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1542. if HUM then
  1543. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1544. if TORSO then
  1545. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1546. if BRUTAL == true then
  1547. Kill(CHILD)
  1548. else
  1549. CHILD:BreakJoints()
  1550. end
  1551. end
  1552. end
  1553. end
  1554. end
  1555. end
  1556. end
  1557.  
  1558. function Banish(Foe)
  1559. if Foe then
  1560. coroutine.resume(coroutine.create(function()
  1561. --if game.Players:FindFirstChild(Foe.Name) then
  1562. table.insert(TOBANISH,Foe.Name)
  1563. printbye(Foe.Name)
  1564. --end
  1565. Foe.Archivable = true
  1566. local CLONE = Foe:Clone()
  1567. Foe:Destroy()
  1568. CLONE.Parent = Effects
  1569. CLONE:BreakJoints()
  1570. local MATERIALS = {"Glass","Neon"}
  1571. for _, c in pairs(CLONE:GetDescendants()) do
  1572. if c:IsA("BasePart") then
  1573. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1574. CreateSound(138271815, c, 10, 1, false)
  1575. end
  1576. c.Anchored = true
  1577. c.Transparency = c.Transparency + 0.2
  1578. c.Material = MATERIALS[MRANDOM(1,2)]
  1579. c.Color = C3(1,0,0)
  1580. if c.ClassName == "MeshPart" then
  1581. c.TextureID = ""
  1582. end
  1583. if c:FindFirstChildOfClass("SpecialMesh") then
  1584. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1585. end
  1586. if c:FindFirstChildOfClass("Decal") then
  1587. c:FindFirstChildOfClass("Decal"):remove()
  1588. end
  1589. c.Name = "Banished"
  1590. c.CanCollide = false
  1591. else
  1592. c:remove()
  1593. end
  1594. end
  1595. local A = false
  1596. for i = 1, 35 do
  1597. if A == false then
  1598. A = true
  1599. elseif A == true then
  1600. A = false
  1601. end
  1602. for _, c in pairs(CLONE:GetDescendants()) do
  1603. if c:IsA("BasePart") then
  1604. c.Anchored = true
  1605. c.Material = MATERIALS[MRANDOM(1,2)]
  1606. c.Transparency = c.Transparency + 0.8/35
  1607. if A == false then
  1608. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1609. elseif A == true then
  1610. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1611. end
  1612. end
  1613. end
  1614. Swait()
  1615. end
  1616. CLONE:remove()
  1617. end))
  1618. end
  1619. end
  1620.  
  1621.  
  1622. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1623. local CHILDREN = workspace:GetDescendants()
  1624. for index, CHILD in pairs(CHILDREN) do
  1625. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1626. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1627. if HUM then
  1628. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1629. if TORSO then
  1630. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1631. if ISBANISH == true then
  1632. Banish(CHILD)
  1633. else
  1634. if ISBANISH == "Gravity" then
  1635. HUM.PlatformStand = true
  1636. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1637. local grav = Instance.new("BodyPosition",TORSO)
  1638. grav.D = 15
  1639. grav.P = 20000
  1640. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1641. grav.position = TORSO.Position
  1642. grav.Name = "V3BanishForce"..Player.Name
  1643. else
  1644. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1645. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1646. end
  1647. else
  1648. HUM.PlatformStand = false
  1649. end
  1650. end
  1651. elseif ISBANISH == "Gravity" then
  1652. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1653. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1654. HUM.PlatformStand = false
  1655. end
  1656. end
  1657. end
  1658. end
  1659. end
  1660. end
  1661. end
  1662.  
  1663. function SpawnSmite(POS)
  1664. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  1665. local EMITPOS = HITPOS
  1666. if HITFLOOR ~= nil then
  1667. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1668. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  1669. EMITPOS = HITPOS
  1670. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1671. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  1672. EMITPOS = HITPOS
  1673. end
  1674. end
  1675. if HITFLOOR ~= nil then
  1676. ApplyAoE(EMITPOS,10)
  1677. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1678. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1679. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1680. for i = 1, 5 do
  1681. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  1682. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1683. end
  1684. end
  1685. end
  1686.  
  1687. --//=================================\\
  1688. --|| ATTACK FUNCTIONS AND STUFF
  1689. --\\=================================//
  1690.  
  1691. function eh()
  1692. ATTACK = true
  1693. Rooted = false
  1694. Speed = 20
  1695. Swait()
  1696. local CHILDREN = workspace:GetDescendants()
  1697. for index, CHILD in pairs(CHILDREN) do
  1698. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1699. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1700. if HUM then
  1701. local TORSO = CHILD:FindFirstChild("Head")
  1702. if TORSO then
  1703. if (TORSO.Position - Head.Position).Magnitude <= 25 then
  1704. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1705. TORSO:remove()
  1706. if CHILD:FindFirstChild("Torso") then
  1707. Ragdoll(CHILD,Torso,true)
  1708. elseif CHILD:FindFirstChild("UpperTorso") then
  1709. R15Ragdoll(CHILD,true)
  1710. end
  1711. end
  1712. end
  1713. end
  1714. end
  1715. end
  1716. 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})
  1717. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
  1718. for i=0, 0.3, 0.1 / Animation_Speed do
  1719. Swait()
  1720. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  1721. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1722. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1723. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1724. 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.25 / Animation_Speed)
  1725. 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.25 / Animation_Speed)
  1726. end
  1727. Speed = 20
  1728. ATTACK = false
  1729. Rooted = false
  1730. end
  1731.  
  1732. function Taunt()
  1733. ATTACK = true
  1734. Rooted = true
  1735. CreateSound("1238240145", Torso, 6, 0.9)
  1736. for i=0, 0.6, 0.1 / Animation_Speed do
  1737. Swait()
  1738. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1739. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1740. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1741. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1742. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1743. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1744. end
  1745. for i=0, 0.6, 0.1 / Animation_Speed do
  1746. Swait()
  1747. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1748. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1749. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1750. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1751. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1752. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1753. end
  1754. for i=0, 0.6, 0.1 / Animation_Speed do
  1755. Swait()
  1756. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1757. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1758. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1759. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1760. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1761. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1762. end
  1763. for i=0, 0.6, 0.1 / Animation_Speed do
  1764. Swait()
  1765. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1766. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1767. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1768. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1769. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1770. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1771. end
  1772. for i=0, 0.6, 0.1 / Animation_Speed do
  1773. Swait()
  1774. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1775. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1776. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1777. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1778. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1779. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1780. end
  1781. for i=0, 0.6, 0.1 / Animation_Speed do
  1782. Swait()
  1783. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1784. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1785. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1786. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1787. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1788. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1789. end
  1790. ATTACK = false
  1791. Rooted = false
  1792. end
  1793.  
  1794. function Shot()
  1795. ATTACK = true
  1796. Rooted = false
  1797. for i=0, 0.2, 0.05 / Animation_Speed do
  1798. Swait()
  1799. turnto(Mouse.Hit.p)
  1800. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1801. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1802. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1803. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1804. 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)
  1805. 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)
  1806. end
  1807. repeat
  1808. for i=0, 0.2, 0.05 / Animation_Speed do
  1809. Swait()
  1810. turnto(Mouse.Hit.p)
  1811. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1812. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1813. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1814. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1815. 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)
  1816. 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)
  1817. end
  1818. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1819. SpawnTrail(Hole.Position,POS)
  1820. if HIT ~= nil then
  1821. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1822. Banish(HIT.Parent)
  1823. end
  1824. end
  1825. 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})
  1826. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1827. 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})
  1828. 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})
  1829. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
  1830. for i=0, 0.2, 0.05 / Animation_Speed do
  1831. Swait()
  1832. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1833. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1834. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1835. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1836. 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)
  1837. 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)
  1838. end
  1839. until KEYHOLD == false
  1840. ATTACK = false
  1841. Rooted = false
  1842. end
  1843.  
  1844. function Shot2()
  1845. ATTACK = true
  1846. Rooted = false
  1847. for i=0, 0.2, 0.05 / Animation_Speed do
  1848. Swait()
  1849. turnto(Mouse.Hit.p)
  1850. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1851. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1852. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1853. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1854. 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)
  1855. 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)
  1856. end
  1857. repeat
  1858. for i=0, 0.2, 0.05 / Animation_Speed do
  1859. Swait()
  1860. turnto(Mouse.Hit.p)
  1861. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1862. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1863. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1864. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1865. 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)
  1866. 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)
  1867. end
  1868. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1869. SpawnTrail(Hole.Position,POS)
  1870. if HIT ~= nil then
  1871. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1872. Kill(HIT.Parent)
  1873. end
  1874. end
  1875. 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})
  1876. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1877. 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})
  1878. 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})
  1879. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
  1880. for i=0, 0.2, 0.05 / Animation_Speed do
  1881. Swait()
  1882. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1883. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1884. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1885. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1886. 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)
  1887. 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)
  1888. end
  1889. until KEYHOLD == false
  1890. ATTACK = false
  1891. Rooted = false
  1892. end
  1893.  
  1894. function AttackTemplate()
  1895. ATTACK = true
  1896. Rooted = false
  1897. for i=0, 1, 0.1 / Animation_Speed do
  1898. Swait()
  1899. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1900. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1901. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1902. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1903. 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)
  1904. 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)
  1905. end
  1906. ATTACK = false
  1907. Rooted = false
  1908. end
  1909.  
  1910. function Finisher()
  1911. local TARGET = Mouse.Target
  1912. if TARGET ~= nil then
  1913. if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
  1914. local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
  1915. local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
  1916. if ROOT and HUM.Health > 0 then
  1917. local FOE = Mouse.Target.Parent
  1918. ATTACK = true
  1919. Rooted = true
  1920. RootPart.CFrame = ROOT.CFrame*CF(-1.35,0,4)
  1921. ROOT.Anchored = true
  1922. CreateSound(670796769, Torso, 9999, 0.6, false)
  1923. CreateSound(362990415, Torso, 5, 1.08, false)
  1924. for i=0, 0.4, 0.1 / Animation_Speed do
  1925. Swait()
  1926. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1927. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1928. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1929. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1930. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1931. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1932. end
  1933. HUM.PlatformStand = true
  1934. ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0))
  1935. coroutine.resume(coroutine.create(function()
  1936. Swait()
  1937. ROOT.Anchored = true
  1938. end))
  1939. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6)
  1940. for i=0, 0.2, 0.1 / Animation_Speed do
  1941. Swait()
  1942. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1943. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1944. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1945. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1946. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1947. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1948. end
  1949. 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})
  1950. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1951. for i=0, 0.2, 0.1 / Animation_Speed do
  1952. Swait()
  1953. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1954. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1955. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1956. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1957. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1958. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1959. end
  1960. 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})
  1961. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1962. local AMMO = 6
  1963. local FIRING = true
  1964. local SHOOTING = false
  1965. local TIMER = 70
  1966. CreateSound(147722227, GunPoint, 6, 1.3, false)
  1967. for i=0, 0.2, 0.1 / Animation_Speed do
  1968. Swait()
  1969. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1970. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1971. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1972. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1973. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1974. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1975. end
  1976. 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})
  1977. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1978. for i = 1, 6 do
  1979. local GUNPOS = Hole.CFrame*CF(0, 0, 0).p
  1980. local DISTANCE = (FOE.Head.Position - GUNPOS).Magnitude
  1981. 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})
  1982. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1983. HUM.Health = HUM.Health/1.5
  1984. for i=0, 0.2, 0.1 / Animation_Speed do
  1985. Swait()
  1986. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1987. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1988. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1989. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1990. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1991. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1992. end
  1993. 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})
  1994. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1995. for i=0, 0.2, 0.1 / Animation_Speed do
  1996. Swait()
  1997. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1998. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1999. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2000. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2001. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2002. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  2003. end
  2004. end
  2005. 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})
  2006. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2007. ApplyDamage(HUM,0,true)
  2008. FOE:BreakJoints()
  2009. ROOT.Anchored = false
  2010. for i=0, 0.3, 0.1 / Animation_Speed do
  2011. Swait()
  2012. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2013. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
  2014. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2015. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2016. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2017. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2018. end
  2019. ATTACK = false
  2020. Rooted = false
  2021. end
  2022. end
  2023. end
  2024. end
  2025.  
  2026.  
  2027. --//=================================\\
  2028. --|| ASSIGN THINGS TO KEYS
  2029. --\\=================================//
  2030.  
  2031. function MouseDown(Mouse)
  2032. if ATTACK == false then
  2033. end
  2034. end
  2035.  
  2036. function MouseUp(Mouse)
  2037. HOLD = false
  2038. end
  2039.  
  2040. function KeyDown(Key)
  2041. KEYHOLD = true
  2042. if Key == "z" and ATTACK == false then
  2043. Shot()
  2044. end
  2045.  
  2046. if Key == "v" and ATTACK == false then
  2047. Shot2()
  2048. end
  2049.  
  2050. if Key == "x" and ATTACK == false then
  2051. Finisher()
  2052. end
  2053.  
  2054. if Key == "f" and ATTACK == false then
  2055. for i=0, 0.3, 0.1 / Animation_Speed do
  2056. Swait()
  2057. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2058. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2059. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2060. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2061. 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.25 / Animation_Speed)
  2062. 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.25 / Animation_Speed)
  2063. end
  2064. 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})
  2065. 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 = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
  2066. TOBANISH = {}
  2067. end
  2068.  
  2069. if Key == "t" and ATTACK == false then
  2070. Taunt()
  2071. end
  2072.  
  2073. if Key == "c" and ATTACK == false then
  2074. eh()
  2075. end
  2076. end
  2077.  
  2078. function KeyUp(Key)
  2079. KEYHOLD = false
  2080. end
  2081.  
  2082. Mouse.Button1Down:connect(function(NEWKEY)
  2083. MouseDown(NEWKEY)
  2084. end)
  2085. Mouse.Button1Up:connect(function(NEWKEY)
  2086. MouseUp(NEWKEY)
  2087. end)
  2088. Mouse.KeyDown:connect(function(NEWKEY)
  2089. KeyDown(NEWKEY)
  2090. end)
  2091. Mouse.KeyUp:connect(function(NEWKEY)
  2092. KeyUp(NEWKEY)
  2093. end)
  2094.  
  2095. --//=================================\\
  2096. --\\=================================//
  2097.  
  2098.  
  2099. function unanchor()
  2100. if UNANCHOR == true then
  2101. g = Character:GetChildren()
  2102. for i = 1, #g do
  2103. if g[i].ClassName == "Part" then
  2104. g[i].Anchored = false
  2105. end
  2106. end
  2107. end
  2108. end
  2109.  
  2110.  
  2111. --//=================================\\
  2112. --|| WRAP THE WHOLE SCRIPT UP
  2113. --\\=================================//
  2114.  
  2115. Humanoid.Changed:connect(function(Jump)
  2116. if Jump == "Jump" and (Disable_Jump == true) then
  2117. Humanoid.Jump = false
  2118. end
  2119. end)
  2120.  
  2121. local FF = IT("ForceField",Character)
  2122. FF.Visible = false
  2123.  
  2124. INSTANT = false
  2125. Speed = 20
  2126.  
  2127. while true do
  2128. Swait()
  2129. SINE = SINE + CHANGE
  2130. ANIMATE.Parent = nil
  2131. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2132. IDLEANIMATION:Play()
  2133. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2134. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2135. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  2136. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2137. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2138. if ATTACK == false and VALUE2 == false then
  2139. end
  2140. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2141. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2142. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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)
  2143. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * 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)
  2144. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * 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)
  2145. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2146. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2147. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2148. RightHip.C1 = Clerp(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)), 0.2 / Animation_Speed)
  2149. LeftHip.C1 = Clerp(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)), 0.2 / Animation_Speed)
  2150. end
  2151. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2152. ANIM = "Jump"
  2153. if ATTACK == false then
  2154. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2155. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2156. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2157. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2158. 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)
  2159. 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)
  2160. end
  2161. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2162. ANIM = "Fall"
  2163. if ATTACK == false then
  2164. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2165. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2166. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2167. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2168. 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)
  2169. 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)
  2170. end
  2171. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2172. ANIM = "Idle"
  2173. if ATTACK == false then
  2174. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2175. if MRANDOM(1,7) == 1 then
  2176. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  2177. end
  2178. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2179. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2180. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2181. 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.25 / Animation_Speed)
  2182. 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.25 / Animation_Speed)
  2183. end
  2184. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2185. ANIM = "Walk"
  2186. if ATTACK == false then
  2187. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2188. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2189. if MRANDOM(1,7) == 1 then
  2190. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  2191. end
  2192. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2193. 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)
  2194. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2195. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2196. end
  2197. end
  2198. end
  2199. --end
  2200. Humanoid.DisplayDistanceType = "None"
  2201. SHAKECAM(999999, 25, 25)
  2202. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/4.5,MRANDOM(-5,5)/4.5,MRANDOM(-5,5)/4.5)/60
  2203. unanchor()
  2204. Humanoid.MaxHealth = "inf"
  2205. Humanoid.Health = "inf"
  2206. if Rooted == false then
  2207. Disable_Jump = false
  2208. Humanoid.WalkSpeed = Speed
  2209. elseif Rooted == true then
  2210. Disable_Jump = true
  2211. Humanoid.WalkSpeed = 0
  2212. end
  2213. local MATHS = {"0","1"}
  2214. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  2215. Humanoid.PlatformStand = false
  2216. script.Parent = PlayerGui
  2217. Character.Parent = workspace
  2218. Humanoid.Parent = Character
  2219. --//=================================\\
  2220. --\\=================================//
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226. --//====================================================\\--
  2227. --|| END OF SCRIPT
  2228. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement