Advertisement
Zach_script_stealer2

I feel like im High

Jun 2nd, 2019
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.57 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. print(" this script was edited by An ignorant / zach ")
  3. warn(" credits goes to the real creator ")
  4. warn(" pls dont abuse ")
  5. warn(" i beg u ")
  6. local Player,game,owner = owner,game
  7. local RealPlayer = Player
  8. do
  9. print("FE Compatibility code by Mokiros")
  10. print("This EDIT was made by Zach the script stealer / aka zach so please stop pretending that you made it")
  11. local rp = RealPlayer
  12. script.Parent = rp.Character
  13.  
  14. --RemoteEvent for communicating
  15. local Event = Instance.new("RemoteEvent")
  16. Event.Name = "UserInput_Event"
  17.  
  18. --Fake event to make stuff like Mouse.KeyDown work
  19. local function fakeEvent()
  20. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  21. t.connect = t.Connect
  22. return t
  23. end
  24.  
  25. --Creating fake input objects with fake variables
  26. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  27. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  28. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  29. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  30. end}
  31. --Merged 2 functions into one by checking amount of arguments
  32. CAS.UnbindAction = CAS.BindAction
  33.  
  34. --This function will trigger the events that have been :Connect()'ed
  35. local function te(self,ev,...)
  36. local t = m[ev]
  37. if t and t._fakeEvent then
  38. for _,f in pairs(t.Functions) do
  39. f(...)
  40. end
  41. end
  42. end
  43. m.TrigEvent = te
  44. UIS.TrigEvent = te
  45.  
  46. Event.OnServerEvent:Connect(function(plr,io)
  47. if plr~=rp then return end
  48. m.Target = io.Target
  49. m.Hit = io.Hit
  50. if not io.isMouse then
  51. local b = io.UserInputState == Enum.UserInputState.Begin
  52. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  53. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  54. end
  55. for _,t in pairs(CAS.Actions) do
  56. for _,k in pairs(t.Keys) do
  57. if k==io.KeyCode then
  58. t.Function(t.Name,io.UserInputState,io)
  59. end
  60. end
  61. end
  62. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  63. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  64. end
  65. end)
  66. Event.Parent = NLS([==[
  67. local Player = game:GetService("Players").LocalPlayer
  68. local Event = script:WaitForChild("UserInput_Event")
  69.  
  70. local Mouse = Player:GetMouse()
  71. local UIS = game:GetService("UserInputService")
  72. local input = function(io,a)
  73. if a then return end
  74. --Since InputObject is a client-side instance, we create and pass table instead
  75. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  76. end
  77. UIS.InputBegan:Connect(input)
  78. UIS.InputEnded:Connect(input)
  79.  
  80. local h,t
  81. --Give the server mouse data 30 times every second, but only if the values changed
  82. --If player is not moving their mouse, client won't fire events
  83. while wait(1/30) do
  84. if h~=Mouse.Hit or t~=Mouse.Target then
  85. h,t=Mouse.Hit,Mouse.Target
  86. Event:FireServer({isMouse=true,Target=t,Hit=h})
  87. end
  88. end]==],Player.Character)
  89.  
  90. ----Sandboxed game object that allows the usage of client-side methods and services
  91. --Real game object
  92. local _rg = game
  93.  
  94. --Metatable for fake service
  95. local fsmt = {
  96. __index = function(self,k)
  97. local s = rawget(self,"_RealService")
  98. if s then return s[k] end
  99. end,
  100. __newindex = function(self,k,v)
  101. local s = rawget(self,"_RealService")
  102. if s then s[k]=v end
  103. end,
  104. __call = function(self,...)
  105. local s = rawget(self,"_RealService")
  106. if s then return s(...) end
  107. end
  108. }
  109. local function FakeService(t,RealService)
  110. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  111. return setmetatable(t,fsmt)
  112. end
  113.  
  114. --Fake game object
  115. local g = {
  116. GetService = function(self,s)
  117. return self[s]
  118. end,
  119. Players = FakeService({
  120. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  121. },"Players"),
  122. UserInputService = FakeService(UIS,"UserInputService"),
  123. ContextActionService = FakeService(CAS,"ContextActionService"),
  124. }
  125. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  126. g.service = g.GetService
  127.  
  128. g.RunService = FakeService({
  129. RenderStepped = _rg:GetService("RunService").Heartbeat,
  130. BindToRenderStep = function(self,name,_,fun)
  131.  
  132. end,
  133. UnbindFromRenderStep = function(self,name)
  134. self._btrs[name]:Disconnect()
  135. end,
  136. },"RunService")
  137.  
  138. setmetatable(g,{
  139. __index=function(self,s)
  140. return _rg:GetService(s) or typeof(_rg[s])=="function"
  141. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  142. end,
  143. __newindex = fsmt.__newindex,
  144. __call = fsmt.__call
  145. })
  146. --Changing owner to fake player object to support owner:GetMouse()
  147. game,owner = g,g.Players.LocalPlayer
  148. end
  149.  
  150.  
  151. script.Name = "Im Weeb"
  152. --//====================================================\\--
  153. --|| CREATED BY NAMECLAN
  154. --\\====================================================//--
  155.  
  156. script:ClearAllChildren()
  157. wait(0.2)
  158.  
  159. Player = game:GetService("Players").LocalPlayer
  160. PlayerGui = Player.PlayerGui
  161. Cam = workspace.CurrentCamera
  162. Backpack = Player.Backpack
  163. Character = Player.Character
  164. Humanoid = Character.Humanoid
  165. Mouse = Player:GetMouse()
  166. RootPart = Character["HumanoidRootPart"]
  167. Torso = Character["Torso"]
  168. Head = Character["Head"]
  169. RightArm = Character["Right Arm"]
  170. LeftArm = Character["Left Arm"]
  171. RightLeg = Character["Right Leg"]
  172. LeftLeg = Character["Left Leg"]
  173. RootJoint = RootPart["RootJoint"]
  174. Neck = Torso["Neck"]
  175. RightShoulder = Torso["Right Shoulder"]
  176. LeftShoulder = Torso["Left Shoulder"]
  177. RightHip = Torso["Right Hip"]
  178. LeftHip = Torso["Left Hip"]
  179. local TIME = 0
  180. local sick = Instance.new("Sound",Torso)
  181.  
  182. IT = Instance.new
  183. CF = CFrame.new
  184. VT = Vector3.new
  185. RAD = math.rad
  186. C3 = Color3.new
  187. UD2 = UDim2.new
  188. BRICKC = BrickColor.new
  189. ANGLES = CFrame.Angles
  190. EULER = CFrame.fromEulerAnglesXYZ
  191. COS = math.cos
  192. ACOS = math.acos
  193. SIN = math.sin
  194. ASIN = math.asin
  195. ABS = math.abs
  196. MRANDOM = math.random
  197. FLOOR = math.floor
  198.  
  199. --//=================================\\
  200. --|| USEFUL VALUES
  201. --\\=================================//
  202.  
  203. Animation_Speed = 3
  204. local FORCERESET = false
  205. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  206. local Speed = 16
  207. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  208. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  209. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  210. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  211. local DAMAGEMULTIPLIER = 1
  212. local ANIM = "Idle"
  213. local ATTACK = false
  214. local EQUIPPED = false
  215. local HOLD = false
  216. local COMBO = 1
  217. local Rooted = false
  218. local SINE = 0
  219. local KEYHOLD = false
  220. local CHANGE = 2 / Animation_Speed
  221. local WALKINGANIM = false
  222. local VALUE1 = false
  223. local VALUE2 = false
  224. local ROBLOXIDLEANIMATION = IT("Animation")
  225. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  226. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  227. --ROBLOXIDLEANIMATION.Parent = Humanoid
  228. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  229. WEAPONGUI.Name = "BanishV3Gui"
  230. local Weapon = IT("Model")
  231. Weapon.Name = "Adds"
  232. local Effects = IT("Folder", Weapon)
  233. Effects.Name = "Effects"
  234. local ANIMATOR = Humanoid.Animator
  235. local ANIMATE = Character:FindFirstChild("Animate")
  236. local UNANCHOR = true
  237. local TOBANISH = {}
  238. script.Parent = PlayerGui
  239.  
  240. --//=================================\\
  241. --\\=================================//
  242.  
  243. eye2 = Instance.new("Part", Character)
  244. eye2.Anchored = false
  245. eye2.Parent = hed
  246. eye2.TopSurface = 0
  247. eye2.BrickColor = BrickColor.new("Royal purple")
  248. eye2.Material = "Neon"
  249. eye2.BottomSurface = 0
  250. eye2m = Instance.new("SpecialMesh", eye2)
  251. eye2m.MeshId = "rbxassetid://31309506"
  252. eye2m.TextureId = "rbxassetid://31309468"
  253. eye2m.Scale = Vector3.new(1.03, 1.05, 1.03)
  254. ogsize = eye2m.Scale
  255. weld = Instance.new("Weld", Head)
  256. weld.Part0 = eye2
  257. weld.Part1 = hed
  258. weld.Name = "eye2Weld"
  259. weld.C1 = CFrame.new(0,.45,0.05)
  260. local shir = Instance.new("Shirt",Character)
  261. local pan = Instance.new("Pants",Character)
  262. shir.ShirtTemplate = "http://www.roblox.com/asset/?id=83326831"
  263. pan.PantsTemplate = "http://www.roblox.com/asset/?id=10045638"
  264. local BC = Character["Body Colors"]
  265. BC.HeadColor = BrickColor.new("Bright yellow")
  266. BC.LeftArmColor = BrickColor.new("Bright yellow")
  267. BC.LeftLegColor = BrickColor.new("Bright yellow")
  268. BC.RightArmColor = BrickColor.new("Bright yellow")
  269. BC.RightLegColor = BrickColor.new("Bright yellow")
  270. BC.TorsoColor = BrickColor.new("Bright yellow")
  271.  
  272.  
  273.  
  274. --//=================================\\
  275. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  276. --\\=================================//
  277.  
  278. ArtificialHB = Instance.new("BindableEvent", script)
  279. ArtificialHB.Name = "ArtificialHB"
  280.  
  281. script:WaitForChild("ArtificialHB")
  282.  
  283. frame = Frame_Speed
  284. tf = 0
  285. allowframeloss = false
  286. tossremainder = false
  287. lastframe = tick()
  288. script.ArtificialHB:Fire()
  289.  
  290. game:GetService("RunService").Heartbeat:connect(function(s, p)
  291. tf = tf + s
  292. if tf >= frame then
  293. if allowframeloss then
  294. script.ArtificialHB:Fire()
  295. lastframe = tick()
  296. else
  297. for i = 1, math.floor(tf / frame) do
  298. script.ArtificialHB:Fire()
  299. end
  300. lastframe = tick()
  301. end
  302. if tossremainder then
  303. tf = 0
  304. else
  305. tf = tf - frame * math.floor(tf / frame)
  306. end
  307. end
  308. end)
  309.  
  310. --//=================================\\
  311. --\\=================================//
  312.  
  313. --//=================================\\
  314. --|| SOME FUNCTIONS
  315. --\\=================================//
  316.  
  317. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  318. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  319. end
  320.  
  321. function PositiveAngle(NUMBER)
  322. if NUMBER >= 0 then
  323. NUMBER = 0
  324. end
  325. return NUMBER
  326. end
  327.  
  328. function NegativeAngle(NUMBER)
  329. if NUMBER <= 0 then
  330. NUMBER = 0
  331. end
  332. return NUMBER
  333. end
  334.  
  335. function Swait(NUMBER)
  336. if NUMBER == 0 or NUMBER == nil then
  337. ArtificialHB.Event:wait()
  338. else
  339. for i = 1, NUMBER do
  340. ArtificialHB.Event:wait()
  341. end
  342. end
  343. end
  344.  
  345. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  346. local NEWMESH = IT(MESH)
  347. if MESH == "SpecialMesh" then
  348. NEWMESH.MeshType = MESHTYPE
  349. if MESHID ~= "nil" and MESHID ~= "" then
  350. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  351. end
  352. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  353. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  354. end
  355. end
  356. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  357. NEWMESH.Scale = SCALE
  358. NEWMESH.Parent = PARENT
  359. return NEWMESH
  360. end
  361.  
  362. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  363. local NEWPART = IT("Part")
  364. NEWPART.formFactor = FORMFACTOR
  365. NEWPART.Reflectance = REFLECTANCE
  366. NEWPART.Transparency = TRANSPARENCY
  367. NEWPART.CanCollide = false
  368. NEWPART.Locked = true
  369. NEWPART.Anchored = true
  370. if ANCHOR == false then
  371. NEWPART.Anchored = false
  372. end
  373. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  374. NEWPART.Name = NAME
  375. NEWPART.Size = SIZE
  376. NEWPART.Position = Torso.Position
  377. NEWPART.Material = MATERIAL
  378. NEWPART:BreakJoints()
  379. NEWPART.Parent = PARENT
  380. return NEWPART
  381. end
  382.  
  383. local function weldBetween(a, b)
  384. local weldd = Instance.new("ManualWeld")
  385. weldd.Part0 = a
  386. weldd.Part1 = b
  387. weldd.C0 = CFrame.new()
  388. weldd.C1 = b.CFrame:inverse() * a.CFrame
  389. weldd.Parent = a
  390. return weldd
  391. end
  392.  
  393.  
  394. function MagicSphere(size,waitt,cframe,color)
  395. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  396. local mesh = IT("SpecialMesh",wave)
  397. mesh.MeshType = "Sphere"
  398. mesh.Scale = VT(size,size,size)
  399. mesh.Offset = VT(0,0,0)
  400. wave.CFrame = cframe
  401. coroutine.resume(coroutine.create(function(PART)
  402. for i = 1, waitt do
  403. Swait()
  404. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  405. wave.Transparency = wave.Transparency + (1/waitt)
  406. if wave.Transparency > 0.99 then
  407. wave:remove()
  408. end
  409. end
  410. end))
  411. end
  412.  
  413. function QuaternionFromCFrame(cf)
  414. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  415. local trace = m00 + m11 + m22
  416. if trace > 0 then
  417. local s = math.sqrt(1 + trace)
  418. local recip = 0.5 / s
  419. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  420. else
  421. local i = 0
  422. if m11 > m00 then
  423. i = 1
  424. end
  425. if m22 > (i == 0 and m00 or m11) then
  426. i = 2
  427. end
  428. if i == 0 then
  429. local s = math.sqrt(m00 - m11 - m22 + 1)
  430. local recip = 0.5 / s
  431. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  432. elseif i == 1 then
  433. local s = math.sqrt(m11 - m22 - m00 + 1)
  434. local recip = 0.5 / s
  435. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  436. elseif i == 2 then
  437. local s = math.sqrt(m22 - m00 - m11 + 1)
  438. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  439. end
  440. end
  441. end
  442.  
  443. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  444. local xs, ys, zs = x + x, y + y, z + z
  445. local wx, wy, wz = w * xs, w * ys, w * zs
  446. local xx = x * xs
  447. local xy = x * ys
  448. local xz = x * zs
  449. local yy = y * ys
  450. local yz = y * zs
  451. local zz = z * zs
  452. 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))
  453. end
  454.  
  455. function QuaternionSlerp(a, b, t)
  456. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  457. local startInterp, finishInterp;
  458. if cosTheta >= 0.0001 then
  459. if (1 - cosTheta) > 0.0001 then
  460. local theta = ACOS(cosTheta)
  461. local invSinTheta = 1 / SIN(theta)
  462. startInterp = SIN((1 - t) * theta) * invSinTheta
  463. finishInterp = SIN(t * theta) * invSinTheta
  464. else
  465. startInterp = 1 - t
  466. finishInterp = t
  467. end
  468. else
  469. if (1 + cosTheta) > 0.0001 then
  470. local theta = ACOS(-cosTheta)
  471. local invSinTheta = 1 / SIN(theta)
  472. startInterp = SIN((t - 1) * theta) * invSinTheta
  473. finishInterp = SIN(t * theta) * invSinTheta
  474. else
  475. startInterp = t - 1
  476. finishInterp = t
  477. end
  478. end
  479. 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
  480. end
  481.  
  482. function Clerp(a, b, t)
  483. local qa = {QuaternionFromCFrame(a)}
  484. local qb = {QuaternionFromCFrame(b)}
  485. local ax, ay, az = a.x, a.y, a.z
  486. local bx, by, bz = b.x, b.y, b.z
  487. local _t = 1 - t
  488. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  489. end
  490.  
  491. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  492. local frame = IT("Frame")
  493. frame.BackgroundTransparency = TRANSPARENCY
  494. frame.BorderSizePixel = BORDERSIZEPIXEL
  495. frame.Position = POSITION
  496. frame.Size = SIZE
  497. frame.BackgroundColor3 = COLOR
  498. frame.BorderColor3 = BORDERCOLOR
  499. frame.Name = NAME
  500. frame.Parent = PARENT
  501. return frame
  502. end
  503.  
  504. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  505. local label = IT("TextLabel")
  506. label.BackgroundTransparency = 1
  507. label.Size = UD2(1, 0, 1, 0)
  508. label.Position = UD2(0, 0, 0, 0)
  509. label.TextColor3 = TEXTCOLOR
  510. label.TextStrokeTransparency = STROKETRANSPARENCY
  511. label.TextTransparency = TRANSPARENCY
  512. label.FontSize = TEXTFONTSIZE
  513. label.Font = TEXTFONT
  514. label.BorderSizePixel = BORDERSIZEPIXEL
  515. label.TextScaled = false
  516. label.Text = TEXT
  517. label.Name = NAME
  518. label.Parent = PARENT
  519. return label
  520. end
  521.  
  522. function NoOutlines(PART)
  523. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  524. end
  525.  
  526. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  527. local NEWWELD = IT(TYPE)
  528. NEWWELD.Part0 = PART0
  529. NEWWELD.Part1 = PART1
  530. NEWWELD.C0 = C0
  531. NEWWELD.C1 = C1
  532. NEWWELD.Parent = PARENT
  533. return NEWWELD
  534. end
  535.  
  536. local S = IT("Sound")
  537. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  538. local NEWSOUND = nil
  539. coroutine.resume(coroutine.create(function()
  540. NEWSOUND = S:Clone()
  541. NEWSOUND.Parent = PARENT
  542. NEWSOUND.Volume = VOLUME
  543. NEWSOUND.Pitch = PITCH
  544. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  545. NEWSOUND:play()
  546. if DOESLOOP == true then
  547. NEWSOUND.Looped = true
  548. else
  549. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  550. NEWSOUND:remove()
  551. end
  552. end))
  553. return NEWSOUND
  554. end
  555.  
  556. function CFrameFromTopBack(at, top, back)
  557. local right = top:Cross(back)
  558. 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)
  559. end
  560.  
  561. --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})
  562. function WACKYEFFECT(Table)
  563. local TYPE = (Table.EffectType or "Sphere")
  564. local SIZE = (Table.Size or VT(1,1,1))
  565. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  566. local TRANSPARENCY = (Table.Transparency or 0)
  567. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  568. local CFRAME = (Table.CFrame or Torso.CFrame)
  569. local MOVEDIRECTION = (Table.MoveToPos or nil)
  570. local ROTATION1 = (Table.RotationX or 0)
  571. local ROTATION2 = (Table.RotationY or 0)
  572. local ROTATION3 = (Table.RotationZ or 0)
  573. local MATERIAL = (Table.Material or "Neon")
  574. local COLOR = (Table.Color or C3(1,1,1))
  575. local TIME = (Table.Time or 45)
  576. local SOUNDID = (Table.SoundID or nil)
  577. local SOUNDPITCH = (Table.SoundPitch or nil)
  578. local SOUNDVOLUME = (Table.SoundVolume or nil)
  579. coroutine.resume(coroutine.create(function()
  580. local PLAYSSOUND = false
  581. local SOUND = nil
  582. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  583. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  584. PLAYSSOUND = true
  585. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  586. end
  587. EFFECT.Color = COLOR
  588. local MSH = nil
  589. if TYPE == "Sphere" then
  590. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  591. elseif TYPE == "Block" then
  592. MSH = IT("BlockMesh",EFFECT)
  593. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  594. elseif TYPE == "Wave" then
  595. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  596. elseif TYPE == "Ring" then
  597. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  598. elseif TYPE == "Slash" then
  599. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  600. elseif TYPE == "Round Slash" then
  601. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  602. elseif TYPE == "Swirl" then
  603. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  604. elseif TYPE == "Skull" then
  605. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  606. elseif TYPE == "Crystal" then
  607. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  608. end
  609. if MSH ~= nil then
  610. local MOVESPEED = nil
  611. if MOVEDIRECTION ~= nil then
  612. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  613. end
  614. local GROWTH = SIZE - ENDSIZE
  615. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  616. if TYPE == "Block" then
  617. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  618. else
  619. EFFECT.CFrame = CFRAME
  620. end
  621. for LOOP = 1, TIME+1 do
  622. Swait()
  623. MSH.Scale = MSH.Scale - GROWTH/TIME
  624. if TYPE == "Wave" then
  625. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  626. end
  627. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  628. if TYPE == "Block" then
  629. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  630. else
  631. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  632. end
  633. if MOVEDIRECTION ~= nil then
  634. local ORI = EFFECT.Orientation
  635. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  636. EFFECT.Orientation = ORI
  637. end
  638. end
  639. if PLAYSSOUND == false then
  640. EFFECT:remove()
  641. else
  642. SOUND.Stopped:Connect(function()
  643. EFFECT:remove()
  644. end)
  645. end
  646. else
  647. if PLAYSSOUND == false then
  648. EFFECT:remove()
  649. else
  650. repeat Swait() until SOUND.Playing == false
  651. EFFECT:remove()
  652. end
  653. end
  654. end))
  655. end
  656.  
  657. function MakeForm(PART,TYPE)
  658. if TYPE == "Cyl" then
  659. local MSH = IT("CylinderMesh",PART)
  660. elseif TYPE == "Ball" then
  661. local MSH = IT("SpecialMesh",PART)
  662. MSH.MeshType = "Sphere"
  663. elseif TYPE == "Wedge" then
  664. local MSH = IT("SpecialMesh",PART)
  665. MSH.MeshType = "Wedge"
  666. end
  667. end
  668.  
  669. function SpawnTrail(FROM,TO,BIG)
  670. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  671. MakeForm(TRAIL,"Cyl")
  672. local DIST = (FROM - TO).Magnitude
  673. if BIG == true then
  674. TRAIL.Size = VT(0.5,DIST,0.5)
  675. else
  676. TRAIL.Size = VT(0.25,DIST,0.25)
  677. end
  678. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  679. coroutine.resume(coroutine.create(function()
  680. for i = 1, 5 do
  681. Swait()
  682. TRAIL.Transparency = TRAIL.Transparency + 0.1
  683. end
  684. TRAIL:remove()
  685. end))
  686. end
  687.  
  688. Debris = game:GetService("Debris")
  689.  
  690. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  691. local DIRECTION = CF(StartPos,EndPos).lookVector
  692. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  693. end
  694.  
  695. function turnto(position)
  696. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  697. end
  698.  
  699. --//=================================\\
  700. --|| WEAPON CREATION
  701. --\\=================================//
  702.  
  703. local Particle = IT("ParticleEmitter",nil)
  704. Particle.Enabled = false
  705. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  706. Particle.LightEmission = 0.5
  707. Particle.Rate = 150
  708. Particle.ZOffset = 0.2
  709. Particle.Rotation = NumberRange.new(-180, 180)
  710. Particle.RotSpeed = NumberRange.new(-180, 180)
  711. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  712. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  713.  
  714. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  715. function ParticleEmitter(Table)
  716. local PRTCL = Particle:Clone()
  717. local Speed = Table.Speed or 5
  718. local Drag = Table.Drag or 0
  719. local Size1 = Table.Size1 or 1
  720. local Size2 = Table.Size2 or 5
  721. local Lifetime1 = Table.Lifetime1 or 1
  722. local Lifetime2 = Table.Lifetime2 or 1.5
  723. local Parent = Table.Parent or Torso
  724. local Emit = Table.Emit or 100
  725. local Offset = Table.Offset or 360
  726. local Acel = Table.Acel or VT(0,0,0)
  727. local Enabled = Table.Enabled or false
  728. PRTCL.Parent = Parent
  729. PRTCL.Size = NumberSequence.new(Size1,Size2)
  730. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  731. PRTCL.Speed = NumberRange.new(Speed)
  732. PRTCL.VelocitySpread = Offset
  733. PRTCL.Drag = Drag
  734. PRTCL.Acceleration = Acel
  735. if Enabled == false then
  736. PRTCL:Emit(Emit)
  737. Debris:AddItem(PRTCL,Lifetime2)
  738. else
  739. PRTCL.Enabled = true
  740. end
  741. return PRTCL
  742. end
  743.  
  744. for i = 1, 35 do
  745. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  746. FACE.Color = C3(0,0,0)
  747. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  748. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  749. end
  750. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Eyeball", VT(0.1,0.3,0.1),false)
  751. MakeForm(EYE,"Ball")
  752. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
  753. local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Eyeball", VT(0.1,0.3,0.1),false)
  754. MakeForm(EYE2,"Ball")
  755. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  756.  
  757. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = EYE2, Emit = 700, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  758. --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)})
  759. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = EYE, Emit = 700, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  760. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = RightArm, Emit = 700, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  761. --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)})
  762. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = LeftArm, Emit = 700, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  763. --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)})
  764. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = LeftLeg, Emit = 700, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  765. --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)})
  766. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = RightLeg, Emit = 700, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  767. --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)})
  768.  
  769. local SKILLTEXTCOLOR = C3(1,0,0)
  770. local SKILLFONT = "Cartoon"
  771. local SKILLTEXTSIZE = 7
  772.  
  773. Humanoid.Died:connect(function()
  774. ATTACK = true
  775. end)
  776.  
  777. 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")
  778. --[[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")
  779. 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")
  780. 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")
  781. 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")
  782. ]]
  783. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "T-POSE", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  784. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  785. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  786. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  787. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  788. ]]
  789.  
  790. --//=================================\\
  791. --|| DAMAGING
  792. --\\=================================//
  793.  
  794. function killnearest(position,range,maxstrength,direction)
  795. for i,v in ipairs(workspace:GetChildren()) do
  796. local body = v:GetChildren()
  797. for part = 1, #body do
  798. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  799. if(body[part].Position - position).Magnitude < range then
  800. if v.ClassName == "Model" then
  801. --v:BreakJoints()
  802. end
  803. local POS = position
  804. coroutine.resume(coroutine.create(function()
  805. body[part].Anchored = true
  806. body[part].Parent = Effects
  807. body[part].CanCollide = true
  808. local SIZE = body[part].Size
  809. body[part].Material = "Neon"
  810. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  811. for i = 1, 75 do
  812. Swait()
  813. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  814. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  815. end
  816. coroutine.resume(coroutine.create(function()
  817. while true do
  818. Swait()
  819. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  820. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  821. end
  822. end))
  823. body[part].Anchored = false
  824. body[part].Velocity = direction.lookVector*maxstrength
  825. end))
  826. end
  827. end
  828. end
  829. if v.ClassName == "Part" then
  830. if v.Anchored == false and (v.Position - position).Magnitude < range then
  831. local POS = position
  832. coroutine.resume(coroutine.create(function()
  833. v.Anchored = true
  834. v.Parent = Effects
  835. local SIZE = v.Size
  836. v.Material = "Neon"
  837. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  838. for i = 1, 75 do
  839. Swait()
  840. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  841. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  842. end
  843. coroutine.resume(coroutine.create(function()
  844. while true do
  845. Swait()
  846. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  847. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  848. end
  849. end))
  850. v.Anchored = false
  851. v.Velocity = direction.lookVector*maxstrength
  852. end))
  853. end
  854. end
  855. end
  856. end
  857.  
  858. --//=================================\\
  859. --|| ATTACK FUNCTIONS AND STUFF
  860. --\\=================================//
  861.  
  862. function XD()
  863. ATTACK = true
  864. Rooted = false
  865. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Eyeball", VT(0.1,0.3,0.1),false)
  866. MakeForm(EYE,"Ball")
  867. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
  868. local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Eyeball", VT(0.1,0.3,0.1),false)
  869. MakeForm(EYE2,"Ball")
  870. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  871. local Wood = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Wood", VT(0, 0, 0),false)
  872. local HandleMesh = CreateMesh("SpecialMesh", Wood, "FileMesh", "12130075", "12130104", VT(2.0,2.0,2.0), VT(0,0, 0))
  873. local Weld = CreateWeldOrSnapOrMotor("Weld", Wood, RightArm, Wood, CF(-1.0, -1.0, -0.1) * ANGLES(RAD(-90), RAD(-90), RAD(42)), CF(0, 0, 0))
  874. RootPart.CFrame = RootPart.CFrame*CF(0,0,-20)
  875. for i=0, 1, 0.1 / Animation_Speed do
  876. Swait()
  877. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  878. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  879. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  880. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  881. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  882. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  883. end
  884. killnearest(Wood.Position,45,100,Torso.CFrame)
  885. CreateSound("92597369", Torso, 5, 1.5)
  886. for i=0, 0.3, 0.1 / Animation_Speed do
  887. Swait()
  888. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 2 / Animation_Speed)
  889. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed)
  890. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  891. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  892. RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  893. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  894. end
  895. Wood:remove()
  896. EYE2:remove()
  897. EYE:remove()
  898. ATTACK = false
  899. Rooted = false
  900. end
  901.  
  902. function AttackTemplate()
  903. ATTACK = true
  904. Rooted = false
  905. for i=0, 1, 0.1 / Animation_Speed do
  906. Swait()
  907. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  908. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  909. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  910. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  911. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  912. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  913. end
  914. ATTACK = false
  915. Rooted = false
  916. end
  917.  
  918. --//=================================\\
  919. --|| ASSIGN THINGS TO KEYS
  920. --\\=================================//
  921.  
  922. function MouseDown(Mouse)
  923. if ATTACK == false then
  924. end
  925. end
  926.  
  927. function MouseUp(Mouse)
  928. HOLD = false
  929. end
  930.  
  931. function KeyDown(Key)
  932. KEYHOLD = true
  933. if Key == "z" and ATTACK == false then
  934. XD()
  935. end
  936.  
  937. if Key == "b" and ATTACK == false then
  938. end
  939.  
  940. if Key == "c" and ATTACK == false then
  941. end
  942.  
  943. if Key == "v" and ATTACK == false then
  944. end
  945.  
  946. if Key == "x" and ATTACK == false then
  947. end
  948. end
  949.  
  950. function KeyUp(Key)
  951. KEYHOLD = false
  952. end
  953.  
  954. Mouse.Button1Down:connect(function(NEWKEY)
  955. MouseDown(NEWKEY)
  956. end)
  957. Mouse.Button1Up:connect(function(NEWKEY)
  958. MouseUp(NEWKEY)
  959. end)
  960. Mouse.KeyDown:connect(function(NEWKEY)
  961. KeyDown(NEWKEY)
  962. end)
  963. Mouse.KeyUp:connect(function(NEWKEY)
  964. KeyUp(NEWKEY)
  965. end)
  966.  
  967. --//=================================\\
  968. --\\=================================//
  969.  
  970.  
  971. function unanchor()
  972. if UNANCHOR == true then
  973. g = Character:GetChildren()
  974. for i = 1, #g do
  975. if g[i].ClassName == "Part" then
  976. g[i].Anchored = false
  977. end
  978. end
  979. end
  980. end
  981.  
  982.  
  983. --//=================================\\
  984. --|| WRAP THE WHOLE SCRIPT UP
  985. --\\=================================//
  986.  
  987. Humanoid.Changed:connect(function(Jump)
  988. if Jump == "Jump" and (Disable_Jump == true) then
  989. Humanoid.Jump = false
  990. end
  991. end)
  992.  
  993. local CONNECT = nil
  994.  
  995. while true do
  996. Swait()
  997. ANIMATE.Parent = nil
  998. if Character:FindFirstChildOfClass("Humanoid") == nil then
  999. Humanoid = IT("Humanoid",Character)
  1000. end
  1001. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1002. v:Stop();
  1003. end
  1004. SINE = SINE + CHANGE
  1005. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1006. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1007. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1008. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1009. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1010. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1011. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1012. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1013. end
  1014. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1015. ANIM = "Jump"
  1016. if ATTACK == false then
  1017. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(-10)), 1 / Animation_Speed)
  1018. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(10)), 1 / Animation_Speed)
  1019. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(-20), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1020. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(20), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1021. end
  1022. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1023. ANIM = "Fall"
  1024. if ATTACK == false then
  1025. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1026. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1027. else
  1028. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-5), RAD(80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1029. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1030. end
  1031. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1032. ANIM = "Idle"
  1033. if ATTACK == false then
  1034. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1035. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1036. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1037. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1038. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1039. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1040. end
  1041. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1042. ANIM = "Walk"
  1043. if ATTACK == false then
  1044. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(70), RAD(0), RAD(0)), 2 / Animation_Speed)
  1045. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1046. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1047. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1048. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1049. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1050. end
  1051. end
  1052. unanchor()
  1053. Humanoid.MaxHealth = "inf"
  1054. Humanoid.Health = "inf"
  1055. if Rooted == false then
  1056. Disable_Jump = false
  1057. Humanoid.WalkSpeed = Speed
  1058. elseif Rooted == true then
  1059. Disable_Jump = true
  1060. Humanoid.WalkSpeed = 0
  1061. end
  1062. sick.Parent = Torso
  1063. sick:resume()
  1064. sick.Volume = 3
  1065. sick.Pitch = 1.02
  1066. sick.SoundId = "rbxassetid://190477434"
  1067. sick.Name = "T-Pose"
  1068. end
  1069.  
  1070. --//=================================\\
  1071. --\\=================================//
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077. --//====================================================\\--
  1078. --|| END OF SCRIPT
  1079. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement