Advertisement
13242

Untitled

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