Advertisement
Christoffer07700Extr

creamy 2

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