SHOW:
|
|
- or go back to the newest paste.
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 | local RealPlayer = Player | |
4 | do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer | |
5 | script.Parent = InternalData.RealOwner.Character | |
6 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event | |
7 | local function createObject (connections, index) | |
8 | local proxy = newproxy (true);local meta = getmetatable (proxy); | |
9 | local runbind = function (self, i, ...) connections[i]:Fire (...); end; | |
10 | while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end; | |
11 | meta.__index = function (self, i) | |
12 | if (i == 'TriggerEvent') then return runbind end; | |
13 | return connections[i] and connections[i].Event or index[i]; | |
14 | end; | |
15 | meta.__newindex = index;meta.__metatable = false;return proxy | |
16 | end; | |
17 | local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()}) | |
18 | local UserInputService = createObject({"InputBegan","InputEnded"},{}) | |
19 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
20 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
21 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
22 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
23 | if FiredBy ~= InternalData.RealOwner then return end | |
24 | if Input.MouseEvent then | |
25 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
26 | elseif Input.Sound then | |
27 | if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end | |
28 | else | |
29 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
30 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end | |
31 | for _,Action in pairs(ContextActionService.Actions) do | |
32 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
33 | end | |
34 | Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
35 | end | |
36 | end) | |
37 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
38 | Event.Parent = NLS([[ | |
39 | local Player = owner; | |
40 | local Sounds = {}; | |
41 | local Event = script:WaitForChild("UserInput"); | |
42 | local UserInputService = game:GetService("UserInputService"); | |
43 | local Mouse = Player:GetMouse(); | |
44 | local Input = function(Input,gameProcessedEvent) | |
45 | if gameProcessedEvent then return end | |
46 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
47 | end | |
48 | Event.OnClientEvent:connect(function(Args) | |
49 | if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end | |
50 | end) | |
51 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
52 | local Hit,Target | |
53 | while wait(1/30) do | |
54 | for x,Sound in pairs(Sounds) do | |
55 | if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end | |
56 | end | |
57 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
58 | Hit = Mouse.Hit;Target = Mouse.Target; | |
59 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
60 | end | |
61 | end | |
62 | ]],InternalData.RealOwner.Character) | |
63 | end | |
64 | InternalData.NewOwner = setmetatable({},{ | |
65 | __index = function (self,Index) | |
66 | local Type = type(InternalData.RealOwner[Index]) | |
67 | if Type == "function" then | |
68 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
69 | return function (self)return InternalData["Mouse"] end | |
70 | end | |
71 | return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end | |
72 | elseif Index == "FakePlayer" then | |
73 | return true | |
74 | end | |
75 | return InternalData.RealOwner[Index] | |
76 | end; | |
77 | __tostring = function(self) return tostring(InternalData.RealOwner) end | |
78 | }) | |
79 | --LoadLibrary("RbxUtility").Create | |
80 | InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library) | |
81 | if Library == "RbxUtility" then | |
82 | return setmetatable({},{ | |
83 | __tostring = function() return "RbxUtility" end; | |
84 | __index = function(self, Index) | |
85 | if Index:lower() == "create" then | |
86 | return function(Type) | |
87 | return function(Data) | |
88 | Data = Data or {} | |
89 | local Inst = Instance.new(Type) | |
90 | for x,y in pairs(Data) do | |
91 | if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end | |
92 | if y == owner then y = InternalData.RealOwner end | |
93 | Inst[x] = y | |
94 | end | |
95 | return Inst | |
96 | end | |
97 | end | |
98 | end | |
99 | return InternalData.LoadLibrary(Library)[Index] | |
100 | end | |
101 | }) | |
102 | end | |
103 | return InternalData.LoadLibrary(Library) | |
104 | end | |
105 | InternalData.RealInstance = Instance;Instance = setmetatable({},{ | |
106 | __index = function (self,Index) | |
107 | if Index:lower() == 'new' then | |
108 | return function (Type, Parent) | |
109 | if Parent == owner then Parent = InternalData.RealOwner end | |
110 | if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end | |
111 | local Real = InternalData.RealInstance.new(Type,Parent) | |
112 | if not Type then return end | |
113 | if Type == "BillboardGui" then | |
114 | local ToReturn = setmetatable({},{ | |
115 | __index = function (self,Index) | |
116 | if type(Real[Index]) == "function" then | |
117 | if Index:lower() == "clone" then | |
118 | return function (self) | |
119 | local Real = Real:Clone() | |
120 | local ToReturn = setmetatable({RealObject = Real},{ | |
121 | __index = function (self,Index) | |
122 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
123 | return Real[Index] | |
124 | end; | |
125 | __newindex = function (self,Index,Value) | |
126 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
127 | if Value == owner then Value = InternalData.RealOwner end | |
128 | Real[Index] = Value | |
129 | end; | |
130 | __tostring = function(self) return tostring(Real) end; | |
131 | }) | |
132 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
133 | end | |
134 | end | |
135 | return function (self,...) return Real[Index](Real,...)end | |
136 | end | |
137 | return Real[Index] | |
138 | end; | |
139 | __newindex = function (self,Index,Value) | |
140 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
141 | if Value == owner then Value = InternalData.RealOwner end | |
142 | Real[Index] = Value | |
143 | end; | |
144 | __tostring = function(self) return tostring(Real) end; | |
145 | }) | |
146 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
147 | elseif Type:lower() == "sound" then | |
148 | Real.Parent = owner.Character; | |
149 | local ToReturn = setmetatable({RealObject = Real},{ | |
150 | __index = function (self,Index) | |
151 | if Index:lower() == "playbackloudness" then | |
152 | return InternalData.SoundLoudness[Real] or 0 | |
153 | elseif type(Real[Index]) == "function" then | |
154 | if Index:lower() == "clone" then | |
155 | return function (self) | |
156 | local Real = Real:Clone() | |
157 | local ToReturn = setmetatable({},{ | |
158 | __index = function (self,Index) | |
159 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
160 | return Real[Index] | |
161 | end; | |
162 | __newindex = function (self,Index,Value) | |
163 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
164 | if Value == owner then Value = InternalData.RealOwner end | |
165 | Real[Index] = Value | |
166 | end; | |
167 | __tostring = function(self) return tostring(Real) end; | |
168 | }) | |
169 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
170 | end | |
171 | end | |
172 | return function (self,...) return Real[Index](Real,...)end | |
173 | end | |
174 | return Real[Index] | |
175 | end; | |
176 | __newindex = function (self,Index,Value) | |
177 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
178 | if Value == owner then Value = InternalData.RealOwner end | |
179 | Real[Index] = Value | |
180 | end; | |
181 | __tostring = function(self) return tostring(Real) end; | |
182 | }) | |
183 | InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn; | |
184 | else | |
185 | local ToReturn = setmetatable({RealObject = Real},{ | |
186 | __index = function (self,Index) | |
187 | if type(Real[Index]) == "function" then | |
188 | if Index:lower() == "clone" then | |
189 | return function (self) | |
190 | local Real = Real:Clone() | |
191 | local ToReturn = setmetatable({},{ | |
192 | __index = function (self,Index) | |
193 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
194 | return Real[Index] | |
195 | end; | |
196 | __newindex = function (self,Index,Value) | |
197 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
198 | if Value == owner then Value = InternalData.RealOwner end | |
199 | Real[Index] = Value | |
200 | end; | |
201 | __tostring = function(self) return tostring(Real) end; | |
202 | }) | |
203 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
204 | end | |
205 | end | |
206 | return function (self,...) return Real[Index](Real,...)end | |
207 | end | |
208 | return Real[Index] | |
209 | end; | |
210 | __newindex = function (self,Index,Value) | |
211 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
212 | if Value == owner then Value = InternalData.RealOwner end | |
213 | Real[Index] = Value | |
214 | end; | |
215 | __tostring = function(self) return tostring(Real) end; | |
216 | }) | |
217 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
218 | end | |
219 | end | |
220 | end | |
221 | return InternalData.RealInstance[Index] | |
222 | end; | |
223 | __tostring = function(self) return tostring(InternalData.RealInstance) end; | |
224 | }); | |
225 | InternalData.RealGame = game;game = setmetatable({},{ | |
226 | __index = function (self,Index) | |
227 | if InternalData.RealGame[Index] then | |
228 | local Type = type(InternalData.RealGame[Index]) | |
229 | if Type == "function" then | |
230 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
231 | return function (self,Service) | |
232 | local FakeServices = { | |
233 | ["players"] = function() | |
234 | return setmetatable({},{ | |
235 | __index = function (self2,Index2) | |
236 | local RealService = InternalData.RealGame:GetService(Service) | |
237 | local Type2 = type(RealService[Index2]) | |
238 | if Type2 == "function" then | |
239 | return function (self,...) return RealService[Index2](RealService,...)end | |
240 | else | |
241 | if Index2:lower() == "localplayer" then return InternalData.NewOwner end | |
242 | return RealService[Index2] | |
243 | end | |
244 | end; | |
245 | __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end | |
246 | }) | |
247 | end; | |
248 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
249 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
250 | ["debris"] = function() | |
251 | return setmetatable({},{ | |
252 | __index = function(self2,Index2) | |
253 | local RealService = InternalData.RealGame:GetService(Service) | |
254 | local Type2 = type(RealService[Index2]) | |
255 | if Type2 == "function" then | |
256 | if Index2:lower() == "additem" then | |
257 | return function (self,Item,Time) | |
258 | if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end | |
259 | return RealService:AddItem(Item,Time) | |
260 | end | |
261 | end | |
262 | return function (self,...) return RealService[Index2](RealService,...) end | |
263 | end | |
264 | return RealService[Index2] | |
265 | end; | |
266 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end | |
267 | }) | |
268 | end; | |
269 | ["runservice"] = function() | |
270 | return setmetatable({},{ | |
271 | __index = function(self2,Index2) | |
272 | local RealService = InternalData.RealGame:GetService(Service) | |
273 | local Type2 = type(RealService[Index2]) | |
274 | if Type2 == "function" then | |
275 | return function (self,...) return RealService[Index2](RealService,...) end | |
276 | else | |
277 | local RunServices = { | |
278 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
279 | ["renderstepped"] = function() return RealService["Stepped"] end | |
280 | } | |
281 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
282 | return RealService[Index2] | |
283 | end | |
284 | end; | |
285 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end | |
286 | }) | |
287 | end | |
288 | } | |
289 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
290 | return InternalData.RealGame:GetService(Service) | |
291 | end | |
292 | end | |
293 | return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end | |
294 | else | |
295 | if game:GetService(Index) then return game:GetService(Index) end | |
296 | return InternalData.RealGame[Index] | |
297 | end | |
298 | end | |
299 | return nil | |
300 | end; | |
301 | __tostring = function(self) return tostring(InternalData.game) end | |
302 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!") | |
303 | ||
304 | --LUDWIG VON BALLENCRUSHER TELLS YOU TO GET OFF YOUR DESK, AND BEGIN SQUAT!!!-- | |
305 | --MAKE YOUR HOME COUNTRY PROUD!!!-- | |
306 | --ROOOOOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHH!!!!!!!!!!!!!!!!!!!!!!!!-- | |
307 | Player=game:GetService("Players").LocalPlayer | |
308 | Character=Player.Character | |
309 | Character.Humanoid.Name = "noneofurbusiness" | |
310 | hum = Character.noneofurbusiness | |
311 | LeftArm=Character["Left Arm"] | |
312 | LeftLeg=Character["Left Leg"] | |
313 | RightArm=Character["Right Arm"] | |
314 | RightLeg=Character["Right Leg"] | |
315 | Root=Character["HumanoidRootPart"] | |
316 | Head=Character["Head"] | |
317 | Torso=Character["Torso"] | |
318 | Neck=Torso["Neck"] | |
319 | mouse = Player:GetMouse() | |
320 | walking = false | |
321 | attacking = false | |
322 | running = false | |
323 | up = true | |
324 | down = false | |
325 | position = nil | |
326 | MseGuide = true | |
327 | squadid = 1947759284 | |
328 | settime = 0.05 | |
329 | sine = 0 | |
330 | n = 0 | |
331 | change = 1 | |
332 | t = 0 | |
333 | dgs = 75 | |
334 | mouse = Player:GetMouse() | |
335 | RunSrv = game:GetService("RunService") | |
336 | RenderStepped = game:GetService("RunService").RenderStepped | |
337 | ||
338 | jurgenhurs = Instance.new("Sound",Torso) | |
339 | jurgenhurs.Volume = 4 | |
340 | jurgenhurs.SoundId = "rbxassetid://1956230717" | |
341 | ||
342 | mouse.KeyDown:connect(function(Press) | |
343 | Press=Press:lower() | |
344 | if Press=='t' then | |
345 | jurgenhurs:Play() | |
346 | end | |
347 | end) | |
348 | ||
349 | godmode = coroutine.wrap(function() | |
350 | while true do | |
351 | hum.MaxHealth = math.huge | |
352 | wait(0.0000001) | |
353 | hum.Health = math.huge | |
354 | wait() | |
355 | end | |
356 | end) | |
357 | godmode() | |
358 | ff = Instance.new("ForceField", Character) | |
359 | ff.Visible = false | |
360 | ||
361 | ||
362 | squats = Instance.new("NumberValue") | |
363 | squats.Value = 0 | |
364 | ||
365 | squatmusic = Instance.new("Sound",Torso) | |
366 | squatmusic.Volume = 5 | |
367 | squatmusic.SoundId = "rbxassetid://"..squadid | |
368 | squatmusic.Looped = true | |
369 | squatmusic:Play() | |
370 | ||
371 | upp = Instance.new("Sound",Torso) | |
372 | upp.Volume = 5 | |
373 | upp.Pitch = 1.1 | |
374 | upp.SoundId = "rbxassetid://1948055056" | |
375 | ||
376 | downn = Instance.new("Sound",Torso) | |
377 | downn.Volume = 5 | |
378 | downn.Pitch = 1.1 | |
379 | downn.SoundId = "rbxassetid://1948024901" | |
380 | ||
381 | local function weldBetween(a, b) | |
382 | local weld = Instance.new("ManualWeld", a) | |
383 | weld.Part0 = a | |
384 | weld.Part1 = b | |
385 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
386 | return weld | |
387 | end | |
388 | ||
389 | coroutine.wrap(function() | |
390 | while wait() do | |
391 | squatmusic.SoundId = "rbxassetid://"..squadid | |
392 | squatmusic.Looped = true | |
393 | squatmusic.Pitch = 1 | |
394 | squatmusic.Volume = 5 | |
395 | squatmusic.Parent = Torso | |
396 | squatmusic:Resume() | |
397 | upp.Volume = 5 | |
398 | upp.Pitch = 1.1 | |
399 | upp.SoundId = "rbxassetid://1948055056" | |
400 | downn.Volume = 5 | |
401 | downn.Pitch = 1.1 | |
402 | downn.SoundId = "rbxassetid://1948024901" | |
403 | ||
404 | if squats.Value < 10 then | |
405 | squadid = 1947759284 | |
406 | squatmusic.SoundId = "rbxassetid://1947759284" | |
407 | elseif squats.Value < 25 then | |
408 | squadid = 1947760455 | |
409 | squatmusic.SoundId = "rbxassetid://1947760455" | |
410 | elseif squats.Value < 50 then | |
411 | squadid = 1947762276 | |
412 | squatmusic.SoundId = "rbxassetid://1947762276" | |
413 | elseif squats.Value < 100 then | |
414 | squadid = 1947763068 | |
415 | squatmusic.SoundId = "rbxassetid://1947763068" | |
416 | elseif squats.Value < 150 then | |
417 | squadid = 1947763686 | |
418 | squatmusic.SoundId = "rbxassetid://1947763686" | |
419 | elseif squats.Value < 199 then | |
420 | squadid = 1956489244 | |
421 | squatmusic.SoundId = "rbxassetid://1956489244" | |
422 | elseif squats.Value > 199 then | |
423 | squadid = 1947764477 | |
424 | squatmusic.Volume = 10 | |
425 | squatmusic.SoundId = "rbxassetid://1947764477" | |
426 | end | |
427 | end | |
428 | end)() | |
429 | ||
430 | coroutine.wrap(function() | |
431 | while true do | |
432 | if squats.Value > 199 then | |
433 | for i = 1, 20 do | |
434 | game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView - 2 | |
435 | wait() | |
436 | end | |
437 | for i = 1, 20 do | |
438 | game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView + 2 | |
439 | wait() | |
440 | end | |
441 | end | |
442 | wait() | |
443 | end | |
444 | end)() | |
445 | ||
446 | DOYOUEVENLIFT = Instance.new("Part",Character) | |
447 | DOYOUEVENLIFT.Size = Vector3.new(1.01,1.01,1.01) | |
448 | DOYOUEVENLIFT.CanCollide = false | |
449 | DOYOUEVENLIFT.Transparency = 0 | |
450 | DOYOUEVENLIFT.BrickColor = BrickColor.new("White") | |
451 | DOYOUEVENLIFT.Material = "Neon" | |
452 | DOYOUEVENLIFT.CFrame = Torso.CFrame | |
453 | DOYOUEVENLIFTmesh = Instance.new("SpecialMesh",DOYOUEVENLIFT) | |
454 | DOYOUEVENLIFTmesh.MeshId = "rbxassetid://122333663" | |
455 | DOYOUEVENLIFTmesh.TextureId = "rbxassetid://122333759" | |
456 | DOYOUEVENLIFTmesh.Scale = Vector3.new(1.9,2,2) | |
457 | DOYOUEVENLIFTweld = weldBetween(DOYOUEVENLIFT,Torso) | |
458 | DOYOUEVENLIFTweld.C0 = CFrame.new(0,-2.55,0) | |
459 | ||
460 | local HEADLERP = Instance.new("ManualWeld") | |
461 | HEADLERP.Parent = Head | |
462 | HEADLERP.Part0 = Head | |
463 | HEADLERP.Part1 = Head | |
464 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
465 | ||
466 | local TORSOLERP = Instance.new("ManualWeld") | |
467 | TORSOLERP.Parent = Root | |
468 | TORSOLERP.Part0 = Torso | |
469 | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
470 | ||
471 | local ROOTLERP = Instance.new("ManualWeld") | |
472 | ROOTLERP.Parent = Root | |
473 | ROOTLERP.Part0 = Root | |
474 | ROOTLERP.Part1 = Torso | |
475 | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
476 | ||
477 | local RIGHTARMLERP = Instance.new("ManualWeld") | |
478 | RIGHTARMLERP.Parent = RightArm | |
479 | RIGHTARMLERP.Part0 = RightArm | |
480 | RIGHTARMLERP.Part1 = Torso | |
481 | RIGHTARMLERP.C0 = CFrame.new(-1.3,1.7,0) * CFrame.Angles(math.rad(180),math.rad(0),math.rad(10)) | |
482 | ||
483 | local LEFTARMLERP = Instance.new("ManualWeld") | |
484 | LEFTARMLERP.Parent = LeftArm | |
485 | LEFTARMLERP.Part0 = LeftArm | |
486 | LEFTARMLERP.Part1 = Torso | |
487 | LEFTARMLERP.C0 = CFrame.new(1.3,1.7,0) * CFrame.Angles(math.rad(180),math.rad(0),math.rad(-10)) | |
488 | ||
489 | local RIGHTLEGLERP = Instance.new("ManualWeld") | |
490 | RIGHTLEGLERP.Parent = RightLeg | |
491 | RIGHTLEGLERP.Part0 = RightLeg | |
492 | RIGHTLEGLERP.Part1 = Torso | |
493 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
494 | ||
495 | local LEFTLEGLERP = Instance.new("ManualWeld") | |
496 | LEFTLEGLERP.Parent = LeftLeg | |
497 | LEFTLEGLERP.Part0 = LeftLeg | |
498 | LEFTLEGLERP.Part1 = Torso | |
499 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
500 | ||
501 | thetext = "Noob" | |
502 | coroutine.wrap(function() | |
503 | while wait() do | |
504 | if squats.Value < 10 then | |
505 | thetext = "Noob" | |
506 | elseif squats.Value < 25 then | |
507 | thetext = "Rookie" | |
508 | elseif squats.Value < 50 then | |
509 | thetext = "Amateur" | |
510 | elseif squats.Value < 100 then | |
511 | thetext = "Pro" | |
512 | elseif squats.Value < 150 then | |
513 | thetext = "Master" | |
514 | elseif squats.Value < 199 then | |
515 | thetext = "Legendary" | |
516 | elseif squats.Value > 199 then | |
517 | thetext = "OUT OF THIS WORLD!" | |
518 | end | |
519 | end | |
520 | end)() | |
521 | ||
522 | b1 = Instance.new("BillboardGui",Head) | |
523 | b1.Size = UDim2.new(0,100,0,40) | |
524 | b1.StudsOffset = Vector3.new(0,3,0) | |
525 | b1.Adornee = Head | |
526 | b2 = Instance.new("TextLabel",b1) | |
527 | b2.BackgroundTransparency = 1 | |
528 | coroutine.wrap(function() | |
529 | while wait() do | |
530 | b2.Text = "Squatting level: "..thetext | |
531 | end | |
532 | end)() | |
533 | b2.Font = "Arcade" | |
534 | b2.TextSize = 30 | |
535 | b2.TextStrokeTransparency = 0 | |
536 | b2.TextColor3 = BrickColor.new("Lime green").Color | |
537 | b2.TextStrokeColor3 = Color3.new(0,0,0) | |
538 | b2.Size = UDim2.new(1,0,0.5,0) | |
539 | ||
540 | screenGui = Instance.new("ScreenGui") | |
541 | screenGui.Parent = script.Parent | |
542 | ||
543 | fastmodee = Instance.new("TextButton") | |
544 | fastmodee.Parent = screenGui | |
545 | fastmodee.TextScaled = true | |
546 | fastmodee.Font = "Arcade" | |
547 | fastmodee.BackgroundTransparency = 1 | |
548 | fastmodee.Position = UDim2.new(0, 1200, 0, 530) | |
549 | fastmodee.Size = UDim2.new(0, 150, 0, 50) | |
550 | fastmodee.BackgroundColor3 = BrickColor.White().Color | |
551 | fastmodee.Text = "Fast mode" | |
552 | fastmodee.TextColor = BrickColor.new("Really red") | |
553 | fastmode = false | |
554 | ||
555 | fastmodee.MouseButton1Down:connect(function() | |
556 | if not fastmode then | |
557 | fastmode = true | |
558 | fastmodee.TextColor = BrickColor.new("Lime green") | |
559 | elseif fastmode then | |
560 | fastmodee.TextColor = BrickColor.new("Really red") | |
561 | fastmode = false | |
562 | end | |
563 | end) | |
564 | ||
565 | squatw = Instance.new("TextLabel") | |
566 | squatw.Parent = screenGui | |
567 | squatw.TextScaled = true | |
568 | squatw.Font = "Arcade" | |
569 | squatw.BackgroundTransparency = 1 | |
570 | squatw.Position = UDim2.new(0, 620, 0, 530) | |
571 | squatw.Size = UDim2.new(0, 150, 0, 50) | |
572 | squatw.BackgroundColor3 = BrickColor.White().Color | |
573 | squatw.Text = "Squats" | |
574 | ||
575 | squatcounter = Instance.new("TextLabel") | |
576 | squatcounter.Parent = screenGui | |
577 | squatcounter.TextScaled = true | |
578 | squatcounter.Font = "Arcade" | |
579 | squatcounter.BackgroundTransparency = 1 | |
580 | squatcounter.Position = UDim2.new(0, 544, 0, 555) | |
581 | squatcounter.Size = UDim2.new(0, 300, 0, 100) | |
582 | squatcounter.BackgroundColor3 = BrickColor.White().Color | |
583 | squatcounter.Text = "0" | |
584 | ||
585 | light = Instance.new("PointLight", Torso) | |
586 | light.Color = Color3.new(0,0,0) | |
587 | light.Range = 0 | |
588 | light.Brightness = 0 | |
589 | ||
590 | coroutine.wrap(function() | |
591 | c = 0 | |
592 | while wait(.15) do | |
593 | c = c + 5 | |
594 | squatcounter.Text = squats.Value | |
595 | if squats.Value > 199 then | |
596 | light.Range = 40 | |
597 | light.Brightness = 40 | |
598 | light.Color = BrickColor.Random().Color | |
599 | b2.TextColor3 = BrickColor.Random().Color | |
600 | squatcounter.TextColor3 = b2.TextColor3 | |
601 | squatw.TextColor3 = b2.TextColor3 | |
602 | end | |
603 | end | |
604 | end)() | |
605 | ||
606 | coroutine.wrap(function() | |
607 | while wait() do | |
608 | if squats.Value > 199 then break end | |
609 | end | |
610 | sound = Instance.new("Sound",Torso) | |
611 | sound.Volume = 1 | |
612 | sound.SoundId = "rbxassetid://157709133" | |
613 | sound:Play() | |
614 | particlemiter1 = Instance.new("ParticleEmitter", Torso) | |
615 | particlemiter1.Enabled = true | |
616 | particlemiter1.Texture = "rbxassetid://1955503112" | |
617 | particlemiter1.Lifetime = NumberRange.new(2.5) | |
618 | particlemiter1.Size = NumberSequence.new(1,0) | |
619 | particlemiter1.Rate = 50 | |
620 | particlemiter1.VelocitySpread = 2000 | |
621 | particlemiter1.RotSpeed = NumberRange.new(70) | |
622 | particlemiter1.Speed = NumberRange.new(50) | |
623 | particlemiter2 = Instance.new("ParticleEmitter", Torso) | |
624 | particlemiter2.Enabled = true | |
625 | particlemiter2.Texture = "rbxassetid://1956041489" | |
626 | particlemiter2.Lifetime = NumberRange.new(2.5) | |
627 | particlemiter2.Size = NumberSequence.new(1,0) | |
628 | particlemiter2.Rate = 50 | |
629 | particlemiter2.VelocitySpread = 2000 | |
630 | particlemiter2.RotSpeed = NumberRange.new(150) | |
631 | particlemiter2.Speed = NumberRange.new(50) | |
632 | particlemiter3 = Instance.new("ParticleEmitter", Torso) | |
633 | particlemiter3.Enabled = true | |
634 | particlemiter3.Texture = "rbxassetid://1956041141" | |
635 | particlemiter3.Lifetime = NumberRange.new(2.5) | |
636 | particlemiter3.Size = NumberSequence.new(1,0) | |
637 | particlemiter3.Rate = 50 | |
638 | particlemiter3.VelocitySpread = 2000 | |
639 | particlemiter3.RotSpeed = NumberRange.new(150) | |
640 | particlemiter3.Speed = NumberRange.new(50) | |
641 | coroutine.wrap(function() | |
642 | wait(1) | |
643 | bb1 = Instance.new("BillboardGui",Head) | |
644 | bb1.Size = UDim2.new(2.4,0,.9,0) | |
645 | bb1.StudsOffset = Vector3.new(0,6,0) | |
646 | bb1.AlwaysOnTop = true | |
647 | bb1.Adornee = Head | |
648 | smokeweed = Instance.new("ImageLabel",bb1) | |
649 | smokeweed.BackgroundTransparency = 1 | |
650 | smokeweed.Image = "rbxassetid://293105733" | |
651 | smokeweed.Size = UDim2.new(1,0,1.5,0) | |
652 | for i = 1, 20 do | |
653 | bb1.StudsOffset = bb1.StudsOffset - Vector3.new(0,.28,0) | |
654 | wait() | |
655 | end | |
656 | end)() | |
657 | frame = Instance.new("Frame") | |
658 | frame.Parent = screenGui | |
659 | frame.Position = UDim2.new(0, 8, 0, -500) | |
660 | frame.Size = UDim2.new(100000000,10000000,10000000,10000000) | |
661 | frame.BackgroundColor3 = BrickColor.new("White").Color | |
662 | frame.BackgroundTransparency = 0 | |
663 | ball = Instance.new("Part",Torso) | |
664 | ball.Shape = "Ball" | |
665 | ball.Size = Vector3.new(0,0,0) | |
666 | ball.BrickColor = BrickColor.new("White") | |
667 | ball.Anchored = true | |
668 | ball.CanCollide = false | |
669 | ball.Material = "Neon" | |
670 | ball.CFrame = Torso.CFrame | |
671 | coroutine.wrap(function() | |
672 | for i = 1, 20 do | |
673 | ball.Transparency = ball.Transparency + 0.05 | |
674 | ball.Size = ball.Size + Vector3.new(2,2,2) | |
675 | wait() | |
676 | end | |
677 | end)() | |
678 | wait(.5) | |
679 | for i = 1, 20 do | |
680 | frame.BackgroundTransparency = frame.BackgroundTransparency + 0.05 | |
681 | wait() | |
682 | end | |
683 | end)() | |
684 | ||
685 | coroutine.wrap(function() | |
686 | settime = 0.05 | |
687 | while wait() do | |
688 | if squats.Value > 199 then | |
689 | hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-0,0)) | |
690 | squatw.Rotation = squatw.Rotation + 10 | |
691 | squatcounter.Position = UDim2.new(0, math.random(530,550), 0, math.random(550,570)) | |
692 | sine = sine + change | |
693 | ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.Angles(math.rad(0), math.rad(0), math.rad(0 + 15 * math.sin(sine/12))),.3) | |
694 | end | |
695 | end | |
696 | end)() | |
697 | ||
698 | mouse.Button1Down:connect(function() | |
699 | if up then | |
700 | up = false | |
701 | down = true | |
702 | downn:Play() | |
703 | ROOTLERP.C0 = CFrame.new(0, -.8, 0) | |
704 | RIGHTLEGLERP.C0 = CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) | |
705 | LEFTLEGLERP.C0 = CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) | |
706 | elseif down then | |
707 | down = false | |
708 | up = true | |
709 | upp:Play() | |
710 | if fastmode then | |
711 | squats.Value = squats.Value + 5 | |
712 | elseif not fastmode then | |
713 | squats.Value = squats.Value + 1 | |
714 | end | |
715 | ROOTLERP.C0 = CFrame.new(0, 0, 0) | |
716 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
717 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
718 | end | |
719 | end) |