Advertisement
HenloMyDude

Jojo Bighead

Sep 13th, 2019
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.18 KB | None | 0 0
  1.  
  2.  
  3. --JOJO BIGHEAD--
  4.  
  5. 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 = {}
  6. do
  7. script.Parent = owner.Character
  8. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  9. local function NewFakeEvent()
  10. local Bind = Instance.new("BindableEvent")
  11. local Fake;Fake = {Connections = {},
  12. fakeEvent=true;
  13. Connect=function(self,Func)
  14. Bind.Event:connect(Func)
  15. self.Connections[Bind] = true
  16. return setmetatable({Connected = true},{
  17. __index = function (self,Index)
  18. if Index:lower() == "disconnect" then
  19. return function() Fake.Connections[Bind] = false;self.Connected = false end
  20. end
  21. return Fake[Index]
  22. end;
  23. __tostring = function() return "Connection" end;
  24. })
  25. end}
  26. Fake.connect = Fake.Connect;return Fake;
  27. end
  28. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  29. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  30. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  31. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  32. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  33. local function TriggerEvent(self,Event,...)
  34. local Trigger = Mouse[Event]
  35. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  36. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  37. end
  38. end
  39. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  40. Event.OnServerEvent:Connect(function(FiredBy,Input)
  41. if FiredBy.Name ~= owner.Name then return end
  42. if Input.MouseEvent then
  43. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  44. else
  45. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  46. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  47. for _,Action in pairs(ContextActionService.Actions) do
  48. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  49. end
  50. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  51. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  52. end
  53. end)
  54. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  55. Event.Parent = NLS([[
  56. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  57. local Input = function(Input,gameProcessedEvent)
  58. if gameProcessedEvent then return end
  59. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  60. end
  61. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  62. local Hit,Target
  63. while wait(1/30) do
  64. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  65. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  66. end
  67. end
  68. ]],owner.Character)
  69. end
  70. RealGame = game;game = setmetatable({},{
  71. __index = function (self,Index)
  72. local Sandbox = function (Thing)
  73. if Thing:IsA("Player") then
  74. local RealPlayer = Thing
  75. return setmetatable({},{
  76. __index = function (self,Index)
  77. local Type = type(RealPlayer[Index])
  78. if Type == "function" then
  79. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  80. return function (self)return InternalData["Mouse"] end
  81. end
  82. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  83. end
  84. return RealPlayer[Index]
  85. end;
  86. __tostring = function(self) return RealPlayer.Name end
  87. })
  88. end
  89. end
  90. if RealGame[Index] then
  91. local Type = type(RealGame[Index])
  92. if Type == "function" then
  93. if Index:lower() == "getservice" or Index:lower() == "service" then
  94. return function (self,Service)
  95. local FakeServices = {
  96. ["players"] = function()
  97. return setmetatable({},{
  98. __index = function (self2,Index2)
  99. local RealService = RealGame:GetService(Service)
  100. local Type2 = type(Index2)
  101. if Type2 == "function" then
  102. return function (self,...) return RealService[Index2](RealService,...)end
  103. else
  104. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  105. return RealService[Index2]
  106. end
  107. end;
  108. __tostring = function(self) return RealGame:GetService(Service).Name end
  109. })
  110. end;
  111. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  112. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  113. ["runservice"] = function()
  114. return setmetatable({},{
  115. __index = function(self2,Index2)
  116. local RealService = RealGame:GetService(Service)
  117. local Type2 = type(Index2)
  118. if Type2 == "function" then
  119. return function (self,...) return RealService[Index2](RealService,...) end
  120. else
  121. local RunServices = {
  122. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  123. ["renderstepped"] = function() return RealService["Stepped"] end
  124. }
  125. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  126. return RealService[Index2]
  127. end
  128. end
  129. })
  130. end
  131. }
  132. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  133. return RealGame:GetService(Service)
  134. end
  135. end
  136. return function (self,...) return RealGame[Index](RealGame,...) end
  137. else
  138. if game:GetService(Index) then return game:GetService(Index) end
  139. return RealGame[Index]
  140. end
  141. end
  142. return nil
  143. end
  144. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  145.  
  146. local plr = game:service'Players'.LocalPlayer
  147. print('Local User is '..plr.Name)
  148. print('Jojo Bighead Loaded')
  149. print([[
  150. 0
  151. ]])
  152. local char = plr.Character
  153. local hum = char:FindFirstChildOfClass'Humanoid'
  154. local hed = char.Head
  155. local root = char:FindFirstChild'HumanoidRootPart'
  156. local rootj = root.RootJoint
  157. local tors = char.Torso
  158. local ra = char["Right Arm"]
  159. local la = char["Left Arm"]
  160. local rl = char["Right Leg"]
  161. local ll = char["Left Leg"]
  162. local neck = tors["Neck"]
  163. local mouse = plr:GetMouse()
  164. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  165. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  166. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  167. local maincolor = BrickColor.new("Really black")
  168. local disach = false
  169. -------------------------------------------------------
  170. --Start Good Stuff--
  171. -------------------------------------------------------
  172. cam = game.Workspace.CurrentCamera
  173. CF = CFrame.new
  174. angles = CFrame.Angles
  175. attack = false
  176. Euler = CFrame.fromEulerAnglesXYZ
  177. Rad = math.rad
  178. IT = Instance.new
  179. BrickC = BrickColor.new
  180. Cos = math.cos
  181. Acos = math.acos
  182. Sin = math.sin
  183. Asin = math.asin
  184. Abs = math.abs
  185. Mrandom = math.random
  186. Floor = math.floor
  187. -------------------------------------------------------
  188. --End Good Stuff--
  189. -------------------------------------------------------
  190. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  191. RSH, LSH = nil, nil
  192. RW = Instance.new("Weld")
  193. LW = Instance.new("Weld")
  194. RH = tors["Right Hip"]
  195. LH = tors["Left Hip"]
  196. RSH = tors["Right Shoulder"]
  197. LSH = tors["Left Shoulder"]
  198. RSH.Parent = nil
  199. LSH.Parent = nil
  200. RW.Name = "RW"
  201. RW.Part0 = tors
  202. RW.C0 = CF(1.5, 0.5, 0)
  203. RW.C1 = CF(0, 0.5, 0)
  204. RW.Part1 = ra
  205. RW.Parent = tors
  206. LW.Name = "LW"
  207. LW.Part0 = tors
  208. LW.C0 = CF(-1.5, 0.5, 0)
  209. LW.C1 = CF(0, 0.5, 0)
  210. LW.Part1 = la
  211. LW.Parent = tors
  212. Effects = {}
  213. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  214. local wld = Instance.new("Weld", wp1)
  215. wld.Part0 = wp0
  216. wld.Part1 = wp1
  217. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  218. end
  219. newWeld(tors, ll, -0.5, -1, 0)
  220. ll.Weld.C1 = CFrame.new(0, 1, 0)
  221. newWeld(tors, rl, 0.5, -1, 0)
  222. rl.Weld.C1 = CFrame.new(0, 1, 0)
  223. -------------------------------------------------------
  224. --Start HeartBeat--
  225. -------------------------------------------------------
  226. ArtificialHB = Instance.new("BindableEvent", script)
  227. ArtificialHB.Name = "Heartbeat"
  228. script:WaitForChild("Heartbeat")
  229.  
  230. frame = 1 / 60
  231. tf = 0
  232. allowframeloss = false
  233. tossremainder = false
  234.  
  235.  
  236. lastframe = tick()
  237. script.Heartbeat:Fire()
  238.  
  239.  
  240. game:GetService("RunService").Heartbeat:connect(function(s, p)
  241. tf = tf + s
  242. if tf >= frame then
  243. if allowframeloss then
  244. script.Heartbeat:Fire()
  245. lastframe = tick()
  246. else
  247. for i = 1, math.floor(tf / frame) do
  248. script.Heartbeat:Fire()
  249. end
  250. lastframe = tick()
  251. end
  252. if tossremainder then
  253. tf = 0
  254. else
  255. tf = tf - frame * math.floor(tf / frame)
  256. end
  257. end
  258. end)
  259. -------------------------------------------------------
  260. --End HeartBeat--
  261. -------------------------------------------------------
  262.  
  263. -------------------------------------------------------
  264. --Start Important Functions--
  265. -------------------------------------------------------
  266. function swait(num)
  267. if num == 0 or num == nil then
  268. game:service("RunService").Stepped:wait(0)
  269. else
  270. for i = 0, num do
  271. game:service("RunService").Stepped:wait(0)
  272. end
  273. end
  274. end
  275. function thread(f)
  276. coroutine.resume(coroutine.create(f))
  277. end
  278. function clerp(a, b, t)
  279. local qa = {
  280. QuaternionFromCFrame(a)
  281. }
  282. local qb = {
  283. QuaternionFromCFrame(b)
  284. }
  285. local ax, ay, az = a.x, a.y, a.z
  286. local bx, by, bz = b.x, b.y, b.z
  287. local _t = 1 - t
  288. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  289. end
  290. function QuaternionFromCFrame(cf)
  291. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  292. local trace = m00 + m11 + m22
  293. if trace > 0 then
  294. local s = math.sqrt(1 + trace)
  295. local recip = 0.5 / s
  296. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  297. else
  298. local i = 0
  299. if m00 < m11 then
  300. i = 1
  301. end
  302. if m22 > (i == 0 and m00 or m11) then
  303. i = 2
  304. end
  305. if i == 0 then
  306. local s = math.sqrt(m00 - m11 - m22 + 1)
  307. local recip = 0.5 / s
  308. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  309. elseif i == 1 then
  310. local s = math.sqrt(m11 - m22 - m00 + 1)
  311. local recip = 0.5 / s
  312. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  313. elseif i == 2 then
  314. local s = math.sqrt(m22 - m00 - m11 + 1)
  315. local recip = 0.5 / s
  316. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  317. end
  318. end
  319. end
  320. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  321. local xs, ys, zs = x + x, y + y, z + z
  322. local wx, wy, wz = w * xs, w * ys, w * zs
  323. local xx = x * xs
  324. local xy = x * ys
  325. local xz = x * zs
  326. local yy = y * ys
  327. local yz = y * zs
  328. local zz = z * zs
  329. 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))
  330. end
  331. function QuaternionSlerp(a, b, t)
  332. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  333. local startInterp, finishInterp
  334. if cosTheta >= 1.0E-4 then
  335. if 1 - cosTheta > 1.0E-4 then
  336. local theta = math.acos(cosTheta)
  337. local invSinTheta = 1 / Sin(theta)
  338. startInterp = Sin((1 - t) * theta) * invSinTheta
  339. finishInterp = Sin(t * theta) * invSinTheta
  340. else
  341. startInterp = 1 - t
  342. finishInterp = t
  343. end
  344. elseif 1 + cosTheta > 1.0E-4 then
  345. local theta = math.acos(-cosTheta)
  346. local invSinTheta = 1 / Sin(theta)
  347. startInterp = Sin((t - 1) * theta) * invSinTheta
  348. finishInterp = Sin(t * theta) * invSinTheta
  349. else
  350. startInterp = t - 1
  351. finishInterp = t
  352. end
  353. 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
  354. end
  355. function rayCast(Position, Direction, Range, Ignore)
  356. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  357. end
  358. local RbxUtility = LoadLibrary("RbxUtility")
  359. local Create = RbxUtility.Create
  360.  
  361. -------------------------------------------------------
  362. --Start Character Creation--
  363. -------------------------------------------------------
  364.  
  365. ezweld = function(p, a, b, cf)
  366. local weld = Instance.new("Weld",p)
  367. weld.Part0 = a
  368. weld.Part1 = b
  369. weld.C0 = cf
  370. return weld
  371. end
  372. hed.Transparency = 1
  373.  
  374. plr:ClearCharacterAppearance()
  375.  
  376. bighead = Instance.new("Part",char)
  377. bighead.CanCollide = false
  378. bighead.Size = Vector3.new(0.1, 0.1, 0.1)
  379. bigmesh = Instance.new("SpecialMesh",bighead)
  380. bigmesh.MeshId = "rbxassetid://1047997"
  381. bigmesh.TextureId = "rbxassetid://1047998"
  382. bigweld = ezweld(char, bighead, hed, CFrame.new(0, -0.45, 0))
  383.  
  384. top = Instance.new("Shirt",char)
  385. top.ShirtTemplate = "http://www.roblox.com/asset/?id=3066880319"
  386. bottom = Instance.new("Pants",char)
  387. bottom.PantsTemplate = "http://www.roblox.com/asset/?id=3066880319"
  388.  
  389. ll.BrickColor = BrickColor.new("Really black")
  390. rl.BrickColor = ll.BrickColor
  391. tors.BrickColor = BrickColor.new("New Yeller")
  392. la.BrickColor = tors.BrickColor
  393. ra.BrickColor = tors.BrickColor
  394.  
  395. -------------------------------------------------------
  396. --End Character Creation--
  397. -------------------------------------------------------
  398. -------------------------------------------------------
  399. --Start Attacks--
  400. -------------------------------------------------------
  401. function Land(SR)
  402. spawn(function()
  403. if DBT == false and attack == true and SR < -15 and rK == false then
  404. DBT = true
  405. Speed = Speed / 2
  406. Jump = 0
  407. Cso("268933900", root, 6.5, 1)
  408. for i = 0, 2, 0.1 do
  409. swait()
  410. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15)
  411. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.15)
  412. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, 0.1 - 0.1 * Cos(sine / 20), -0.3) * angles(Rad(15), Rad(-8 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(-3.5), Rad(0), Rad(2)), 0.15)
  413. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, 0.1 - 0.1 * Cos(sine / 20), -0.3) * angles(Rad(15), Rad(8 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(-3.5), Rad(0), Rad(-2)), 0.15)
  414. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(20), Rad(-0.6), Rad(25 + 4.5 * Sin(sine / 20))), 0.15)
  415. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(20), Rad(-0.6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.15)
  416. end
  417. attack = false
  418. spawn(function()
  419. wait(0.1)
  420. Speed = 16
  421. Jump = 80
  422. DBT = false
  423. end)
  424. else
  425. attack = false
  426. end
  427. end)
  428. end
  429. -------------------------------------------------------
  430. --End Attacks--
  431. -------------------------------------------------------
  432. char.Humanoid.Animator:Destroy()
  433. -------------------------------------------------------
  434. --Start Animations--
  435. -------------------------------------------------------
  436. equipped = true
  437. movelegs = true
  438. sine = 0
  439. while true do
  440. swait()
  441. sine = sine + change
  442. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  443. local velderp = root.Velocity.y
  444. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  445. neartouch = game:service("Workspace"):FindPartOnRay(Ray.new(root.Position, (CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 6), char)
  446. if equipped == true or equipped == false then
  447. local Walking = (math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1)
  448. local State = (hum.PlatformStand and 'Paralyzed' or hum.Sit and 'Sit' or not hitfloor and root.Velocity.y < -1 and "Fall" or not hitfloor and root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle")
  449. local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
  450. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  451. if (State == 'Jump') then
  452. if attack == false then
  453. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10 + 3 * Cos(sine / 20)), Rad(0), Rad(0)), 0.1)
  454. neck.C0 = clerp(neck.C0, necko * CF(0, 0, ((1) - 1)) * angles(Rad(-50 + 6 * Sin(sine / 20)), Rad(0), Rad(0 + 9 * Cos(sine / 38))), 0.1)
  455. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.8 - 0.1 * Cos(sine / 20) - Rad(0) , -0.3) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(-20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1)
  456. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.5 - 0.1 * Cos(sine / 20) + Rad(0) , -0.7) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1)
  457. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(170 + 10 * Cos(sine / 20)), Rad(10), Rad(10 + 6 * Sin(sine / 20))), 0.2)
  458. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(170 + 10 * Cos(sine / 20)), Rad(-10), Rad(-10 - 6 * Sin(sine / 20))), 0.2)
  459. end
  460. elseif (State == 'Fall') then
  461. if neartouch ~= nil and attack == false then
  462. attack = true
  463. Land(root.Velocity.y)
  464. end
  465. if attack == false then
  466. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(0), Rad(0)), 0.1)
  467. neck.C0 = clerp(neck.C0, necko * CF(0, 0, ((1) - 1)) * angles(Rad(20 + 6 * Sin(sine / 20)), Rad(0), Rad(0 + 9 * Cos(sine / 38))), 0.1)
  468. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.9 - 0.1 * Cos(sine / 20) - Rad(0) , 0) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(-20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1)
  469. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.9 - 0.1 * Cos(sine / 20) + Rad(0) , 0) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1)
  470. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(100 + 10 * Cos(sine / 20)), Rad(10), Rad(45 + 6 * Sin(sine / 20))), 0.1)
  471. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(100 + 10 * Cos(sine / 20)), Rad(-10), Rad(-45 - 6 * Sin(sine / 20))), 0.1)
  472. end
  473. elseif (State == 'Idle') then
  474. --local hell = GetClientProperty(MUSIC,'PlaybackLoudness')/15
  475. change = 0.5 --+ hell/35
  476. if attack == false then
  477. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
  478. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0 - 6 * Cos(sine / 8)), Rad(0 - 10 * Sin(sine / 12)), Rad(-0 + 5 * Cos(sine / 16))), 0.05)
  479. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(0), Rad(10 + 5 * Cos(sine / 8))), 0.05)
  480. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.05)
  481. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.05)
  482. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.05)
  483. end
  484. elseif (State == 'Walk') then
  485. change = 0.9
  486. if attack == false then
  487. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0 - 0.25 * Cos(sine / (WALKSPEEDVALUE / 2))) * angles(Rad(6 + 3 * Sin(sine / (WALKSPEEDVALUE / 2))) -Rad(TiltVelocity.z) * 1, Rad(0) -Rad(TiltVelocity.x) * 0.4, Rad(0 - 4.75 * Cos(sine / WALKSPEEDVALUE )) + root.RotVelocity.Y / 75), 0.1)
  488. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(-5 + 5 * Sin(sine / (WALKSPEEDVALUE / 2))), Rad(0), Rad(0) -Rad(TiltVelocity.x) * 3), 0.1)
  489. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.9 - 0.35 * Cos(sine / WALKSPEEDVALUE) / 2, -0.2 + 0.6 * Cos(sine / WALKSPEEDVALUE) / 2) * angles(Rad(-5 - 15 * Cos(sine / WALKSPEEDVALUE)) - root.RotVelocity.Y / 75 + -Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 + 25 * math.sin(sine / WALKSPEEDVALUE)*-math.rad(TiltVelocity.x)*5.5)), 0.3)
  490. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.9 + 0.35 * Cos(sine / WALKSPEEDVALUE) / 2, -0.2 - 0.6 * Cos(sine / WALKSPEEDVALUE) / 2) * angles(Rad(-5 + 15 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 + Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 + 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5)), 0.3)
  491. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / WALKSPEEDVALUE), 0 - 0.2 * Cos(sine / WALKSPEEDVALUE)) * angles(Rad(50 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 * -math.rad(TiltVelocity.z) * 10, Rad(10 * Cos(sine / WALKSPEEDVALUE)), Rad(5 - 7 * Sin(sine / (WALKSPEEDVALUE / 2))) - root.RotVelocity.Y / 75), 0.1)
  492. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / WALKSPEEDVALUE), 0 + 0.2 * Cos(sine / WALKSPEEDVALUE)) * angles(Rad(-50 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / 75 * -math.rad(TiltVelocity.z) * 10, Rad(10 * Cos(sine / WALKSPEEDVALUE)), Rad(-5 + 7 * Sin(sine / (WALKSPEEDVALUE / 2))) + root.RotVelocity.Y / -75), 0.1)
  493. elseif attack == true and movelegs == true then
  494. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.9 - 0.5 * Cos(sine / WALKSPEEDVALUE) / 2, -0.2 + 0.6 * Cos(sine / WALKSPEEDVALUE) / 2) * angles(Rad(-15 - 10 * Cos(sine / WALKSPEEDVALUE)) - root.RotVelocity.Y / 75 + -Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 - 25 * math.sin(sine / WALKSPEEDVALUE)*-math.rad(TiltVelocity.x)*5.5)), 0.3)
  495. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.9 + 0.5 * Cos(sine / WALKSPEEDVALUE) / 2, -0.2 - 0.6 * Cos(sine / WALKSPEEDVALUE) / 2) * angles(Rad(-15 + 10 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 + Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 - 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5)), 0.3)
  496. end
  497. elseif(State == 'Sit') then
  498. if attack == false then
  499. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1)
  500. neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1) - 1)) * angles(Rad(25 - 5 * Cos(sine / 20)), Rad(0), Rad(0)), 0.1)
  501. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.9 - 0.1 * Cos(sine / 20) - Rad(0) , -0.3) * angles(Rad(65), Rad(-5), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 20)), Rad(0), Rad(8)), 0.1)
  502. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.9 - 0.1 * Cos(sine / 20) + Rad(0) , 0) * angles(Rad(65), Rad(5), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 20)), Rad(0), Rad(-8)), 0.1)
  503. RW.C0 = clerp(RW.C0, CF(1.5, 0.4 - 0.1 * Cos(sine / 20), -0.2) * angles(Rad(20), Rad(-15), Rad(10)), 0.1)
  504. LW.C0 = clerp(LW.C0, CF(-1.5, 0.4 - 0.1 * Cos(sine / 20), -0.2) * angles(Rad(20), Rad(15), Rad(-10)), 0.1)
  505. end
  506. end
  507. end
  508. for _, c in pairs(char:GetChildren()) do
  509. if c.ClassName == "Part" and c.Name ~= "Detail" and c.Name ~= "Adds" then
  510. if c == hed then
  511. c.Transparency = 1
  512. if c:FindFirstChild("face") then
  513. c.face:Remove()
  514. end
  515. end
  516. elseif c.ClassName == "Accessory" or c.Name == "Body Colors" then
  517. c:remove()
  518. end
  519. end
  520. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement