Void_scripter0

Holy knight

Feb 28th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.58 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141. wait(1)
  142. local Player = game:GetService("Players").comfortabledatdm --<=== Replace With Your Name
  143.  
  144.  
  145. local Mouse,mouse,UserInputService,ContextActionService
  146. do
  147. script.Parent = Player.Character
  148. local CAS = {Actions={}}
  149. local Event = Instance.new("RemoteEvent")
  150. Event.Name = "UserInput_Event"
  151. Event.Parent = Player.Character
  152. local fakeEvent = function()
  153. local t = {_fakeEvent=true}
  154. t.Connect = function(self,f)self.Function=f end
  155. t.connect = t.Connect
  156. return t
  157. end
  158. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  159. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  160. function CAS:BindAction(name,fun,touch,...)
  161. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  162. end
  163. function CAS:UnbindAction(name)
  164. CAS.Actions[name] = nil
  165. end
  166. local function te(self,ev,...)
  167. local t = m[ev]
  168. if t and t._fakeEvent and t.Function then
  169. t.Function(...)
  170. end
  171. end
  172. m.TrigEvent = te
  173. UIS.TrigEvent = te
  174. Event.OnServerEvent:Connect(function(plr,io)
  175. if plr~=Player then return end
  176. if io.isMouse then
  177. m.Target = io.Target
  178. m.Hit = io.Hit
  179. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  180. if io.UserInputState == Enum.UserInputState.Begin then
  181. m:TrigEvent("Button1Down")
  182. else
  183. m:TrigEvent("Button1Up")
  184. end
  185. else
  186. for n,t in pairs(CAS.Actions) do
  187. for _,k in pairs(t.Keys) do
  188. if k==io.KeyCode then
  189. t.Function(t.Name,io.UserInputState,io)
  190. end
  191. end
  192. end
  193. if io.UserInputState == Enum.UserInputState.Begin then
  194. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  195. UIS:TrigEvent("InputBegan",io,false)
  196. else
  197. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  198. UIS:TrigEvent("InputEnded",io,false)
  199. end
  200. end
  201. end)
  202. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  203. end
  204.  
  205. ---------Replace All "LocalPlayer" With Your Name.
  206. --Remove "Mouse =" or "local mouse =" at the start.
  207. --Replace Kermat161 At The Top Of The Script With You Name.
  208. -----------------------------Script In The Line's.
  209.  
  210. --i made this to learn how to script, but is also good meme
  211. print("By akabob123")
  212. wait(1)
  213. Player = game:GetService("Players").timlikekezenit
  214. PlayerGui = Player.PlayerGui
  215. Cam = workspace.CurrentCamera
  216. Backpack = Player.Backpack
  217. Character = Player.Character
  218. Humanoid = Character.Humanoid
  219. RootPart = Character["HumanoidRootPart"]
  220. Torso = Character["Torso"]
  221. Head = Character["Head"]
  222. RightArm = Character["Right Arm"]
  223. LeftArm = Character["Left Arm"]
  224. RightLeg = Character["Right Leg"]
  225. LeftLeg = Character["Left Leg"]
  226. RootJoint = RootPart["RootJoint"]
  227. Neck = Torso["Neck"]
  228. RightShoulder = Torso["Right Shoulder"]
  229. LeftShoulder = Torso["Left Shoulder"]
  230. RightHip = Torso["Right Hip"]
  231. LeftHip = Torso["Left Hip"]
  232. local ANIM = "Idle"
  233. local ATTACK = false
  234. TAUNTING = false
  235. HOLD = false
  236. Frame_Speed = 1/60
  237. local ANIM = "Idle"
  238. Animation_Speed = 3
  239. UNANCHOR = true
  240. local ROBLOXIDLEANIMATION = Instance.new("Animation")
  241. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  242. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  243. local CHANGE = 2 / Animation_Speed
  244. local ANIMATOR = Humanoid.Animator
  245. local ANIMATE = Character.Animate
  246. Intro = true
  247. IT = Instance.new
  248. CF = CFrame.new
  249. VT = Vector3.new
  250. RAD = math.rad
  251. C3 = Color3.new
  252. UD2 = UDim2.new
  253. BRICKC = BrickColor.new
  254. ANGLES = CFrame.Angles
  255. EULER = CFrame.fromEulerAnglesXYZ
  256. COS = math.cos
  257. ACOS = math.acos
  258. SIN = math.sin
  259. ASIN = math.asin
  260. ABS = math.abs
  261. MRANDOM = math.random
  262. FLOOR = math.floor
  263.  
  264. --effects
  265. local Effects = IT("Folder", Character)
  266. Effects.Name = "Effects"
  267. --end effects
  268.  
  269. --c0's
  270. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(-180))
  271. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  272. local RIGHTSHOULDERC0 = CF(1, 0.5, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  273. local LEFTSHOULDERC0 = CF(-1, 0.5, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  274. --c0's
  275.  
  276. -- SAZERENOS' ARTIFICIAL HEARTBEAT
  277.  
  278.  
  279. ArtificialHB = Instance.new("BindableEvent", script)
  280. ArtificialHB.Name = "ArtificialHB"
  281.  
  282. script:WaitForChild("ArtificialHB")
  283.  
  284. frame = Frame_Speed
  285. tf = 0
  286. allowframeloss = false
  287. tossremainder = false
  288. lastframe = tick()
  289. script.ArtificialHB:Fire()
  290.  
  291. game:GetService("RunService").Heartbeat:connect(function(s, p)
  292. tf = tf + s
  293. if tf >= frame then
  294. if allowframeloss then
  295. script.ArtificialHB:Fire()
  296. lastframe = tick()
  297. else
  298. for i = 1, math.floor(tf / frame) do
  299. script.ArtificialHB:Fire()
  300. end
  301. lastframe = tick()
  302. end
  303. if tossremainder then
  304. tf = 0
  305. else
  306. tf = tf - frame * math.floor(tf / frame)
  307. end
  308. end
  309. end)
  310. --end heart beat
  311.  
  312. --really nice to have functions
  313. function CreateParticleEmmiter(PARENT, COLOR1,COLOR2, SIZE1,SIZE2, TEXTUREID, TRANSPARENCY1, TRANSPARENCY2, ZOFFSET, NAME, ACCELERATION, DRAG, LIFETIME1, LIFETIME2, RATE, ROTATION1, ROTATION2, SPEED1, SPEED2, SPREADANGLE)
  314. local prtclemm1 = Instance.new("ParticleEmitter",PARENT)
  315. prtclemm1.Color = ColorSequence.new(COLOR1, COLOR2)
  316. prtclemm1.Size = NumberSequence.new(SIZE1,SIZE2)
  317. prtclemm1.Texture = "http://www.roblox.com/asset/?id="..TEXTUREID
  318. prtclemm1.Transparency = NumberSequence.new(TRANSPARENCY1,TRANSPARENCY2)
  319. prtclemm1.ZOffset = ZOFFSET
  320. prtclemm1.Name = NAME
  321. prtclemm1.Acceleration = ACCELERATION
  322. prtclemm1.Drag = DRAG
  323. prtclemm1.Lifetime = NumberRange.new(LIFETIME1,LIFETIME2)
  324. prtclemm1.Rate = RATE
  325. prtclemm1.Rotation = NumberRange.new(ROTATION1,ROTATION2)
  326. prtclemm1.Speed = NumberRange.new(SPEED1,SPEED2)
  327. prtclemm1.SpreadAngle = SPREADANGLE
  328. return prtclemm1
  329. end
  330.  
  331. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  332. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  333. end
  334.  
  335. function PositiveAngle(NUMBER)
  336. if NUMBER >= 0 then
  337. NUMBER = 0
  338. end
  339. return NUMBER
  340. end
  341.  
  342. function NegativeAngle(NUMBER)
  343. if NUMBER <= 0 then
  344. NUMBER = 0
  345. end
  346. return NUMBER
  347. end
  348.  
  349. function Swait(NUMBER)
  350. if NUMBER == 0 or NUMBER == nil then
  351. ArtificialHB.Event:wait()
  352. else
  353. for i = 1, NUMBER do
  354. ArtificialHB.Event:wait()
  355. end
  356. end
  357. end
  358.  
  359. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  360. local NEWMESH = IT(MESH)
  361. if MESH == "SpecialMesh" then
  362. NEWMESH.MeshType = MESHTYPE
  363. if MESHID ~= "nil" and MESHID ~= "" then
  364. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  365. end
  366. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  367. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  368. end
  369. end
  370. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  371. NEWMESH.Scale = SCALE
  372. NEWMESH.Parent = PARENT
  373. return NEWMESH
  374. end
  375.  
  376. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  377. local NEWPART = IT("Part")
  378. NEWPART.formFactor = FORMFACTOR
  379. NEWPART.Reflectance = REFLECTANCE
  380. NEWPART.Transparency = TRANSPARENCY
  381. NEWPART.CanCollide = false
  382. NEWPART.Locked = true
  383. NEWPART.Anchored = true
  384. if ANCHOR == false then
  385. NEWPART.Anchored = false
  386. end
  387. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  388. NEWPART.Name = NAME
  389. NEWPART.Size = SIZE
  390. NEWPART.Position = Torso.Position
  391. NEWPART.Material = MATERIAL
  392. NEWPART:BreakJoints()
  393. NEWPART.Parent = PARENT
  394. return NEWPART
  395. end
  396. function CreateWedgePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  397. local NEWPART = IT("WedgePart")
  398. NEWPART.formFactor = FORMFACTOR
  399. NEWPART.Reflectance = REFLECTANCE
  400. NEWPART.Transparency = TRANSPARENCY
  401. NEWPART.CanCollide = false
  402. NEWPART.Locked = true
  403. NEWPART.Anchored = true
  404. if ANCHOR == false then
  405. NEWPART.Anchored = false
  406. end
  407. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  408. NEWPART.Name = NAME
  409. NEWPART.Size = SIZE
  410. NEWPART.Position = Torso.Position
  411. NEWPART.Material = MATERIAL
  412. NEWPART:BreakJoints()
  413. NEWPART.Parent = PARENT
  414. return NEWPART
  415. end
  416.  
  417. local function weldBetween(a, b)
  418. local weldd = IT("Weld")
  419. weldd.Part0 = a
  420. weldd.Part1 = b
  421. weldd.C0 = CF()
  422. weldd.C1 = b.CFrame:inverse() * a.CFrame
  423. weldd.Parent = a
  424. return weldd
  425. end
  426.  
  427.  
  428. function QuaternionFromCFrame(cf)
  429. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  430. local trace = m00 + m11 + m22
  431. if trace > 0 then
  432. local s = math.sqrt(1 + trace)
  433. local recip = 0.5 / s
  434. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  435. else
  436. local i = 0
  437. if m11 > m00 then
  438. i = 1
  439. end
  440. if m22 > (i == 0 and m00 or m11) then
  441. i = 2
  442. end
  443. if i == 0 then
  444. local s = math.sqrt(m00 - m11 - m22 + 1)
  445. local recip = 0.5 / s
  446. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  447. elseif i == 1 then
  448. local s = math.sqrt(m11 - m22 - m00 + 1)
  449. local recip = 0.5 / s
  450. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  451. elseif i == 2 then
  452. local s = math.sqrt(m22 - m00 - m11 + 1)
  453. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  454. end
  455. end
  456. end
  457.  
  458. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  459. local xs, ys, zs = x + x, y + y, z + z
  460. local wx, wy, wz = w * xs, w * ys, w * zs
  461. local xx = x * xs
  462. local xy = x * ys
  463. local xz = x * zs
  464. local yy = y * ys
  465. local yz = y * zs
  466. local zz = z * zs
  467. 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))
  468. end
  469.  
  470. function QuaternionSlerp(a, b, t)
  471. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  472. local startInterp, finishInterp;
  473. if cosTheta >= 0.0001 then
  474. if (1 - cosTheta) > 0.0001 then
  475. local theta = ACOS(cosTheta)
  476. local invSinTheta = 1 / SIN(theta)
  477. startInterp = SIN((1 - t) * theta) * invSinTheta
  478. finishInterp = SIN(t * theta) * invSinTheta
  479. else
  480. startInterp = 1 - t
  481. finishInterp = t
  482. end
  483. else
  484. if (1 + cosTheta) > 0.0001 then
  485. local theta = ACOS(-cosTheta)
  486. local invSinTheta = 1 / SIN(theta)
  487. startInterp = SIN((t - 1) * theta) * invSinTheta
  488. finishInterp = SIN(t * theta) * invSinTheta
  489. else
  490. startInterp = t - 1
  491. finishInterp = t
  492. end
  493. end
  494. 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
  495. end
  496.  
  497. function Clerp(a, b, t)
  498. local qa = {QuaternionFromCFrame(a)}
  499. local qb = {QuaternionFromCFrame(b)}
  500. local ax, ay, az = a.x, a.y, a.z
  501. local bx, by, bz = b.x, b.y, b.z
  502. local _t = 1 - t
  503. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  504. end
  505.  
  506. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  507. local frame = IT("Frame")
  508. frame.BackgroundTransparency = TRANSPARENCY
  509. frame.BorderSizePixel = BORDERSIZEPIXEL
  510. frame.Position = POSITION
  511. frame.Size = SIZE
  512. frame.BackgroundColor3 = COLOR
  513. frame.BorderColor3 = BORDERCOLOR
  514. frame.Name = NAME
  515. frame.Parent = PARENT
  516. return frame
  517. end
  518.  
  519. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  520. local label = IT("TextLabel")
  521. label.BackgroundTransparency = 1
  522. label.Size = UD2(1, 0, 1, 0)
  523. label.Position = UD2(0, 0, 0, 0)
  524. label.TextColor3 = TEXTCOLOR
  525. label.TextStrokeTransparency = STROKETRANSPARENCY
  526. label.TextTransparency = TRANSPARENCY
  527. label.FontSize = TEXTFONTSIZE
  528. label.Font = TEXTFONT
  529. label.BorderSizePixel = BORDERSIZEPIXEL
  530. label.TextScaled = false
  531. label.Text = TEXT
  532. label.Name = NAME
  533. label.Parent = PARENT
  534. return label
  535. end
  536.  
  537. function NoOutlines(PART)
  538. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  539. end
  540.  
  541. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  542. local NEWWELD = IT(TYPE)
  543. NEWWELD.Part0 = PART0
  544. NEWWELD.Part1 = PART1
  545. NEWWELD.C0 = C0
  546. NEWWELD.C1 = C1
  547. NEWWELD.Parent = PARENT
  548. return NEWWELD
  549. end
  550.  
  551. local S = IT("Sound")
  552. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  553. local NEWSOUND = nil
  554. coroutine.resume(coroutine.create(function()
  555. NEWSOUND = S:Clone()
  556. NEWSOUND.Parent = PARENT
  557. NEWSOUND.Volume = VOLUME
  558. NEWSOUND.Pitch = PITCH
  559. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  560. NEWSOUND:play()
  561. if DOESLOOP == true then
  562. NEWSOUND.Looped = true
  563. else
  564. repeat wait(1) until NEWSOUND.Playing == false
  565. NEWSOUND:remove()
  566. end
  567. end))
  568. return NEWSOUND
  569. end
  570.  
  571. function CFrameFromTopBack(at, top, back)
  572. local right = top:Cross(back)
  573. 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)
  574. end
  575.  
  576. local BODY = {}
  577. for _, c in pairs(Character:GetDescendants()) do
  578. if c:IsA("BasePart") and c.Name ~= "Handle" then
  579. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  580. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  581. end
  582. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  583. elseif c:IsA("JointInstance") then
  584. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  585. end
  586. end
  587. function refit()
  588. Character.Parent = workspace
  589. for e = 1, #BODY do
  590. if BODY[e] ~= nil then
  591. local STUFF = BODY[e]
  592. local PART = STUFF[1]
  593. local PARENT = STUFF[2]
  594. local MATERIAL = STUFF[3]
  595. local COLOR = STUFF[4]
  596. local TRANSPARENCY = STUFF[5]
  597. --local SIZE = STUFF[6]
  598. local NAME = STUFF[7]
  599. if PART.ClassName == "Part" and PART ~= RootPart then
  600. PART.Material = MATERIAL
  601. PART.Transparency = TRANSPARENCY
  602. PART.Name = NAME
  603. end
  604. if PART.Parent ~= PARENT then
  605. Humanoid:remove()
  606. PART.Parent = PARENT
  607. Humanoid = IT("Humanoid",Character)
  608. end
  609. Humanoid.MaxHealth = "inf"
  610. Humanoid.Health = "Inf"
  611. end
  612. end
  613. end
  614. function FindNearestHead(Position, Distance, SinglePlayer)
  615. if SinglePlayer then
  616. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  617. end
  618. local List = {}
  619. for i, v in pairs(workspace:GetChildren()) do
  620. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  621. table.insert(List, v)
  622. end
  623. end
  624. return List
  625. end
  626. -- end functions
  627. --looks
  628. for _, c in pairs(Character:GetChildren()) do
  629. if c.ClassName == "Pants" then
  630. c:remove()
  631. end
  632. if c.ClassName == "Shirt" then
  633. c:remove()
  634. end
  635. if c.ClassName == "Accessory" then
  636. c:remove()
  637. end
  638. if c == Head then
  639. helm = Instance.new("Part")
  640. helm.Size = VT(2,1,1)
  641. helm.Parent = Head
  642. helm.CFrame = Head.CFrame
  643. weldBetween(helm,Head)
  644. helmm = Instance.new("SpecialMesh")
  645. helmm.MeshId = "http://www.roblox.com/asset/?id=18752668"
  646. helmm.TextureId = "http://www.roblox.com/asset/?id=18752665"
  647. helmm.Offset = VT(0,0.5,0)
  648. helmm.Parent = helm
  649. if c:FindFirstChild("face") then
  650. c.face:remove()
  651. end
  652. end
  653. end
  654. kshirt = Instance.new("Shirt")
  655. kshirt.ShirtTemplate = "rbxassetid://177668451"
  656. kshirt.Parent = Character
  657.  
  658.  
  659. kpants = Instance.new("Pants")
  660. kpants.PantsTemplate = "rbxassetid://177668579"
  661. kpants.Parent = Character
  662.  
  663. sword = CreatePart(3, RightArm, "Neon", 0.5, 0, BRICKC("Grey"), "Sword", VT(1,5,1.5/2), false)
  664. CreateMesh("SpecialMesh", sword, "FileMesh", "77403584", "77403631", VT(1,3/2,1.5/2), VT(0,0,0))
  665. CreateWeldOrSnapOrMotor("Weld", sword, RightArm, sword, CF(0,-1,-2) * ANGLES(RAD(175), RAD(0),RAD(90)), CF(0,0,0))
  666.  
  667. --end looks
  668. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  669. WEAPONGUI.Name = "Weapon GUI"
  670. script.Parent = WEAPONGUI
  671. function attack()
  672. Swait()
  673. ATTACK = true
  674. local SwdHitBox = CreatePart(3, RightArm, "Plastic", 0, 1, BRICKC("Really red"), "SwordHitBox", VT(1,4,1), false)
  675. CreateWeldOrSnapOrMotor("Weld", SwdHitBox, RightArm, SwdHitBox, CF(0,-1,-2.5) * ANGLES(RAD(90),RAD(0),RAD(0)), CF(0,0,0))
  676.  
  677. local tuchies = SwdHitBox.Touched:connect(function(Thinghit)
  678. if Thinghit.Name ~= "Base" then
  679. Thinghit:remove()
  680. end
  681. end)
  682. for i = 0,1,0.1 do
  683. Swait()
  684. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,0.1 + 0.05 * SIN(SINE/18)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1/Animation_Speed)
  685. RightShoulder.C0 = Clerp(RightShoulder.C0, RIGHTSHOULDERC0 * CF(0.6,0 + 0.1 * SIN(SINE/18),0.2) * ANGLES(RAD(-60+ 3 * SIN(SINE/18)),RAD(-50),RAD(0)), 1 / Animation_Speed)
  686. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LEFTSHOULDERC0 * CF(0.,0 + 0.1 * SIN(SINE/18),0) * ANGLES(RAD(-10 + 3 * COS(SINE/18)), RAD(30 + 3 * SIN(SINE/18)), RAD(0)), 1 / Animation_Speed)
  687. RightHip.C0 = Clerp(RightHip.C0, CF(1,-1 - 0.03 * SIN(SINE/18),0) * ANGLES(RAD(0), RAD(70), RAD(0)), 1 / Animation_Speed)
  688. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1,-1 - 0.03 * SIN(SINE/18),0) * ANGLES(RAD(0), RAD(-70), RAD(0)), 1 / Animation_Speed)
  689. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(-50)), 1 / Animation_Speed)
  690. end
  691. SwdHitBox:remove()
  692. ATTACK = false
  693. end
  694.  
  695. function FindNearestHead(Position, Distance, SinglePlayer)
  696. if SinglePlayer then
  697. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  698. end
  699. local List = {}
  700. for i, v in pairs(workspace:GetChildren()) do
  701. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  702. table.insert(List, v)
  703. end
  704. end
  705. return List
  706. end
  707.  
  708. function Eviscerate(dude)
  709. if dude.Name ~= Character then
  710. local bgf = IT("BodyGyro", dude.Head)
  711. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(RAD(-90), 0, 0)
  712. local val = IT("BoolValue", dude)
  713. val.Name = "IsHit"
  714. local ds = coroutine.wrap(function()
  715. dude:WaitForChild("Head"):BreakJoints()
  716. wait(0.5)
  717. local target = nil
  718. coroutine.resume(coroutine.create(function()
  719. for i, v in pairs(dude:GetChildren()) do
  720. if v:IsA("Accessory") then
  721. v:Destroy()
  722. end
  723. if v:IsA("Humanoid") then
  724. v:Destroy()
  725. end
  726. if v:IsA("CharacterMesh") then
  727. v:Destroy()
  728. end
  729. if v:IsA("Model") then
  730. v:Destroy()
  731. end
  732. if v:IsA("Part") or v:IsA("MeshPart") then
  733. for x, o in pairs(v:GetChildren()) do
  734. if o:IsA("Decal") then
  735. o:Destroy()
  736. end
  737. end
  738. coroutine.resume(coroutine.create(function()
  739. v.Material = "Neon"
  740. v.CanCollide = false
  741. local PartEmmit1 = IT("ParticleEmitter", v)
  742. PartEmmit1.LightEmission = 1
  743. PartEmmit1.Texture = "rbxassetid://284205403"
  744. PartEmmit1.Color = ColorSequence.new(C3(255,0,0),C3(0,0,0))
  745. PartEmmit1.Rate = 150
  746. PartEmmit1.Lifetime = NumberRange.new(1)
  747. PartEmmit1.Size = NumberSequence.new({
  748. NumberSequenceKeypoint.new(0, 0.75, 0),
  749. NumberSequenceKeypoint.new(1, 0, 0)
  750. })
  751. PartEmmit1.Transparency = NumberSequence.new({
  752. NumberSequenceKeypoint.new(0, 0, 0),
  753. NumberSequenceKeypoint.new(1, 1, 0)
  754. })
  755. PartEmmit1.Speed = NumberRange.new(0, 0)
  756. PartEmmit1.VelocitySpread = 30000
  757. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  758. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  759. local BodPoss = IT("BodyPosition", v)
  760. BodPoss.P = 3000
  761. BodPoss.D = 1000
  762. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  763. BodPoss.position = v.Position + Vector3.new(MRANDOM(-15, 15), MRANDOM(-15, 15), MRANDOM(-15, 15))
  764. v.Color = C3(255,255,0)
  765. coroutine.resume(coroutine.create(function()
  766. for i = 0, 49 do
  767. Swait(1)
  768. v.Transparency = v.Transparency + 0.08
  769. end
  770. wait(0.5)
  771. PartEmmit1.Enabled = false
  772. wait(3)
  773. v:Destroy()
  774. dude:Destroy()
  775. end))
  776. end))
  777. end
  778. end
  779. end))
  780. end)
  781. ds()
  782. end
  783. end
  784. local maincolor = BrickColor.new("Bright yellow")
  785. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  786. local type = type
  787. local rng = Instance.new("Part", Character)
  788. rng.Anchored = true
  789. rng.BrickColor = color
  790. rng.CanCollide = false
  791. rng.FormFactor = 3
  792. rng.Name = "Ring"
  793. rng.Material = "Neon"
  794. rng.Size = Vector3.new(1, 1, 1)
  795. rng.Transparency = 0
  796. rng.TopSurface = 0
  797. rng.BottomSurface = 0
  798. rng.CFrame = pos
  799. local rngm = Instance.new("SpecialMesh", rng)
  800. rngm.MeshType = MType
  801. rngm.Scale = scale
  802. local scaler2 = 1
  803. if type == "Add" then
  804. scaler2 = 1 * value
  805. elseif type == "Divide" then
  806. scaler2 = 1 / value
  807. end
  808. coroutine.resume(coroutine.create(function()
  809. for i = 0, 10 / bonuspeed, 0.1 do
  810. Swait()
  811. if type == "Add" then
  812. scaler2 = scaler2 - 0.01 * value / bonuspeed
  813. elseif type == "Divide" then
  814. scaler2 = scaler2 - 0.01 / value * bonuspeed
  815. end
  816. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  817. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  818. end
  819. rng:Destroy()
  820. end))
  821. end
  822.  
  823.  
  824.  
  825.  
  826. local crossprt1 = CreatePart(3, LeftArm, "Neon", 0, 0, "Bright yellow", "Cross1", VT(0.2,2,0.2), false)
  827. CreateWeldOrSnapOrMotor("Weld", crossprt1, LeftArm, crossprt1, CF(0,-1.1,-0.25) * ANGLES(RAD(90),RAD(0),RAD(0)), CF(0,0,0))
  828. local crossprt2 = CreatePart(3, LeftArm, "Neon", 0, 0, "Bright yellow", "Cross2", VT(1.3,0.2,0.2), false)
  829. CreateWeldOrSnapOrMotor("Weld", crossprt2, LeftArm, crossprt2, CF(0,-1.1,-0.5) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0,0,0))
  830.  
  831.  
  832.  
  833. function smite()
  834. ATTACK = true
  835. CreateSound(585548493, Torso, 10, 1, false)
  836. local GYRO = IT("BodyGyro",RootPart)
  837. GYRO.D = 100
  838. GYRO.P = 2000
  839. GYRO.MaxTorque = VT(0,4000000,0)
  840. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  841. wait(0.2)
  842. for i = 0,4,0.1 do
  843. Swait()
  844. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  845. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,0.1 + 0.05 * SIN(SINE/18)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1/Animation_Speed)
  846. RightShoulder.C0 = Clerp(RightShoulder.C0, RIGHTSHOULDERC0 * CF(0.6,0 + 0.1 * SIN(SINE/18),0.2) * ANGLES(RAD(-10+ 3 * SIN(SINE/18)),RAD(-50),RAD(0)), 1 / Animation_Speed)
  847. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LEFTSHOULDERC0 * CF(-0.4,0 + 0.1 * SIN(SINE/18),0.3) * ANGLES(RAD(-90 + 3 * COS(SINE/18)), RAD(90 + 3 * SIN(SINE/18)), RAD(0)), 1 / Animation_Speed)
  848. RightHip.C0 = Clerp(RightHip.C0, CF(1,-1 - 0.03 * SIN(SINE/18),0) * ANGLES(RAD(0), RAD(70), RAD(0)), 1 / Animation_Speed)
  849. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1,-1 - 0.03 * SIN(SINE/18),0) * ANGLES(RAD(0), RAD(-70), RAD(0)), 1 / Animation_Speed)
  850. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(50)), 1 / Animation_Speed)
  851. end
  852. Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere")
  853. Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere")
  854. Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere")
  855. Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere")
  856. CreateSound(858154930, Character, 5, 1, false)
  857. for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do
  858. if v:FindFirstChild("Head") then
  859. Eviscerate(v)
  860. end
  861. end
  862. GYRO:remove()
  863. ATTACK = false
  864. end
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871. function taunt()
  872. Swait()
  873. ATTACK = true
  874. local DEUSVULT = CreateSound(585548493, Torso, 10, 1, false)
  875. for i = 0,5,0.1 do
  876. Swait()
  877. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,0.1 + 0.05 * SIN(SINE/18)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1/Animation_Speed)
  878. RightShoulder.C0 = Clerp(RightShoulder.C0, RIGHTSHOULDERC0 * CF(0.6,0 + 0.1 * SIN(SINE/18),0.2) * ANGLES(RAD(MRANDOM(1,359)),RAD(MRANDOM(1,359)),RAD(MRANDOM(1,360))), 1 / Animation_Speed)
  879. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LEFTSHOULDERC0 * CF(0.,0 + 0.1 * SIN(SINE/18),0) * ANGLES(RAD(MRANDOM(1,359)), RAD(MRANDOM(1,359)), RAD(MRANDOM(1,359))), 1 / Animation_Speed)
  880. RightHip.C0 = Clerp(RightHip.C0, CF(1,-1 - 0.03 * SIN(SINE/18),0) * ANGLES(RAD(0), RAD(70), RAD(0)), 1 / Animation_Speed)
  881. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1,-1 - 0.03 * SIN(SINE/18),0) * ANGLES(RAD(0), RAD(-70), RAD(0)), 1 / Animation_Speed)
  882. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0,0,0) * ANGLES(RAD(MRANDOM(1,359)),RAD(MRANDOM(1,359)),RAD(MRANDOM(1,359))), 1 / Animation_Speed)
  883. end
  884. ATTACK = false
  885. end
  886. musictime = 0
  887. music = Instance.new("Sound")
  888. music.Parent = Torso
  889. music.Volume = 0
  890. music.Looped = true
  891. music.Pitch = 1
  892. music.Name = "TemplarMusic"
  893. music.SoundId = "rbxassetid://774334527"
  894. music:Play()
  895. musictime = 0
  896. Torso.ChildRemoved:connect(function(removed)
  897. if removed.Name == "TemplarMusic" then
  898. music = Instance.new("Sound")
  899. music.Parent = Torso
  900. music.Volume = 0
  901. music.Looped = true
  902. music.Pitch = 1
  903. music.Name = "TemplarMusic"
  904. music.TimePosition = musictime
  905. music.SoundId = "rbxassetid://774334527"
  906. music:Play()
  907. end
  908. end)
  909. function mute()
  910. if music.Volume ~= 0 then
  911. music.Volume = 0
  912. else
  913. music.Volume = 5
  914. end
  915. end
  916. function volup()
  917. music.Volume = music.Volume + 0.5
  918. end
  919. function Voldown()
  920. music.Volume = music.Volume - 0.5
  921. end
  922.  
  923.  
  924.  
  925. function MouseDown(Mouse)
  926. if ATTACK == false then
  927. attack()
  928. end
  929. end
  930.  
  931. function MouseUp(Mouse)
  932. HOLD = false
  933. end
  934.  
  935. function KeyDown(Key)
  936. KEYHOLD = true
  937. if Key == "t" and ATTACK == false then
  938. taunt()
  939. end
  940. if Key == "m" then
  941. mute()
  942. end
  943. if Key == "n" then
  944. Voldown()
  945. end
  946. if Key == "b" then
  947. volup()
  948. end
  949. if Key == "z" and ATTACK == false then
  950. smite()
  951. end
  952. end
  953.  
  954. function KeyUp(Key)
  955. KEYHOLD = false
  956. end
  957.  
  958. Mouse.Button1Down:connect(function(NEWKEY)
  959. MouseDown(NEWKEY)
  960. end)
  961. Mouse.Button1Up:connect(function(NEWKEY)
  962. MouseUp(NEWKEY)
  963. end)
  964. Mouse.KeyDown:connect(function(NEWKEY)
  965. KeyDown(NEWKEY)
  966. end)
  967. Mouse.KeyUp:connect(function(NEWKEY)
  968. KeyUp(NEWKEY)
  969. end)
  970. --unanchor
  971. function AntiTimeStop()
  972. for _, c in pairs(Character:GetChildren()) do
  973. if c:IsA("BasePart") and c ~= RootPart then
  974. c.Anchored = false
  975. end
  976. end
  977. if UNANCHOR == true then
  978. RootPart.Anchored = false
  979. else
  980. RootPart.Anchored = true
  981. end
  982. end
  983. --unanchor
  984. SINE = 0
  985.  
  986. while true do
  987. Humanoid.HipHeight = 0
  988. ANIMATE.Parent = nil
  989. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  990. v:Stop();
  991. end
  992. Swait()
  993. SINE = SINE + CHANGE
  994. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  995. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  996. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  997. if TORSOVELOCITY < 1 and HITFLOOR ~= nil and ATTACK ~= true then
  998. ANIM = "Idle"
  999. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,0.1 + 0.05 * SIN(SINE/18)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1/Animation_Speed)
  1000. RightShoulder.C0 = Clerp(RightShoulder.C0, RIGHTSHOULDERC0 * CF(0.6,0 + 0.1 * SIN(SINE/18),0.2) * ANGLES(RAD(-10+ 3 * SIN(SINE/18)),RAD(-50),RAD(0)), 1 / Animation_Speed)
  1001. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LEFTSHOULDERC0 * CF(0.,0 + 0.1 * SIN(SINE/18),0) * ANGLES(RAD(-10 + 3 * COS(SINE/18)), RAD(30 + 3 * SIN(SINE/18)), RAD(0)), 1 / Animation_Speed)
  1002. RightHip.C0 = Clerp(RightHip.C0, CF(1,-1 - 0.03 * SIN(SINE/18),0) * ANGLES(RAD(0), RAD(70), RAD(0)), 1 / Animation_Speed)
  1003. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1,-1 - 0.03 * SIN(SINE/18),0) * ANGLES(RAD(0), RAD(-70), RAD(0)), 1 / Animation_Speed)
  1004. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(-50)), 1 / Animation_Speed)
  1005. end
  1006. if TORSOVELOCITY > 1 and HITFLOOR ~= nil and ATTACK ~= true then
  1007. ANIM = "Walk"
  1008. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,-0.1,0.1 + 0.05 * SIN(SINE/18)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1/Animation_Speed)
  1009. RightShoulder.C0 = Clerp(RightShoulder.C0, RIGHTSHOULDERC0 * CF(-0.3, -0.5 - 0.1 * SIN(SINE/12),0.5) * ANGLES(RAD(-90),RAD(0),RAD(-30+1 *COS(SINE/6))), 1 / Animation_Speed)
  1010. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LEFTSHOULDERC0 * CF(0,0 + 0.1 * SIN(SINE/12),0) * ANGLES(RAD(0), RAD(0), RAD(3*10*COS(SINE/6))), 1 / Animation_Speed)
  1011. RightHip.C0 = Clerp(RightHip.C0, CF(1,-1 - 0.2 * COS(SINE/6),0 + 0.3 *SIN(SINE/6)) * ANGLES(RAD(10 * 2 * COS(SINE/6)), RAD(90), RAD(0)), 1 / Animation_Speed)
  1012. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1,-1 + 0.2 * COS(SINE/6),0 - 0.3 *SIN(SINE/6)) * ANGLES(RAD(-10 * 2 * COS(SINE/6)), RAD(-90), RAD(0)), 1 / Animation_Speed)
  1013. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), 1 / Animation_Speed)
  1014. end
  1015. if TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1016. ANIM = "Fall"
  1017. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,0.1 + 0.05 * SIN(SINE/18)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1/Animation_Speed)
  1018. RightShoulder.C0 = Clerp(RightShoulder.C0, RIGHTSHOULDERC0 * CF(0.6,0 + 0.1 * SIN(SINE/18),0.2) * ANGLES(RAD(-10+ 3 * SIN(SINE/18)),RAD(-50),RAD(0)), 1 / Animation_Speed)
  1019. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LEFTSHOULDERC0 * CF(0.,0 + 0.1 * SIN(SINE/18),0) * ANGLES(RAD(-10 + 3 * COS(SINE/18)), RAD(30 + 3 * SIN(SINE/18)), RAD(0)), 1 / Animation_Speed)
  1020. RightHip.C0 = Clerp(RightHip.C0, CF(1,-1 - 0.03 * SIN(SINE/18),0) * ANGLES(RAD(0), RAD(70), RAD(0)), 1 / Animation_Speed)
  1021. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1,-1 - 0.03 * SIN(SINE/18),0) * ANGLES(RAD(0), RAD(-70), RAD(0)), 1 / Animation_Speed)
  1022. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), 1 / Animation_Speed)
  1023. end
  1024. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1025. ANIM = "Jump"
  1026. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,0.1 + 0.05 * SIN(SINE/18)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1/Animation_Speed)
  1027. RightShoulder.C0 = Clerp(RightShoulder.C0, RIGHTSHOULDERC0 * CF(0.6,0 + 0.1 * SIN(SINE/18),0.2) * ANGLES(RAD(-10+ 3 * SIN(SINE/18)),RAD(-50),RAD(0)), 1 / Animation_Speed)
  1028. LeftShoulder.C0 = Clerp(LeftShoulder.C0, LEFTSHOULDERC0 * CF(0.,0 + 0.1 * SIN(SINE/18),0) * ANGLES(RAD(-10 + 3 * COS(SINE/18)), RAD(30 + 3 * SIN(SINE/18)), RAD(0)), 1 / Animation_Speed)
  1029. RightHip.C0 = Clerp(RightHip.C0, CF(1,-0.5 - 0.03 * SIN(SINE/18),-0.5) * ANGLES(RAD(0), RAD(70), RAD(0)), 1 / Animation_Speed)
  1030. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1,-0.5 - 0.03 * SIN(SINE/18),-0.5) * ANGLES(RAD(0), RAD(-70), RAD(0)), 1 / Animation_Speed)
  1031. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), 1 / Animation_Speed)
  1032. end
  1033. AntiTimeStop()
  1034. refit()
  1035. musictime = music.TimePosition
  1036. end
Add Comment
Please, Sign In to add comment