Advertisement
HenloMyDude

jojo bighead (TUSK STOP FAT)

Sep 13th, 2019
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.76 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. local sanic = false
  144. local plr = owner
  145. print('Local User is '..plr.Name)
  146. print('Jojo Bighead Loaded')
  147. local char = plr.Character
  148. local hum = char:FindFirstChildOfClass'Humanoid'
  149. local hed = char.Head
  150. local root = char:FindFirstChild'HumanoidRootPart'
  151. local rootj = root.RootJoint
  152. local tors = char.Torso
  153. local ra = char["Right Arm"]
  154. local la = char["Left Arm"]
  155. local rl = char["Right Leg"]
  156. local ll = char["Left Leg"]
  157. local neck = tors["Neck"]
  158. local mouse = plr:GetMouse()
  159. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  160. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  161. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  162. local maincolor = BrickColor.new("Really black")
  163. local disach = false
  164. sine = 0
  165. -------------------------------------------------------
  166. --Start Good Stuff--
  167. -------------------------------------------------------
  168. cam = game.Workspace.CurrentCamera
  169. CF = CFrame.new
  170. angles = CFrame.Angles
  171. attack = false
  172. Euler = CFrame.fromEulerAnglesXYZ
  173. Rad = math.rad
  174. IT = Instance.new
  175. BrickC = BrickColor.new
  176. Cos = math.cos
  177. Acos = math.acos
  178. Sin = math.sin
  179. Asin = math.asin
  180. Abs = math.abs
  181. Mrandom = math.random
  182. Floor = math.floor
  183. -------------------------------------------------------
  184. --End Good Stuff--
  185. -------------------------------------------------------
  186. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  187. RW = Instance.new("Weld")
  188. LW = Instance.new("Weld")
  189. RH = tors["Right Hip"]
  190. LH = tors["Left Hip"]
  191. RW.Name = "RW"
  192. RW.Part0 = tors
  193. RW.C0 = CF(1.5, 0.5, 0)
  194. RW.C1 = CF(0, 0.5, 0)
  195. RW.Part1 = ra
  196. RW.Parent = tors
  197. LW.Name = "LW"
  198. LW.Part0 = tors
  199. LW.C0 = CF(-1.5, 0.5, 0)
  200. LW.C1 = CF(0, 0.5, 0)
  201. LW.Part1 = la
  202. LW.Parent = tors
  203. Effects = {}
  204. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  205. local wld = Instance.new("Weld", wp1)
  206. wld.Part0 = wp0
  207. wld.Part1 = wp1
  208. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  209. end
  210. newWeld(tors, ll, -0.5, -1, 0)
  211. ll.Weld.C1 = CFrame.new(0, 1, 0)
  212. newWeld(tors, rl, 0.5, -1, 0)
  213. rl.Weld.C1 = CFrame.new(0, 1, 0)
  214. -------------------------------------------------------
  215. --Start HeartBeat--
  216. -------------------------------------------------------
  217. ArtificialHB = Instance.new("BindableEvent", script)
  218. ArtificialHB.Name = "Heartbeat"
  219. script:WaitForChild("Heartbeat")
  220.  
  221. frame = 1 / 60
  222. tf = 0
  223. allowframeloss = false
  224. tossremainder = false
  225.  
  226.  
  227. lastframe = tick()
  228. script.Heartbeat:Fire()
  229.  
  230.  
  231. game:GetService("RunService").Heartbeat:connect(function(s, p)
  232. tf = tf + s
  233. if tf >= frame then
  234. if allowframeloss then
  235. script.Heartbeat:Fire()
  236. lastframe = tick()
  237. else
  238. for i = 1, math.floor(tf / frame) do
  239. script.Heartbeat:Fire()
  240. end
  241. lastframe = tick()
  242. end
  243. if tossremainder then
  244. tf = 0
  245. else
  246. tf = tf - frame * math.floor(tf / frame)
  247. end
  248. end
  249. end)
  250. -------------------------------------------------------
  251. --End HeartBeat--
  252. -------------------------------------------------------
  253.  
  254. -------------------------------------------------------
  255. --Start Important Functions--
  256. -------------------------------------------------------
  257. function swait(num)
  258. if num == 0 or num == nil then
  259. game:service("RunService").Stepped:wait(0)
  260. else
  261. for i = 0, num do
  262. game:service("RunService").Stepped:wait(0)
  263. end
  264. end
  265. end
  266. function thread(f)
  267. coroutine.resume(coroutine.create(f))
  268. end
  269. function clerp(a, b, t)
  270. local qa = {
  271. QuaternionFromCFrame(a)
  272. }
  273. local qb = {
  274. QuaternionFromCFrame(b)
  275. }
  276. local ax, ay, az = a.x, a.y, a.z
  277. local bx, by, bz = b.x, b.y, b.z
  278. local _t = 1 - t
  279. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  280. end
  281. function QuaternionFromCFrame(cf)
  282. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  283. local trace = m00 + m11 + m22
  284. if trace > 0 then
  285. local s = math.sqrt(1 + trace)
  286. local recip = 0.5 / s
  287. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  288. else
  289. local i = 0
  290. if m00 < m11 then
  291. i = 1
  292. end
  293. if m22 > (i == 0 and m00 or m11) then
  294. i = 2
  295. end
  296. if i == 0 then
  297. local s = math.sqrt(m00 - m11 - m22 + 1)
  298. local recip = 0.5 / s
  299. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  300. elseif i == 1 then
  301. local s = math.sqrt(m11 - m22 - m00 + 1)
  302. local recip = 0.5 / s
  303. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  304. elseif i == 2 then
  305. local s = math.sqrt(m22 - m00 - m11 + 1)
  306. local recip = 0.5 / s
  307. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  308. end
  309. end
  310. end
  311. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  312. local xs, ys, zs = x + x, y + y, z + z
  313. local wx, wy, wz = w * xs, w * ys, w * zs
  314. local xx = x * xs
  315. local xy = x * ys
  316. local xz = x * zs
  317. local yy = y * ys
  318. local yz = y * zs
  319. local zz = z * zs
  320. 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))
  321. end
  322. function QuaternionSlerp(a, b, t)
  323. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  324. local startInterp, finishInterp
  325. if cosTheta >= 1.0E-4 then
  326. if 1 - cosTheta > 1.0E-4 then
  327. local theta = math.acos(cosTheta)
  328. local invSinTheta = 1 / Sin(theta)
  329. startInterp = Sin((1 - t) * theta) * invSinTheta
  330. finishInterp = Sin(t * theta) * invSinTheta
  331. else
  332. startInterp = 1 - t
  333. finishInterp = t
  334. end
  335. elseif 1 + cosTheta > 1.0E-4 then
  336. local theta = math.acos(-cosTheta)
  337. local invSinTheta = 1 / Sin(theta)
  338. startInterp = Sin((t - 1) * theta) * invSinTheta
  339. finishInterp = Sin(t * theta) * invSinTheta
  340. else
  341. startInterp = t - 1
  342. finishInterp = t
  343. end
  344. 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
  345. end
  346. function rayCast(Position, Direction, Range, Ignore)
  347. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  348. end
  349. local RbxUtility = LoadLibrary("RbxUtility")
  350. local Create = RbxUtility.Create
  351.  
  352. -------------------------------------------------------
  353. --Start Character Creation--
  354. -------------------------------------------------------
  355.  
  356. ezweld = function(p, a, b, cf)
  357. local weld = Instance.new("Weld",p)
  358. weld.Part0 = a
  359. weld.Part1 = b
  360. weld.C0 = cf
  361. return weld
  362. end
  363. hed.Transparency = 1
  364.  
  365. plr:ClearCharacterAppearance()
  366.  
  367. bighead = Instance.new("Part",char)
  368. bighead.CanCollide = false
  369. bighead.Size = Vector3.new(0.1, 0.1, 0.1)
  370. bigmesh = Instance.new("SpecialMesh",bighead)
  371. bigmesh.MeshId = "rbxassetid://1047997"
  372. bigmesh.TextureId = "rbxassetid://1047998"
  373. bigweld = ezweld(char, bighead, hed, CFrame.new(0, -0.45, 0))
  374.  
  375. top = Instance.new("Shirt",char)
  376. top.ShirtTemplate = "http://www.roblox.com/asset/?id=3066880319"
  377. bottom = Instance.new("Pants",char)
  378. bottom.PantsTemplate = "http://www.roblox.com/asset/?id=3066880319"
  379.  
  380. ll.BrickColor = BrickColor.new("Really black")
  381. rl.BrickColor = ll.BrickColor
  382. tors.BrickColor = BrickColor.new("New Yeller")
  383. la.BrickColor = tors.BrickColor
  384. ra.BrickColor = tors.BrickColor
  385.  
  386. -------------------------------------------------------
  387. --End Character Creation--
  388. -------------------------------------------------------
  389. local equipped = false
  390. local idle = 0
  391. local change = 1
  392. local val = 0
  393. local toim = 0
  394. local idleanim = 0.4
  395. local sine = 0
  396. local movelegs = false
  397. local FF = Instance.new("ForceField",char)
  398. FF.Visible = false
  399. local Speed = 16
  400. local Jump = 80
  401. local rK = false
  402. local DBT = false
  403. local CurrentS = 0
  404. local Paused = false
  405. ----------------------------------------------------------------------------------
  406. hum.Animator.Parent = nil
  407. char.Animate.Parent = nil
  408. hum.MaxHealth = 100
  409. hum.Health = 100
  410. SONG = 627848963
  411. ----------------------------------------------------------------------------------
  412.  
  413. function Cso(ID, PARENT, VOLUME, PITCH)
  414. local NSound = nil
  415. coroutine.resume(coroutine.create(function()
  416. NSound = IT("Sound", PARENT)
  417. NSound.Volume = VOLUME
  418. NSound.Pitch = PITCH
  419. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  420. swait()
  421. NSound:play()
  422. game:GetService("Debris"):AddItem(NSound, 10)
  423. end))
  424. return NSound
  425. end
  426.  
  427. local MainTheme = Instance.new("Sound",hed)
  428. MainTheme.Looped = true
  429. MainTheme.Volume = 7
  430. MainTheme.SoundId = "rbxassetid://" ..SONG
  431. MainTheme:Play()
  432.  
  433. -------------------------------------------------------
  434. --Start Attacks--
  435. -------------------------------------------------------
  436. function Land(SR)
  437. spawn(function()
  438. if DBT == false and attack == true and SR < -15 and rK == false then
  439. DBT = true
  440. Speed = Speed / 2
  441. Jump = 0
  442. Cso("268933900", root, 6.5, 1)
  443. for i = 0, 2, 0.1 do
  444. swait()
  445. 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)
  446. 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)
  447. 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)
  448. 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)
  449. 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)
  450. 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)
  451. end
  452. attack = false
  453. spawn(function()
  454. wait(0.1)
  455. Speed = 16
  456. Jump = 80
  457. DBT = false
  458. end)
  459. else
  460. attack = false
  461. end
  462. end)
  463. end
  464. HOLD = false
  465. function MUDAMUDA()
  466. HOLD = true
  467. attack = true
  468. bigmesh.TextureId = "rbxassetid://3887200142"
  469. local boom = tors.Touched:connect(function(hit)
  470. if not hit.Parent:FindFirstChild("ihityou") and hit.Parent ~= char then
  471. local bang = Instance.new("NumberValue",hit.Parent)
  472. bang.Value = 0
  473. bang.Name = "ihityou"
  474. end
  475. if hit.Parent:FindFirstChild("ihityou") and hit.Parent ~= char then
  476. local bang = hit.Parent:FindFirstChild("ihityou")
  477. bang.Value = bang.Value + 1
  478. if bang.Value > 9 then
  479. local ex = Instance.new("Explosion",char)
  480. ex.Position = hit.Parent:FindFirstChild("Head").Position
  481. end
  482. end
  483. end)
  484. repeat
  485. for i = 1,5 do
  486. swait()
  487. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0) * angles(Rad(15), Rad(0), Rad(0)), 0.05)
  488. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(-15), Rad(0 - 10 * Sin(sine / 12)), Rad(-0 + 5 * Cos(sine / 16))), 0.05)
  489. RW.C0 = clerp(RW.C0, CF(1.5, -0.25, -2) * angles(Rad(90), Rad(0), Rad(0)), 0.05)
  490. LW.C0 = clerp(LW.C0, CF(-1.5, -0.25, 0) * angles(Rad(90), Rad(0), Rad(0)), 0.05)
  491. 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)
  492. 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)
  493. end
  494. for i = 1,5 do
  495. swait()
  496. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0) * angles(Rad(15), Rad(0), Rad(0)), 0.05)
  497. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(-15), Rad(0 - 10 * Sin(sine / 12)), Rad(-0 + 5 * Cos(sine / 16))), 0.05)
  498. RW.C0 = clerp(RW.C0, CF(1.5, 0.25, 0) * angles(Rad(90), Rad(0), Rad(0)), 0.05)
  499. LW.C0 = clerp(LW.C0, CF(-1.5, 0.25, -2) * angles(Rad(90), Rad(0), Rad(0)), 0.05)
  500. 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)
  501. 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)
  502. end
  503. until HOLD == false
  504. attack = false
  505. boom:disconnect()
  506. bigmesh.TextureId = "rbxassetid://1047998"
  507. end
  508.  
  509. function HEREWEGO()
  510. if sanic == false then
  511. local S = Instance.new("Sound",hed)S.SoundId = "rbxassetid://537371462" S.Volume = 10 S:Play()
  512. wait(1.15)
  513. sanic = true
  514. MainTheme.SoundId = "rbxassetid://1246460167"
  515. else
  516. sanic = false
  517. hum.WalkSpeed = 16
  518. MainTheme.SoundId = "rbxassetid://" ..SONG
  519. end
  520. end
  521.  
  522. function Dangbelikethat()
  523. attack = true
  524. Speed = 3
  525. Cso("164174763", hed, 10, 1)
  526. bigmesh.TextureId = "rbxassetid://3887200142"
  527. for i = 0, 5, 0.1 do
  528. swait()
  529. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  530. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(-30 - 6 * Cos(sine / 8)), Rad(0), Rad(-0)), 0.1)
  531. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(120 + 8.5 * Sin(sine / 16)), Rad(0), Rad(10 + 5 * Cos(sine / 8))), 0.1)
  532. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(120 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.1)
  533. 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.1)
  534. 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.1)
  535. end
  536. for i = 0, 3, 0.1 do
  537. swait()
  538. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  539. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(10 - 6 * Cos(sine / 8)), Rad(0), Rad(-0)), 0.1)
  540. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(35 + 8.5 * Sin(sine / 16)), Rad(0), Rad(10 + 5 * Cos(sine / 8))), 0.1)
  541. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(35 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.1)
  542. 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.1)
  543. 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.1)
  544. end
  545. attack = false
  546. Speed = 16
  547. bigmesh.TextureId = "rbxassetid://1047998"
  548. end
  549.  
  550. function dab()
  551. bigmesh.TextureId = "rbxassetid://3887200623"
  552. attack = true
  553. Cso(291394633, hed, 10, 1)
  554. for i = 0,16 do
  555. swait()
  556. rootj.C0=clerp(rootj.C0,RootCF*CF(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(15),math.rad(-10),math.rad(0)),0.15)
  557. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  558. 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)
  559. 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)
  560. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5+0.1*math.sin(sine/30), -0.6) * angles(math.rad(-0), math.rad(10), math.rad(-110)), 0.1)
  561. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(-0), math.rad(-10), math.rad(-105)), 0.1)
  562. end
  563. attack = false
  564. bigmesh.TextureId = "rbxassetid://1047998"
  565. end
  566.  
  567. -------------------------------------------------------
  568. --End Attacks--
  569. -------------------------------------------------------
  570.  
  571. mouse.KeyDown:connect(function(key)
  572. key = key:lower()
  573. if key == "u" then
  574. dab()
  575. end
  576. if key == "t" and attack == false then
  577. Dangbelikethat()
  578. end
  579. if key == "e" then
  580. HEREWEGO()
  581. end
  582. end)
  583.  
  584. mouse.Button1Down:connect(function()
  585. if attack == false then
  586. MUDAMUDA()
  587. end
  588. end)
  589.  
  590. mouse.Button1Up:connect(function()
  591. HOLD = false
  592. end)
  593.  
  594. -------------------------------------------------------
  595. --Start Animations--
  596. -------------------------------------------------------
  597.  
  598. equipped = true
  599. movelegs = true
  600. blinking = false
  601.  
  602. coroutine.resume(coroutine.create(function()
  603. while true do
  604. swait()
  605. local randomboi = math.random(1, 200)
  606. if randomboi == 1 and blinking == false and attack == false then
  607. blinking = true
  608. for i = 1,8.5 do
  609. swait()
  610. blinking = true
  611. bigmesh.TextureId = "rbxassetid://3887200623"
  612. end
  613. for i = 1,8.5 do
  614. swait()
  615. blinking = false
  616. bigmesh.TextureId = "rbxassetid://1047998"
  617. end
  618. blinking = false
  619. end
  620. end
  621. end))
  622.  
  623. while true do
  624. swait()
  625. sine = sine + change
  626. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  627. local velderp = root.Velocity.y
  628. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  629. neartouch = game:service("Workspace"):FindPartOnRay(Ray.new(root.Position, (CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 6), char)
  630. if equipped == true or equipped == false then
  631. local Walking = (math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1)
  632. 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")
  633. local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
  634. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  635. if (State == 'Jump') then
  636. if attack == false then
  637. 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)
  638. 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)
  639. 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)
  640. 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)
  641. 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)
  642. 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)
  643. end
  644. elseif (State == 'Fall') then
  645. if neartouch ~= nil and attack == false then
  646. attack = true
  647. Land(root.Velocity.y)
  648. end
  649. if attack == false then
  650. 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)
  651. 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)
  652. 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)
  653. 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)
  654. 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)
  655. 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)
  656. end
  657. elseif (State == 'Idle') then
  658. --local hell = GetClientProperty(MUSIC,'PlaybackLoudness')/15
  659. change = 0.5 --+ hell/35
  660. if attack == false then
  661. if sanic == true then
  662. hum.WalkSpeed = 16
  663. end
  664. 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)
  665. 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)
  666. 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)
  667. 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)
  668. 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)
  669. 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)
  670. end
  671. elseif (State == 'Walk') then
  672. change = 0.9
  673. if attack == false then
  674. if sanic == true then
  675. hum.WalkSpeed = hum.WalkSpeed + 0.25
  676. end
  677. 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)
  678. 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)
  679. 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)
  680. 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)
  681. 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)
  682. 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)
  683. elseif attack == true and movelegs == true then
  684. 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)
  685. 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)
  686. end
  687. elseif(State == 'Sit') then
  688. if attack == false then
  689. 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)
  690. 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)
  691. 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)
  692. 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)
  693. 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)
  694. 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)
  695. end
  696. end
  697. end
  698. for _, c in pairs(char:GetChildren()) do
  699. if c.ClassName == "Part" and c.Name ~= "Detail" and c.Name ~= "Adds" then
  700. if c == hed then
  701. c.Transparency = 1
  702. if c:FindFirstChild("face") then
  703. c.face:Remove()
  704. end
  705. end
  706. elseif c.ClassName == "Accessory" or c.Name == "Body Colors" then
  707. c:remove()
  708. end
  709. end
  710. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement