Advertisement
Christoffer07700Extr

Templar

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