Advertisement
UnknownZealot

rattle me bones!

Aug 18th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.58 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84.  
  85. --/Paste below!
  86.  
  87.  
  88. Player = owner
  89. Character=Player.Character
  90. Character.Humanoid.Name = "noneofurbusiness"
  91. hum = Character.noneofurbusiness
  92. LeftArm=Character["Left Arm"]
  93. LeftLeg=Character["Left Leg"]
  94. RightArm=Character["Right Arm"]
  95. RightLeg=Character["Right Leg"]
  96. Root=Character["HumanoidRootPart"]
  97. Head=Character["Head"]
  98. Torso=Character["Torso"]
  99. Neck=Torso["Neck"]
  100. walking = false
  101. attacking = false
  102. running = false
  103. up = true
  104. down = false
  105. position = nil
  106. MseGuide = true
  107. squadid = 1947759284
  108. settime = 0.05
  109. sine = 0
  110. n = 0
  111. change = 1
  112. t = 0
  113. dgs = 75
  114. RunSrv = game:GetService("RunService")
  115. RenderStepped = game:GetService("RunService").RenderStepped
  116.  
  117. jurgenhurs = Instance.new("Sound",Torso)
  118. jurgenhurs.Volume = 4
  119. jurgenhurs.SoundId = "rbxassetid://1956230717"
  120.  
  121. mouse.KeyDown:connect(function(Press)
  122. Press=Press:lower()
  123. if Press=='t' then
  124. jurgenhurs:Play()
  125. end
  126. end)
  127.  
  128. godmode = coroutine.wrap(function()
  129. while true do
  130. hum.MaxHealth = math.huge
  131. wait(0.0000001)
  132. hum.Health = math.huge
  133. wait()
  134. end
  135. end)
  136. godmode()
  137. ff = Instance.new("ForceField", Character)
  138. ff.Visible = false
  139.  
  140.  
  141. squats = Instance.new("NumberValue")
  142. squats.Value = 0
  143.  
  144. squatmusic = Instance.new("Sound",Torso)
  145. squatmusic.Volume = 5
  146. squatmusic.SoundId = "rbxassetid://"..squadid
  147. squatmusic.Looped = true
  148. squatmusic:Play()
  149.  
  150. upp = Instance.new("Sound",Torso)
  151. upp.Volume = 5
  152. upp.Pitch = 1.1
  153. upp.SoundId = "rbxassetid://1948055056"
  154.  
  155. downn = Instance.new("Sound",Torso)
  156. downn.Volume = 5
  157. downn.Pitch = 1.1
  158. downn.SoundId = "rbxassetid://1948024901"
  159.  
  160. local function weldBetween(a, b)
  161. local weld = Instance.new("ManualWeld", a)
  162. weld.Part0 = a
  163. weld.Part1 = b
  164. weld.C0 = a.CFrame:inverse() * b.CFrame
  165. return weld
  166. end
  167.  
  168. coroutine.wrap(function()
  169. while wait() do
  170. squatmusic.SoundId = "rbxassetid://"..squadid
  171. squatmusic.Looped = true
  172. squatmusic.Pitch = 1
  173. squatmusic.Volume = 5
  174. squatmusic.Parent = Torso
  175. squatmusic:Resume()
  176. upp.Volume = 5
  177. upp.Pitch = 1.1
  178. upp.SoundId = "rbxassetid://1948055056"
  179. downn.Volume = 5
  180. downn.Pitch = 1.1
  181. downn.SoundId = "rbxassetid://1948024901"
  182.  
  183. if squats.Value < 10 then
  184. squadid = 1947759284
  185. squatmusic.SoundId = "rbxassetid://1947759284"
  186. elseif squats.Value < 25 then
  187. squadid = 1947760455
  188. squatmusic.SoundId = "rbxassetid://1947760455"
  189. elseif squats.Value < 50 then
  190. squadid = 1947762276
  191. squatmusic.SoundId = "rbxassetid://1947762276"
  192. elseif squats.Value < 100 then
  193. squadid = 1947763068
  194. squatmusic.SoundId = "rbxassetid://1947763068"
  195. elseif squats.Value < 150 then
  196. squadid = 1947763686
  197. squatmusic.SoundId = "rbxassetid://1947763686"
  198. elseif squats.Value < 199 then
  199. squadid = 1956489244
  200. squatmusic.SoundId = "rbxassetid://1956489244"
  201. elseif squats.Value > 199 then
  202. squadid = 1947764477
  203. squatmusic.Volume = 10
  204. squatmusic.SoundId = "rbxassetid://1947764477"
  205. end
  206. end
  207. end)()
  208.  
  209. coroutine.wrap(function()
  210. while true do
  211. if squats.Value > 199 then
  212. for i = 1, 20 do
  213. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView - 2
  214. wait()
  215. end
  216. for i = 1, 20 do
  217. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView + 2
  218. wait()
  219. end
  220. end
  221. wait()
  222. end
  223. end)()
  224.  
  225. DOYOUEVENLIFT = Instance.new("Part",Character)
  226. DOYOUEVENLIFT.Size = Vector3.new(1.01,1.01,1.01)
  227. DOYOUEVENLIFT.CanCollide = false
  228. DOYOUEVENLIFT.Transparency = 0
  229. DOYOUEVENLIFT.BrickColor = BrickColor.new("White")
  230. DOYOUEVENLIFT.Material = "Neon"
  231. DOYOUEVENLIFT.CFrame = Torso.CFrame
  232. DOYOUEVENLIFTmesh = Instance.new("SpecialMesh",DOYOUEVENLIFT)
  233. DOYOUEVENLIFTmesh.MeshId = "rbxassetid://122333663"
  234. DOYOUEVENLIFTmesh.TextureId = "rbxassetid://122333759"
  235. DOYOUEVENLIFTmesh.Scale = Vector3.new(1.9,2,2)
  236. DOYOUEVENLIFTweld = weldBetween(DOYOUEVENLIFT,Torso)
  237. DOYOUEVENLIFTweld.C0 = CFrame.new(0,-2.55,0)
  238.  
  239. local HEADLERP = Instance.new("ManualWeld")
  240. HEADLERP.Parent = Head
  241. HEADLERP.Part0 = Head
  242. HEADLERP.Part1 = Head
  243. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  244.  
  245. local TORSOLERP = Instance.new("ManualWeld")
  246. TORSOLERP.Parent = Root
  247. TORSOLERP.Part0 = Torso
  248. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  249.  
  250. local ROOTLERP = Instance.new("ManualWeld")
  251. ROOTLERP.Parent = Root
  252. ROOTLERP.Part0 = Root
  253. ROOTLERP.Part1 = Torso
  254. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  255.  
  256. local RIGHTARMLERP = Instance.new("ManualWeld")
  257. RIGHTARMLERP.Parent = RightArm
  258. RIGHTARMLERP.Part0 = RightArm
  259. RIGHTARMLERP.Part1 = Torso
  260. RIGHTARMLERP.C0 = CFrame.new(-1.3,1.7,0) * CFrame.Angles(math.rad(180),math.rad(0),math.rad(10))
  261.  
  262. local LEFTARMLERP = Instance.new("ManualWeld")
  263. LEFTARMLERP.Parent = LeftArm
  264. LEFTARMLERP.Part0 = LeftArm
  265. LEFTARMLERP.Part1 = Torso
  266. LEFTARMLERP.C0 = CFrame.new(1.3,1.7,0) * CFrame.Angles(math.rad(180),math.rad(0),math.rad(-10))
  267.  
  268. local RIGHTLEGLERP = Instance.new("ManualWeld")
  269. RIGHTLEGLERP.Parent = RightLeg
  270. RIGHTLEGLERP.Part0 = RightLeg
  271. RIGHTLEGLERP.Part1 = Torso
  272. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  273.  
  274. local LEFTLEGLERP = Instance.new("ManualWeld")
  275. LEFTLEGLERP.Parent = LeftLeg
  276. LEFTLEGLERP.Part0 = LeftLeg
  277. LEFTLEGLERP.Part1 = Torso
  278. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  279.  
  280. thetext = "Noob"
  281. coroutine.wrap(function()
  282. while wait() do
  283. if squats.Value < 10 then
  284. thetext = "Noob"
  285. elseif squats.Value < 25 then
  286. thetext = "Rookie"
  287. elseif squats.Value < 50 then
  288. thetext = "Amateur"
  289. elseif squats.Value < 100 then
  290. thetext = "Pro"
  291. elseif squats.Value < 150 then
  292. thetext = "Master"
  293. elseif squats.Value < 199 then
  294. thetext = "Legendary"
  295. elseif squats.Value > 199 then
  296. thetext = "OUT OF THIS WORLD!"
  297. end
  298. end
  299. end)()
  300.  
  301. b1 = Instance.new("BillboardGui",Head)
  302. b1.Size = UDim2.new(0,100,0,40)
  303. b1.StudsOffset = Vector3.new(0,3,0)
  304. b1.Adornee = Head
  305. b2 = Instance.new("TextLabel",b1)
  306. b2.BackgroundTransparency = 1
  307. coroutine.wrap(function()
  308. while wait() do
  309. b2.Text = "Squatting level: "..thetext
  310. end
  311. end)()
  312. b2.Font = "Arcade"
  313. b2.TextSize = 30
  314. b2.TextStrokeTransparency = 0
  315. b2.TextColor3 = BrickColor.new("Lime green").Color
  316. b2.TextStrokeColor3 = Color3.new(0,0,0)
  317. b2.Size = UDim2.new(1,0,0.5,0)
  318.  
  319. screenGui = Instance.new("ScreenGui")
  320. screenGui.Parent = script.Parent
  321.  
  322. fastmodee = Instance.new("TextButton")
  323. fastmodee.Parent = screenGui
  324. fastmodee.TextScaled = true
  325. fastmodee.Font = "Arcade"
  326. fastmodee.BackgroundTransparency = 1
  327. fastmodee.Position = UDim2.new(0, 1200, 0, 530)
  328. fastmodee.Size = UDim2.new(0, 150, 0, 50)
  329. fastmodee.BackgroundColor3 = BrickColor.White().Color
  330. fastmodee.Text = "Fast mode"
  331. fastmodee.TextColor = BrickColor.new("Really red")
  332. fastmode = false
  333.  
  334. fastmodee.MouseButton1Down:connect(function()
  335. if not fastmode then
  336. fastmode = true
  337. fastmodee.TextColor = BrickColor.new("Lime green")
  338. elseif fastmode then
  339. fastmodee.TextColor = BrickColor.new("Really red")
  340. fastmode = false
  341. end
  342. end)
  343.  
  344. squatw = Instance.new("TextLabel")
  345. squatw.Parent = screenGui
  346. squatw.TextScaled = true
  347. squatw.Font = "Arcade"
  348. squatw.BackgroundTransparency = 1
  349. squatw.Position = UDim2.new(0, 620, 0, 530)
  350. squatw.Size = UDim2.new(0, 150, 0, 50)
  351. squatw.BackgroundColor3 = BrickColor.White().Color
  352. squatw.Text = "Squats"
  353.  
  354. squatcounter = Instance.new("TextLabel")
  355. squatcounter.Parent = screenGui
  356. squatcounter.TextScaled = true
  357. squatcounter.Font = "Arcade"
  358. squatcounter.BackgroundTransparency = 1
  359. squatcounter.Position = UDim2.new(0, 544, 0, 555)
  360. squatcounter.Size = UDim2.new(0, 300, 0, 100)
  361. squatcounter.BackgroundColor3 = BrickColor.White().Color
  362. squatcounter.Text = "0"
  363.  
  364. light = Instance.new("PointLight", Torso)
  365. light.Color = Color3.new(0,0,0)
  366. light.Range = 0
  367. light.Brightness = 0
  368.  
  369. coroutine.wrap(function()
  370. c = 0
  371. while wait(.15) do
  372. c = c + 5
  373. squatcounter.Text = squats.Value
  374. if squats.Value > 199 then
  375. light.Range = 40
  376. light.Brightness = 40
  377. light.Color = BrickColor.Random().Color
  378. b2.TextColor3 = BrickColor.Random().Color
  379. squatcounter.TextColor3 = b2.TextColor3
  380. squatw.TextColor3 = b2.TextColor3
  381. end
  382. end
  383. end)()
  384.  
  385. coroutine.wrap(function()
  386. while wait() do
  387. if squats.Value > 199 then break end
  388. end
  389. sound = Instance.new("Sound",Torso)
  390. sound.Volume = 1
  391. sound.SoundId = "rbxassetid://157709133"
  392. sound:Play()
  393. particlemiter1 = Instance.new("ParticleEmitter", Torso)
  394. particlemiter1.Enabled = true
  395. particlemiter1.Texture = "rbxassetid://1955503112"
  396. particlemiter1.Lifetime = NumberRange.new(2.5)
  397. particlemiter1.Size = NumberSequence.new(1,0)
  398. particlemiter1.Rate = 50
  399. particlemiter1.VelocitySpread = 2000
  400. particlemiter1.RotSpeed = NumberRange.new(70)
  401. particlemiter1.Speed = NumberRange.new(50)
  402. particlemiter2 = Instance.new("ParticleEmitter", Torso)
  403. particlemiter2.Enabled = true
  404. particlemiter2.Texture = "rbxassetid://1956041489"
  405. particlemiter2.Lifetime = NumberRange.new(2.5)
  406. particlemiter2.Size = NumberSequence.new(1,0)
  407. particlemiter2.Rate = 50
  408. particlemiter2.VelocitySpread = 2000
  409. particlemiter2.RotSpeed = NumberRange.new(150)
  410. particlemiter2.Speed = NumberRange.new(50)
  411. particlemiter3 = Instance.new("ParticleEmitter", Torso)
  412. particlemiter3.Enabled = true
  413. particlemiter3.Texture = "rbxassetid://1956041141"
  414. particlemiter3.Lifetime = NumberRange.new(2.5)
  415. particlemiter3.Size = NumberSequence.new(1,0)
  416. particlemiter3.Rate = 50
  417. particlemiter3.VelocitySpread = 2000
  418. particlemiter3.RotSpeed = NumberRange.new(150)
  419. particlemiter3.Speed = NumberRange.new(50)
  420. coroutine.wrap(function()
  421. wait(1)
  422. bb1 = Instance.new("BillboardGui",Head)
  423. bb1.Size = UDim2.new(2.4,0,.9,0)
  424. bb1.StudsOffset = Vector3.new(0,6,0)
  425. bb1.AlwaysOnTop = true
  426. bb1.Adornee = Head
  427. smokeweed = Instance.new("ImageLabel",bb1)
  428. smokeweed.BackgroundTransparency = 1
  429. smokeweed.Image = "rbxassetid://293105733"
  430. smokeweed.Size = UDim2.new(1,0,1.5,0)
  431. for i = 1, 20 do
  432. bb1.StudsOffset = bb1.StudsOffset - Vector3.new(0,.28,0)
  433. wait()
  434. end
  435. end)()
  436. frame = Instance.new("Frame")
  437. frame.Parent = screenGui
  438. frame.Position = UDim2.new(0, 8, 0, -500)
  439. frame.Size = UDim2.new(100000000,10000000,10000000,10000000)
  440. frame.BackgroundColor3 = BrickColor.new("White").Color
  441. frame.BackgroundTransparency = 0
  442. ball = Instance.new("Part",Torso)
  443. ball.Shape = "Ball"
  444. ball.Size = Vector3.new(0,0,0)
  445. ball.BrickColor = BrickColor.new("White")
  446. ball.Anchored = true
  447. ball.CanCollide = false
  448. ball.Material = "Neon"
  449. ball.CFrame = Torso.CFrame
  450. coroutine.wrap(function()
  451. for i = 1, 20 do
  452. ball.Transparency = ball.Transparency + 0.05
  453. ball.Size = ball.Size + Vector3.new(2,2,2)
  454. wait()
  455. end
  456. end)()
  457. wait(.5)
  458. for i = 1, 20 do
  459. frame.BackgroundTransparency = frame.BackgroundTransparency + 0.05
  460. wait()
  461. end
  462. end)()
  463.  
  464. coroutine.wrap(function()
  465. settime = 0.05
  466. while wait() do
  467. if squats.Value > 199 then
  468. hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-0,0))
  469. squatw.Rotation = squatw.Rotation + 10
  470. squatcounter.Position = UDim2.new(0, math.random(530,550), 0, math.random(550,570))
  471. sine = sine + change
  472. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.Angles(math.rad(0), math.rad(0), math.rad(0 + 15 * math.sin(sine/12))),.3)
  473. end
  474. end
  475. end)()
  476.  
  477. mouse.Button1Down:connect(function()
  478. if up then
  479. up = false
  480. down = true
  481. downn:Play()
  482. ROOTLERP.C0 = CFrame.new(0, -.8, 0)
  483. RIGHTLEGLERP.C0 = CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0))
  484. LEFTLEGLERP.C0 = CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0))
  485. elseif down then
  486. down = false
  487. up = true
  488. upp:Play()
  489. if fastmode then
  490. squats.Value = squats.Value + 5
  491. elseif not fastmode then
  492. squats.Value = squats.Value + 1
  493. end
  494. ROOTLERP.C0 = CFrame.new(0, 0, 0)
  495. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  496. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  497. end
  498. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement