Advertisement
HenloMyDude

my star glitcher (unfinished)

Sep 10th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.38 KB | None | 0 0
  1.  
  2. 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 = {}
  3. do
  4. script.Parent = owner.Character
  5. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  6. local function NewFakeEvent()
  7. local Bind = Instance.new("BindableEvent")
  8. local Fake;Fake = {Connections = {},
  9. fakeEvent=true;
  10. Connect=function(self,Func)
  11. Bind.Event:connect(Func)
  12. self.Connections[Bind] = true
  13. return setmetatable({Connected = true},{
  14. __index = function (self,Index)
  15. if Index:lower() == "disconnect" then
  16. return function() Fake.Connections[Bind] = false;self.Connected = false end
  17. end
  18. return Fake[Index]
  19. end;
  20. __tostring = function() return "Connection" end;
  21. })
  22. end}
  23. Fake.connect = Fake.Connect;return Fake;
  24. end
  25. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  26. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  27. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  28. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  29. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  30. local function TriggerEvent(self,Event,...)
  31. local Trigger = Mouse[Event]
  32. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  33. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  34. end
  35. end
  36. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  37. Event.OnServerEvent:Connect(function(FiredBy,Input)
  38. if FiredBy.Name ~= owner.Name then return end
  39. if Input.MouseEvent then
  40. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  41. else
  42. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  43. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  44. for _,Action in pairs(ContextActionService.Actions) do
  45. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  46. end
  47. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  48. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  49. end
  50. end)
  51. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  52. Event.Parent = NLS([[
  53. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  59. local Hit,Target
  60. while wait(1/30) do
  61. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  62. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  63. end
  64. end
  65. ]],owner.Character)
  66. end
  67. RealGame = game;game = setmetatable({},{
  68. __index = function (self,Index)
  69. local Sandbox = function (Thing)
  70. if Thing:IsA("Player") then
  71. local RealPlayer = Thing
  72. return setmetatable({},{
  73. __index = function (self,Index)
  74. local Type = type(RealPlayer[Index])
  75. if Type == "function" then
  76. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  77. return function (self)return InternalData["Mouse"] end
  78. end
  79. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  80. end
  81. return RealPlayer[Index]
  82. end;
  83. __tostring = function(self) return RealPlayer.Name end
  84. })
  85. end
  86. end
  87. if RealGame[Index] then
  88. local Type = type(RealGame[Index])
  89. if Type == "function" then
  90. if Index:lower() == "getservice" or Index:lower() == "service" then
  91. return function (self,Service)
  92. local FakeServices = {
  93. ["players"] = function()
  94. return setmetatable({},{
  95. __index = function (self2,Index2)
  96. local RealService = RealGame:GetService(Service)
  97. local Type2 = type(Index2)
  98. if Type2 == "function" then
  99. return function (self,...) return RealService[Index2](RealService,...)end
  100. else
  101. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  102. return RealService[Index2]
  103. end
  104. end;
  105. __tostring = function(self) return RealGame:GetService(Service).Name end
  106. })
  107. end;
  108. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  109. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  110. ["runservice"] = function()
  111. return setmetatable({},{
  112. __index = function(self2,Index2)
  113. local RealService = RealGame:GetService(Service)
  114. local Type2 = type(Index2)
  115. if Type2 == "function" then
  116. return function (self,...) return RealService[Index2](RealService,...) end
  117. else
  118. local RunServices = {
  119. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  120. ["renderstepped"] = function() return RealService["Stepped"] end
  121. }
  122. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  123. return RealService[Index2]
  124. end
  125. end
  126. })
  127. end
  128. }
  129. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  130. return RealGame:GetService(Service)
  131. end
  132. end
  133. return function (self,...) return RealGame[Index](RealGame,...) end
  134. else
  135. if game:GetService(Index) then return game:GetService(Index) end
  136. return RealGame[Index]
  137. end
  138. end
  139. return nil
  140. end
  141. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  142.  
  143. print("All purpose switcher")
  144.  
  145. local Player = owner
  146. local Character = Player.Character
  147. local plr = owner
  148. local Humanoid = Character.Humanoid
  149. local char = plr.Character
  150. local hum = char.Humanoid
  151. local ra = char["Right Arm"]
  152. local la= char["Left Arm"]
  153. local rl= char["Right Leg"]
  154. local ll = char["Left Leg"]
  155. local hed = char.Head
  156. local root = char.HumanoidRootPart
  157. local rootj = root.RootJoint
  158. local tors = char.Torso
  159. local LeftArm = Character["Left Arm"]
  160. local RightArm = Character["Right Arm"]
  161. local LeftLeg = Character["Left Leg"]
  162. local RightLeg = Character["Right Leg"]
  163. local Head = Character.Head
  164. local Torso = Character.Torso
  165. local mouse = plr:GetMouse()
  166. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  167. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  168. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  169. local cam = game.Workspace.CurrentCamera
  170. trazx = Instance.new("ParticleEmitter")
  171. c = game.Players.LocalPlayer.Character
  172. local sine=0
  173.  
  174. -----------------------------------------------
  175.  
  176. CF = CFrame.new
  177. angles = CFrame.Angles
  178. attack = false
  179. timetofly = true
  180. Euler = CFrame.fromEulerAnglesXYZ
  181. Rad = math.rad
  182. IT = Instance.new
  183. BrickC = BrickColor.new
  184. Cos = math.cos
  185. Acos = math.acos
  186. Sin = math.sin
  187. Asin = math.asin
  188. Abs = math.abs
  189. Mrandom = math.random
  190. Floor = math.floor
  191. random = math.random
  192. radian = math.rad
  193. Vec3 = Vector3.new
  194. cFrame = CFrame.new
  195. Euler = CFrame.fromEulerAnglesXYZ
  196. -------------------------------------------------------
  197. --End Good Stuff--
  198. -------------------------------------------------------
  199. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  200. RW = Instance.new("Weld")
  201. LW = Instance.new("Weld")
  202. RH = tors["Right Hip"]
  203. LH = tors["Left Hip"]
  204. RW.Name = "RW"
  205. RW.Part0 = tors
  206. RW.C0 = CF(1.5, 0.5, 0)
  207. RW.C1 = CF(0, 0.5, 0)
  208. RW.Part1 = ra
  209. RW.Parent = tors
  210. LW.Name = "LW"
  211. LW.Part0 = tors
  212. LW.C0 = CF(-1.5, 0.5, 0)
  213. LW.C1 = CF(0, 0.5, 0)
  214. LW.Part1 = la
  215. LW.Parent = tors
  216.  
  217. function swait(num)
  218. if num == 0 or num == nil then
  219. game:service("RunService").Stepped:wait(0)
  220. else
  221. for i = 0, num do
  222. game:service("RunService").Stepped:wait(0)
  223. end
  224. end
  225. end
  226. function thread(f)
  227. coroutine.resume(coroutine.create(f))
  228. end
  229. function clerp(a, b, t)
  230. local qa = {
  231. QuaternionFromCFrame(a)
  232. }
  233. local qb = {
  234. QuaternionFromCFrame(b)
  235. }
  236. local ax, ay, az = a.x, a.y, a.z
  237. local bx, by, bz = b.x, b.y, b.z
  238. local _t = 1 - t
  239. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  240. end
  241. function QuaternionFromCFrame(cf)
  242. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  243. local trace = m00 + m11 + m22
  244. if trace > 0 then
  245. local s = math.sqrt(1 + trace)
  246. local recip = 0.5 / s
  247. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  248. else
  249. local i = 0
  250. if m00 < m11 then
  251. i = 1
  252. end
  253. if m22 > (i == 0 and m00 or m11) then
  254. i = 2
  255. end
  256. if i == 0 then
  257. local s = math.sqrt(m00 - m11 - m22 + 1)
  258. local recip = 0.5 / s
  259. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  260. elseif i == 1 then
  261. local s = math.sqrt(m11 - m22 - m00 + 1)
  262. local recip = 0.5 / s
  263. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  264. elseif i == 2 then
  265. local s = math.sqrt(m22 - m00 - m11 + 1)
  266. local recip = 0.5 / s
  267. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  268. end
  269. end
  270. end
  271. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  272. local xs, ys, zs = x + x, y + y, z + z
  273. local wx, wy, wz = w * xs, w * ys, w * zs
  274. local xx = x * xs
  275. local xy = x * ys
  276. local xz = x * zs
  277. local yy = y * ys
  278. local yz = y * zs
  279. local zz = z * zs
  280. 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))
  281. end
  282. function QuaternionSlerp(a, b, t)
  283. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  284. local startInterp, finishInterp
  285. if cosTheta >= 1.0E-4 then
  286. if 1 - cosTheta > 1.0E-4 then
  287. local theta = math.acos(cosTheta)
  288. local invSinTheta = 1 / Sin(theta)
  289. startInterp = Sin((1 - t) * theta) * invSinTheta
  290. finishInterp = Sin(t * theta) * invSinTheta
  291. else
  292. startInterp = 1 - t
  293. finishInterp = t
  294. end
  295. elseif 1 + cosTheta > 1.0E-4 then
  296. local theta = math.acos(-cosTheta)
  297. local invSinTheta = 1 / Sin(theta)
  298. startInterp = Sin((t - 1) * theta) * invSinTheta
  299. finishInterp = Sin(t * theta) * invSinTheta
  300. else
  301. startInterp = t - 1
  302. finishInterp = t
  303. end
  304. 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
  305. end
  306. function rayCast(Position, Direction, Range, Ignore)
  307. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  308. end
  309. local RbxUtility = LoadLibrary("RbxUtility")
  310. local Create = RbxUtility.Create
  311. local insta = true
  312. change = 1
  313. equipped = true
  314. idle = 0
  315. char.Humanoid.Animator:Destroy()
  316. Player_Size = 1
  317. Mode = "Madness"
  318.  
  319. local sur = Instance.new("BillboardGui", char.Head)
  320. sur.Name = "Billboard"
  321. sur.Adornee = char.Head
  322. sur.Size = UDim2.new(8, 0, 3, 0)
  323. sur.StudsOffset = Vector3.new(0, 4, 0)
  324. local text = Instance.new("TextBox", sur)
  325. text.Text = "Madness"
  326. text.Size = UDim2.new(1, 0, 1, 0)
  327. text.TextScaled = true
  328. text.BackgroundTransparency = 1
  329. text.Font = Enum.Font.Arcade
  330. text.TextColor3 = BrickColor.new("Really black").Color
  331. text.TextStrokeTransparency = 0
  332. text.TextStrokeColor3 = BrickColor.new("Ghost grey").Color
  333.  
  334. ezweld = function(p, a, b, cf)
  335. local weld = Instance.new("Weld",p)
  336. weld.Part0 = a
  337. weld.Part1 = b
  338. weld.C0 = cf
  339. return weld
  340. end
  341.  
  342.  
  343. --Converted with ttyyuu12345's model to script plugin v4
  344. function sandbox(var,func)
  345. local env = getfenv(func)
  346. local newenv = setmetatable({},{
  347. __index = function(self,k)
  348. if k=="script" then
  349. return var
  350. else
  351. return env[k]
  352. end
  353. end,
  354. })
  355. setfenv(func,newenv)
  356. return func
  357. end
  358. cors = {}
  359. mas = Instance.new("Model",game:GetService("Lighting"))
  360. Wing1 = Instance.new("Model")
  361. WedgePart1 = Instance.new("WedgePart")
  362. Weld2 = Instance.new("Weld")
  363. Weld3 = Instance.new("Weld")
  364. Weld4 = Instance.new("Weld")
  365. WedgePart5 = Instance.new("WedgePart")
  366. WedgePart6 = Instance.new("WedgePart")
  367. WedgePart7 = Instance.new("WedgePart")
  368. Wing1.Name = "Wing1"
  369. Wing1.Parent = mas
  370. WedgePart1.Parent = Wing1
  371. WedgePart1.CFrame = CFrame.new(-66, 1, -118.875, 1, 0, 0, 0, 1.19248806e-08, 1, 0, -1, 1.19248806e-08)
  372. WedgePart1.Orientation = Vector3.new(-90, 0, 0)
  373. WedgePart1.Position = Vector3.new(-66, 1, -118.875)
  374. WedgePart1.Rotation = Vector3.new(-90, 0, 0)
  375. WedgePart1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  376. WedgePart1.Size = Vector3.new(0.25, 0.75, 2)
  377. WedgePart1.Anchored = true
  378. WedgePart1.BottomSurface = Enum.SurfaceType.Smooth
  379. WedgePart1.BrickColor = BrickColor.new("Really black")
  380. WedgePart1.Material = Enum.Material.Neon
  381. WedgePart1.brickColor = BrickColor.new("Really black")
  382. Weld2.Name = "BTWeld"
  383. Weld2.Parent = WedgePart1
  384. Weld2.C1 = CFrame.new(0, -0.75, 0, -1, -8.74227766e-08, 1.04250613e-15, 8.74227766e-08, -1, 2.38497613e-08, -1.04250613e-15, 2.38497613e-08, 1)
  385. Weld2.Part0 = WedgePart1
  386. Weld2.Part1 = WedgePart5
  387. Weld2.part1 = WedgePart5
  388. Weld3.Name = "BTWeld"
  389. Weld3.Parent = WedgePart1
  390. Weld3.C1 = CFrame.new(0, -1.25, 0, 1, 8.74227766e-08, 8.74227766e-08, -8.74227766e-08, 1.19248726e-08, 1, 8.74227766e-08, -1, 1.19248806e-08)
  391. Weld3.Part0 = WedgePart1
  392. Weld3.Part1 = WedgePart6
  393. Weld3.part1 = WedgePart6
  394. Weld4.Name = "BTWeld"
  395. Weld4.Parent = WedgePart1
  396. Weld4.C1 = CFrame.new(0, -1.25, 0.75, -1, 0, 8.74227766e-08, 8.74227766e-08, 1.19248806e-08, 1, -1.04250613e-15, 1, -1.19248806e-08)
  397. Weld4.Part0 = WedgePart1
  398. Weld4.Part1 = WedgePart7
  399. Weld4.part1 = WedgePart7
  400. WedgePart5.Parent = Wing1
  401. WedgePart5.CFrame = CFrame.new(-66, 1, -118.125, -1, 8.74227766e-08, -1.04250613e-15, 0, 1.19248806e-08, 1, 8.74227766e-08, 1, -1.19248806e-08)
  402. WedgePart5.Orientation = Vector3.new(-90, -180, 0)
  403. WedgePart5.Position = Vector3.new(-66, 1, -118.125)
  404. WedgePart5.Rotation = Vector3.new(-90, 0, -180)
  405. WedgePart5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  406. WedgePart5.Size = Vector3.new(0.25, 0.75, 2)
  407. WedgePart5.Anchored = true
  408. WedgePart5.BottomSurface = Enum.SurfaceType.Smooth
  409. WedgePart5.BrickColor = BrickColor.new("Really black")
  410. WedgePart5.Material = Enum.Material.Neon
  411. WedgePart5.brickColor = BrickColor.new("Really black")
  412. WedgePart6.Parent = Wing1
  413. WedgePart6.CFrame = CFrame.new(-66, 2.25, -118.875, 1, -8.74227766e-08, 8.74227766e-08, 8.74227766e-08, 1, -9.11387791e-23, -8.74227766e-08, 7.64274186e-15, 1)
  414. WedgePart6.Position = Vector3.new(-66, 2.25, -118.875)
  415. WedgePart6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  416. WedgePart6.Size = Vector3.new(0.25, 0.5, 0.75)
  417. WedgePart6.Anchored = true
  418. WedgePart6.BottomSurface = Enum.SurfaceType.Smooth
  419. WedgePart6.BrickColor = BrickColor.new("Really black")
  420. WedgePart6.Material = Enum.Material.Neon
  421. WedgePart6.brickColor = BrickColor.new("Really black")
  422. WedgePart7.Parent = Wing1
  423. WedgePart7.CFrame = CFrame.new(-66, 2.25, -118.125, -1, 8.74227766e-08, -1.04250613e-15, 8.74227766e-08, 1, -9.11387791e-23, 1.04250613e-15, 9.11387791e-23, -1)
  424. WedgePart7.Orientation = Vector3.new(0, -180, 0)
  425. WedgePart7.Position = Vector3.new(-66, 2.25, -118.125)
  426. WedgePart7.Rotation = Vector3.new(180, 0, -180)
  427. WedgePart7.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  428. WedgePart7.Size = Vector3.new(0.25, 0.5, 0.75)
  429. WedgePart7.Anchored = true
  430. WedgePart7.BottomSurface = Enum.SurfaceType.Smooth
  431. WedgePart7.BrickColor = BrickColor.new("Really black")
  432. WedgePart7.Material = Enum.Material.Neon
  433. WedgePart7.brickColor = BrickColor.new("Really black")
  434. WedgePart7.Name = "main"
  435. for i,v in pairs(mas:GetChildren()) do
  436. v.Parent = char
  437. pcall(function() v:MakeJoints() end)
  438. end
  439. for i,v in pairs(Wing1:GetChildren()) do
  440. v.Anchored = false
  441. v.CanCollide = false
  442. end
  443. mas:Destroy()
  444. for i,v in pairs(cors) do
  445. spawn(function()
  446. pcall(v)
  447. end)
  448. end
  449.  
  450. local sound = Instance.new("Sound",hed)
  451. sound.Playing = true
  452. sound.Looped = true
  453. sound.Volume = 10
  454. sound.SoundId = "rbxassetid://729622879"
  455.  
  456. local win1 = ezweld(Wing1.main, Wing1.main, Torso, CFrame.new(-0.75, -1.25, -2) * CFrame.Angles(0, 77, 0))
  457.  
  458. while true do
  459. swait()
  460. sine = sine + change
  461. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  462. local velderp = root.Velocity.y
  463. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  464. if equipped == true or equipped == false then
  465. if attack == false then
  466. idle = idle + 1
  467. else
  468. idle = 0
  469. end
  470. if 1 < root.Velocity.y and hitfloor == nil then
  471. Anim = "Jump"
  472. if attack == false then
  473. rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  474. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  475. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3)
  476. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3)
  477. LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  478. RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  479. end
  480. elseif -1 > root.Velocity.y and hitfloor == nil then
  481. Anim = "Fall"
  482. if attack == false then
  483. rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  484. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  485. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(90)),0.3)
  486. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-90)),0.3)
  487. LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  488. RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  489. end
  490. elseif torvel < 1 and hitfloor ~= nil then
  491. Anim = "Idle"
  492. change = .5
  493. if attack == false and Mode == "Madness" then
  494. VALUE1 = false
  495. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  496. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  497. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15)
  498. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  499. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  500. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  501. end
  502. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  503. Anim = "Walk"
  504. change = 1
  505. if attack == false then
  506. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  507. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  508. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(0), Rad(0), Rad(0 + 50 * Cos(sine / 7))), 0.15)
  509. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(0), Rad(0), Rad(0 + 50 * Cos(sine / 7))), 0.15)
  510. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0 + 50 * Cos(sine / 7)), Rad(0), Rad(0)), 0.1)
  511. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0 + -50 * Cos(sine / 7)), Rad(0), Rad(0)), 0.1)
  512. end
  513. end
  514. end
  515. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement