Advertisement
AnormalPerson

T

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