Advertisement
foxy_game4

aaaaaaaaaaaaaaaaaaaaa

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