View difference between Paste ID: XHG5N3uz and AiBxdM7T
SHOW: | | - or go back to the newest paste.
1
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,game,owner = owner,game
6
local RealPlayer = Player
7
do
8
	print("FE Compatibility code by yourmomlol")
9
	local rp = RealPlayer
10
	script.Parent = rp.Character
11
	
12
	--RemoteEvent for communicating
13
	local Event = Instance.new("RemoteEvent")
14
	Event.Name = "UserInput_Event"
15
16
	--Fake event to make stuff like Mouse.KeyDown work
17
	local function fakeEvent()
18
		local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
19
		t.connect = t.Connect
20
		return t
21
	end
22
23
	--Creating fake input objects with fake variables
24
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
25
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
26
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
27
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
28
	end}
29
	--Merged 2 functions into one by checking amount of arguments
30
	CAS.UnbindAction = CAS.BindAction
31
32
	--This function will trigger the events that have been :Connect()'ed
33
	local function te(self,ev,...)
34
		local t = m[ev]
35
		if t and t._fakeEvent then
36
			for _,f in pairs(t.Functions) do
37
				f(...)
38
			end
39
		end
40
	end
41
	m.TrigEvent = te
42
	UIS.TrigEvent = te
43
44
	Event.OnServerEvent:Connect(function(plr,io)
45
	    if plr~=rp then return end
46
		m.Target = io.Target
47
		m.Hit = io.Hit
48
		if not io.isMouse then
49
			local b = io.UserInputState == Enum.UserInputState.Begin
50
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
51
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
52
			end
53
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
54
				return m:TrigEvent(b and "Button2Down" or "Button2Up")
55
			end
56
			for _,t in pairs(CAS.Actions) do
57
				for _,k in pairs(t.Keys) do
58
					if k==io.KeyCode then
59
						t.Function(t.Name,io.UserInputState,io)
60
					end
61
				end
62
			end
63
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
64
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
65
	    end
66
	end)
67
	Event.Parent = NLS([==[
68
	local Player = game:GetService("Players").LocalPlayer
69
	local Event = script:WaitForChild("UserInput_Event")
70
	local Mouse = Player:GetMouse()
71
	local UIS = game:GetService("UserInputService")
72
	local input = function(io,a)
73
		if a then return end
74
		--Since InputObject is a client-side instance, we create and pass table instead
75
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
76
	end
77
	UIS.InputBegan:Connect(input)
78
	UIS.InputEnded:Connect(input)
79
	local h,t
80
	--Give the server mouse data 30 times every second, but only if the values changed
81
	--If player is not moving their mouse, client won't fire events
82
	while wait(1/30) do
83
		if h~=Mouse.Hit or t~=Mouse.Target then
84
			h,t=Mouse.Hit,Mouse.Target
85
			Event:FireServer({isMouse=true,Target=t,Hit=h})
86
		end
87
	end]==],Player.Character)
88
89
	----Sandboxed game object that allows the usage of client-side methods and services
90
	--Real game object
91
	local _rg = game
92
93
	--Metatable for fake service
94
	local fsmt = {
95
		__index = function(self,k)
96
			local s = rawget(self,"_RealService")
97
			if s then
98
				return typeof(s[k])=="function"
99
				and function(_,...)return s[k](s,...)end or s[k]
100
			end
101
		end,
102
		__newindex = function(self,k,v)
103
			local s = rawget(self,"_RealService")
104
			if s then s[k]=v end
105
		end
106
	}
107
	local function FakeService(t,RealService)
108
		t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
109
		return setmetatable(t,fsmt)
110
	end
111
112
	--Fake game object
113
	local g = {
114
		GetService = function(self,s)
115
			return rawget(self,s) or _rg:GetService(s)
116
		end,
117
		Players = FakeService({
118
			LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
119
		},"Players"),
120
		UserInputService = FakeService(UIS,"UserInputService"),
121
		ContextActionService = FakeService(CAS,"ContextActionService"),
122
		RunService = FakeService({
123
			_btrs = {},
124
			RenderStepped = _rg:GetService("RunService").Heartbeat,
125
			BindToRenderStep = function(self,name,_,fun)
126
				self._btrs[name] = self.Heartbeat:Connect(fun)
127
			end,
128
			UnbindFromRenderStep = function(self,name)
129
				self._btrs[name]:Disconnect()
130
			end,
131
		},"RunService")
132
	}
133
	rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
134
	g.service = g.GetService
135
	FakeService(g,game)
136
	--Changing owner to fake player object to support owner:GetMouse()
137
	game,owner = g,g.Players.LocalPlayer
138
end
139
do 
140
    function GetDiscoColor(hue)
141
        hue=hue/4
142
    local section = hue % 1 * 3
143
    local secondary = 0.5 * math.pi * (section % 1)
144
        local thing
145
    if section < 1 then
146
        thing=Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
147
    elseif section < 2 then
148
        thing=Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
149
    else
150
        thing=Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
151
    end
152
        return thing
153
end
154
function VertexRainbow()
155
        return Vector3.new(math.random(),math.random(),math.random())
156
        end
157
158
159
local plr = game.Players.LocalPlayer
160
local chr = plr.Character
161
local maus = plr:GetMouse()
162
local PGui=plr.PlayerGui
163
local lleg = chr["Left Leg"]
164
local rleg = chr["Right Leg"]
165
local larm = chr["Left Arm"]
166
local rarm = chr["Right Arm"]
167
local hed = chr.Head
168
local rutprt = chr.HumanoidRootPart
169
local torso = chr.Torso
170
local otheranims=false
171
local swimming=false
172
chr.Animate.Disabled=true
173
local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
174
local RunSpeed=80
175
local WlkSpeed=16
176
local SwimSpeed=14
177
local SwimDashSpeed=1000
178
local anim = "Idling"
179
local lastanim = "Idling"
180
local flying=false
181
local val = 0
182
local syne = 0
183
local num = 0
184
local runtime = 0
185
local TackleCD=false
186
local currentdecalid=1
187
local crouching=false
188
local bboxout=false
189
local ltout=false
190
local standing=false
191
local throwcd=false
192
local displaying=false
193
local imageType="Custom"
194
local pseudohead=hed:Clone()
195
for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
196
pseudohead.Name='PseudoHead'
197
pseudohead.Parent=chr.Head
198
local pseudoweld=Instance.new('Weld',torso)
199
pseudoweld.Part0=hed
200
pseudoweld.Name='PseudoHeadWeld'
201
pseudoweld.Part1=pseudohead
202
hed.Transparency=1
203
for i,x in pairs(chr:GetChildren()) do
204
if x:IsA'Hat' then x:destroy'' end end
205
for i,x in pairs(chr:GetChildren()) do
206
for a,v in pairs(x:GetChildren()) do
207
if v:IsA'CharacterMesh' then v:destroy''
208
end
209
end
210
end
211
212
local Glow1 = Color3.new(1,0,0)
213
local Glow2 = Color3.new(0,0,1)
214
local setsky = game.Lighting
215
					
216
local     alldecals={"186897805","136214180","55365976","21214837","69643159","35035960","25499330","663532065","711219217","171754234","167241003","235558077","265452635","260161937","242814125","230417107","252230874","231949998","229222676","181607551","231953209","123431503","184905165","172755711","161494218","292791711","205912841","68953525","180163702","123385234","138847283","159127645","172511645","210175195","206539362","192486406","96613287","131764585","168427244","128595009","96687581","171590601","172329151","72116648","221557708","214883980"}
217
218
local decals={"152628549","152629684","192467477","249062488","173846873","246990310","246990269","233853776","256301393","246990343","173846290","184779655","152628663","168044411"}
219
local musics={"390409627","390409627"}
220
local currentsound=1
221
local     GarbageTypes={{"Grapes","16940906","16940893",Vector3.new(.8,.8,.8),"284627310"},{"Lightbulb","1376459","1376456",Vector3.new(1,1,1),"235040768"},{"Turkey","13073626","13073598",Vector3.new(2,2,2),"284627310"},{"JuiceBottle","57219451","57219520",Vector3.new(1.75,1.75,1.75),"235040768"},{"Can","10470609","10470600",Vector3.new(1,1,1),"284627310"},{"dunno     lol","55304507","55304460",Vector3.new(1,1,1),"235040768"},{"Burger","16646125","16432575",Vector3.new(1.1,1.1,1.1),"284627310"},{"Candy","38160912","38161977",Vector3.new(1.15,1.15,1.15),"154162195"},{"Sandwich","12510164","12509672",Vector3.new(2.5,2.5,2.5),"284627310"}}
222
coroutine.wrap(function()
223
for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
224
function Lerp(a, b, i)
225
local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
226
local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
227
local calx = com1[1] + (com2[1] - com1[1]) * i
228
local caly = com1[2] + (com2[2] - com1[2]) * i
229
local calz = com1[3] + (com2[3] - com1[3]) * i
230
local cala = com1[4] + (com2[4] - com1[4]) * i
231
local calb = com1[5] + (com2[5] - com1[5]) * i
232
local calc = com1[6] + (com2[6] - com1[6]) * i
233
return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
234
end
235
function TwnSingleNumber(s,f,m)
236
local wot=s+(f-s)*m
237
return wot
238
end
239
function TwnVector3(q,w,e)
240
local begin={q.x,q.y,q.z}
241
local ending={w.x,w.y,w.z}
242
local bgx=begin[1]+(ending[1]-begin[1])*e
243
local bgy=begin[2]+(ending[2]-begin[2])*e
244
local bgz=begin[3]+(ending[3]-begin[3])*e
245
return Vector3.new(bgx,bgy,bgz)
246
end
247
newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
248
wld = Instance.new("Weld", wp1)
249
wld.Part0 = wp0
250
wld.Part1 = wp1
251
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
252
end
253
newWeld(law, torso, larm, -1.5, 0.5, 0)
254
newWeld(raw, torso, rarm, 1.5, 0.5, 0)
255
newWeld(llw, torso, lleg, -.5, -2, 0)
256
newWeld(rlw, torso, rleg, .5, -2, 0)
257
newWeld(hw, torso, hed, 0, 1.5, 0)
258
local rutwald=Instance.new('Weld',rutprt)
259
rutwald.Part0=rutprt
260
rutwald.Part1=torso
261
rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
262
larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
263
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
264
rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
265
lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
266
267
268
269
local bvelo=Instance.new('BodyVelocity',rutprt)
270
bvelo.maxForce=Vector3.new(0,0,0)
271
272
BOM = Instance.new("Sound",chr)
273
BOM.SoundId = "http://www.roblox.com/asset/?id=138014729"
274
BOM.Pitch = 1.2
275
BOM.Volume= 1
276
BOM.Looped = false
277
BOM.Name = 'BOM!'
278
279
280
281
282
283
284
285
286
n2 = Instance.new("Sound",chr)
287
n2.SoundId = "http://www.roblox.com/asset/?id=388109043"
288
n2.Pitch = 0.95
289
n2.Volume= 2
290
n2.Looped = false
291
n2:Play()
292
n2.Name = 'BOX!'
293
294
local kan=Instance.new('Model',chr)
295
kan.Name="true Metal Gear Box"
296
local cen=Instance.new('Model',kan)
297
cen.Name='no stap'
298
local can=Instance.new('Model',cen)
299
can.Name="its time to stop! or i cry"
300
local base=Instance.new('Part',can)
301
base.formFactor=3
302
base.TopSurface=10
303
base.BottomSurface=10
304
base.LeftSurface=10
305
base.RightSurface=10
306
base.FrontSurface=10
307
base.BackSurface=10
308
base.Locked=true
309
base.CanCollide=true
310
base.Anchored=false
311
base.BrickColor=BrickColor.new('Fossil')
312
base.Name='Can1'
313
base.Transparency = 1
314
base.Size=Vector3.new(3,3.5,3)
315
base.Material='Metal'
316
local canm=Instance.new("CylinderMesh",base)
317
318
local base2=Instance.new('Part',can)
319
base2.formFactor=3
320
base2.TopSurface=10
321
base2.BottomSurface=10
322
base2.LeftSurface=10
323
base2.RightSurface=10
324
base2.FrontSurface=10
325
base2.BackSurface=10
326
base2.Locked=true
327
base2.CanCollide=false
328
base2.Anchored=false
329
base2.BrickColor=BrickColor.new('Really black')
330
base2.Name='InnerCan'
331
base2.Size=Vector3.new(2.8,.2,2.8)
332
base2.Material='SmoothPlastic'
333
base2.Transparency = 0
334
local base2m=Instance.new('SpecialMesh',base2)
335
base2m.Scale=Vector3.new(1, 0.05, 1)
336
base2m.MeshId="http://www.roblox.com/asset/?id=173330346"
337
338
local base3=Instance.new('Part',can)
339
base3.formFactor=3
340
base3.TopSurface=10
341
base3.BottomSurface=10
342
base3.LeftSurface=10
343
base3.RightSurface=10
344
base3.FrontSurface=10
345
base3.BackSurface=10
346
base3.Locked=true
347
base3.CanCollide=true
348
base3.Anchored=false
349
base3.BrickColor=BrickColor.new('Burlap')
350
base3.Name='Can2'
351
base3.Transparency = 0
352
base3.Size=Vector3.new(2,2.5,2)
353
base3.Material='Metal'
354
local base3m=Instance.new('SpecialMesh',base3)
355
base3m.Scale=Vector3.new(1.2,1.2,1.2)
356
base3m.MeshId="http://www.roblox.com/asset/?id=173330346"
357
358
359
360
361
local lid=Instance.new('Part',can)
362
363
lid.Name='Lid'
364
lid.formFactor=3
365
lid.TopSurface=10
366
lid.BottomSurface=10
367
lid.LeftSurface=10
368
lid.RightSurface=10
369
lid.BackSurface=10
370
lid.FrontSurface=10
371
lid.CanCollide=true
372
lid.Anchored=false
373
lid.Locked=true
374
lid.Size=Vector3.new(3,3,.2)
375
lid.BrickColor=BrickColor.new('Burlap')
376
local heli1=Instance.new('Part',can)
377
heli1.formFactor=3
378
heli1.TopSurface=10
379
heli1.BottomSurface=10
380
heli1.LeftSurface=10
381
heli1.RightSurface=10
382
heli1.FrontSurface=10
383
heli1.BackSurface=10
384
heli1.Locked=true
385
heli1.CanCollide=true
386
heli1.Anchored=false
387
heli1.BrickColor=BrickColor.new('Fossil')
388
heli1.Name='Can'
389
heli1.Size=Vector3.new(.1,3,.1)
390
heli1.Material='Metal'
391
heli1.Transparency = 1
392
local helim1=Instance.new("CylinderMesh",heli1)
393
helim1.Scale=Vector3.new(.5,1,.5)
394
local heli2=Instance.new('Part',can)
395
heli2.formFactor=3
396
heli2.TopSurface=10
397
heli2.BottomSurface=10
398
heli2.LeftSurface=10
399
heli2.RightSurface=10
400
heli2.FrontSurface=10
401
heli2.BackSurface=10
402
heli2.Locked=true
403
heli2.CanCollide=true
404
heli2.Anchored=false
405
heli2.BrickColor=BrickColor.new('Dark stone grey')
406
heli2.Name='Can'
407
heli2.Size=Vector3.new(.1,.1,2.9)
408
heli2.Material='Metal'
409
heli2.Transparency = 1
410
local helim2=Instance.new("BlockMesh",heli2)
411
helim2.Scale=Vector3.new(.5,.1,1)
412
local heli3=Instance.new('Part',can)
413
heli3.formFactor=3
414
heli3.TopSurface=10
415
heli3.BottomSurface=10
416
heli3.LeftSurface=10
417
heli3.RightSurface=10
418
heli3.FrontSurface=10
419
heli3.BackSurface=10
420
heli3.Locked=true
421
heli3.CanCollide=false
422
heli3.Anchored=false
423
heli3.BrickColor=BrickColor.new('Dark stone grey')
424
heli3.Name='Can'
425
heli3.Size=Vector3.new(.1,.1,3.9)
426
heli3.Material='Metal'
427
heli3.Transparency = 1
428
local helim3=Instance.new("BlockMesh",heli3)
429
helim3.Scale=Vector3.new(.5,.1,1)
430
local hits=Instance.new('Sound',lid)
431
hits.Name='hit'
432
hits.SoundId="http://www.roblox.com/asset?id=138259748"
433
hits.Volume=.3
434
hits.Pitch=.9
435
local opens=Instance.new('Sound',lid)
436
opens.Name='Open'
437
opens.Volume=2
438
opens.Pitch=1.4
439
opens.SoundId="http://www.roblox.com/asset?id=192416578"
440
local lidm=Instance.new('SpecialMesh',lid)
441
lidm.Scale=Vector3.new(1.17, 0.05, 1.17)
442
lidm.MeshId="http://www.roblox.com/asset/?id=173330346"
443
444
coroutine.resume(coroutine.create(function()
445
        while wait() do
446
                
447
        end
448
        end))
449
local waifu=Instance.new('Part',can)
450
waifu.Name='cri cri'
451
waifu.formFactor=3
452
waifu.TopSurface=10
453
waifu.BottomSurface=10
454
waifu.LeftSurface=10
455
waifu.RightSurface=10
456
waifu.BackSurface=10
457
waifu.FrontSurface=10
458
waifu.CanCollide=false
459
waifu.Anchored=false
460
waifu.Transparency=0
461
waifu.Locked=true
462
waifu.Size=Vector3.new(2,.2,2)
463
local img=Instance.new('Decal',waifu)
464
img.Texture="http://www.roblox.com/asset?id="..alldecals[math.random(1,#alldecals)]
465
img.Face='Top'
466
local bbox=Instance.new('Part',can)
467
bbox.Name='boombox'
468
bbox.formFactor=3
469
bbox.TopSurface=10
470
bbox.BottomSurface=10
471
bbox.LeftSurface=10
472
bbox.RightSurface=10
473
bbox.BackSurface=10
474
bbox.FrontSurface=10
475
bbox.CanCollide=false
476
bbox.Anchored=false
477
bbox.Transparency=0
478
bbox.Locked=true
479
bbox.Size=Vector3.new(2,2,1)
480
local bbms=Instance.new('SpecialMesh',bbox)
481
bbms.Scale=Vector3.new(3,3,3)
482
bbms.MeshId="http://www.roblox.com/asset?id=212302951"
483
bbms.TextureId="http://www.roblox.com/asset?id=212303049"
484
local bulb=Instance.new('Part',can)
485
bulb.Name='lightbulb'
486
bulb.formFactor=3
487
bulb.TopSurface=10
488
bulb.BottomSurface=10
489
bulb.LeftSurface=10
490
bulb.RightSurface=10
491
bulb.BackSurface=10
492
bulb.FrontSurface=10
493
bulb.CanCollide=false
494
bulb.Anchored=false
495
bulb.Transparency=.4
496
bulb.Locked=true
497
bulb.Size=Vector3.new(.8,1,.8)
498
local lt=Instance.new('PointLight',bulb)
499
lt.Range=16
500
lt.Color=BrickColor.new('New Yeller').Color
501
lt.Enabled=false
502
lt.Shadows=true
503
504
local blbms=Instance.new('SpecialMesh',bulb)
505
blbms.MeshId="http://www.roblox.com/asset?id=1376459"
506
blbms.TextureId="http://www.roblox.com/asset?id=1376456"
507
local canWeld=Instance.new('Weld',torso)
508
canWeld.Part0=torso
509
canWeld.Part1=base
510
canWeld.C1=CFrame.new(0,-.5,0)
511
canWeld.C0=CFrame.new(0,0,0)
512
local canWeld2=Instance.new('Weld',base2)
513
canWeld2.Part0=base
514
canWeld2.Part1=base2
515
canWeld2.C1=CFrame.new(0,-0.8,0)
516
canWeld2.C0=CFrame.new(0,0,0)
517
---
518
local canWeld3=Instance.new('Weld',base3)
519
canWeld3.Part0=base
520
canWeld3.Part1=base3
521
canWeld3.C1=CFrame.new(0,0.4,0)
522
canWeld3.C0=CFrame.new(0,0,0)
523
---
524
local lidWeld=Instance.new('Weld',base)
525
lidWeld.Part0=base
526
lidWeld.Part1=lid
527
lidWeld.C1=CFrame.new(0,-0.9,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
528
---
529
local girlWeld=Instance.new('Weld',base)
530
girlWeld.Part0=base
531
girlWeld.Part1=waifu
532
girlWeld.C1=CFrame.new(0,-0.1,0.4)*CFrame.Angles(math.rad(90),0,0)
533
local bbweld=Instance.new('Weld',base)
534
bbweld.Part0=base
535
bbweld.Part1=bbox
536
bbweld.C1=CFrame.new(0,0.4,0)
537
local blbweld=Instance.new('Weld',base)
538
blbweld.Part0=base
539
blbweld.Part1=bulb
540
blbweld.C1=CFrame.new(0,.5,0)
541
local heliweld1=Instance.new('Weld',base)
542
heliweld1.Part0=base
543
heliweld1.Part1=heli1
544
heliweld1.C1=CFrame.new(0,0,0)
545
local heliweld2=Instance.new('Weld',heli1)
546
heliweld2.Part0=heli1
547
heliweld2.Part1=heli2
548
heliweld2.C1=CFrame.new(0,-1.475,0)
549
local heliweld3=Instance.new('Weld',heli1)
550
heliweld3.Part0=heli1
551
heliweld3.Part1=heli3
552
heliweld3.C1=CFrame.new(0,5,0)*CFrame.Angles(0,math.pi/2,0)
553
local helilt=Instance.new('PointLight',heli1)
554
helilt.Enabled=false
555
helilt.Brightness=1
556
helilt.Range=16
557
helilt.Color=BrickColor.new("Dark green").Color
558
559
local music=Instance.new('Sound',bbox)
560
music.Name='ok music'
561
music.Volume=.025
562
music.Pitch=1
563
music.SoundId="http://www.roblox.com/asset?id="..musics[math.random(1,#musics)]
564
music.Looped=true
565
local helisn=Instance.new('Sound',heli1)
566
helisn.SoundId="http://www.roblox.com/asset?id=319807127"
567
helisn.Volume=0.5
568
helisn.Pitch=3
569
helisn.Looped=true
570
571
572
573
574
575
576
local gui=Instance.new('ScreenGui',plr.PlayerGui)
577
gui.Name='you make me cri'
578
local topFrame=Instance.new('Frame',gui)
579
topFrame.Name='TopFrame'
580
topFrame.Size=UDim2.new(1,0,1,0)
581
topFrame.BorderSizePixel=0
582
topFrame.BackgroundTransparency=1
583
local choiceFrame=Instance.new('Frame',topFrame)
584
choiceFrame.Size=UDim2.new(.4,0,.05,0)
585
choiceFrame.Draggable=true
586
choiceFrame.BackgroundTransparency=.7
587
choiceFrame.Position=UDim2.new(.3,0,.775,0)
588
choiceFrame.BackgroundColor3=Color3.new(.2,.2,.2)
589
choiceFrame.BorderColor3=Color3.new(0,0,0)
590
local innerFrame=Instance.new('Frame',choiceFrame)
591
innerFrame.Size=UDim2.new(.5,0,1,0)
592
innerFrame.Draggable=true
593
innerFrame.BackgroundTransparency=.9
594
innerFrame.Position=UDim2.new(0,0,0,0)
595
innerFrame.BackgroundColor3=Color3.new(.2,.2,.2)
596
innerFrame.BorderColor3=Color3.new(0,0,0)
597
local innerFrame2=Instance.new('Frame',choiceFrame)
598
innerFrame2.Visible=true
599
innerFrame2.Size=UDim2.new(.5,0,1,0)
600
innerFrame2.Draggable=false
601
innerFrame2.BackgroundTransparency=.5
602
innerFrame2.Position=UDim2.new(0,0,1,1)
603
innerFrame2.BackgroundColor3=Color3.new(.2,.2,.2)
604
innerFrame2.BorderColor3=Color3.new(0,0,0)
605
local imageID=Instance.new('TextBox',innerFrame2)
606
imageID.Size=UDim2.new(.8,0,.7,0)
607
imageID.Position=UDim2.new(.1,0,.15,0)
608
imageID.BackgroundTransparency=.7
609
imageID.Visible=true
610
imageID.Text="Image ID"
611
imageID.TextScaled=true
612
imageID.TextStrokeTransparency=0
613
imageID.TextStrokeColor3=Color3.new(.1,.1,.1)
614
imageID.TextColor3=Color3.new(.7,.7,.7)
615
imageID.BackgroundColor3=Color3.new(.2,.2,.2)
616
imageID.BorderColor3=Color3.new(0,0,0)
617
imageID.FocusLost:connect(function(ent)
618
if ent then
619
img.Texture="http://www.roblox.com/asset?id="..imageID.Text-1
620
end
621
end)
622
local bt1=Instance.new('TextButton',innerFrame)
623
bt1.Draggable=false
624
bt1.BackgroundTransparency=.9
625
bt1.BackgroundColor3=Color3.new(.2,.2,.2)
626
bt1.Size=UDim2.new(.5,0,1,0)
627
bt1.Text="Custom"
628
bt1.TextStrokeTransparency=0
629
bt1.TextColor3=Color3.new(.7,.7,.7)
630
bt1.TextScaled=true
631
bt1.TextStrokeColor3=Color3.new(.1,.1,.1)
632
bt1.Font="SourceSans"
633
bt1.MouseButton1Click:connect(function()
634
if imageType=='Table' then
635
imageType="Custom"
636
innerFrame2.Visible=true
637
imageID.Visible=true
638
end
639
end)
640
local bt2=Instance.new('TextButton',innerFrame)
641
bt2.Draggable=false
642
bt2.BackgroundTransparency=.9
643
bt2.BackgroundColor3=Color3.new(.1,.1,.1)
644
bt2.Size=UDim2.new(.5,0,1,0)
645
bt2.Position=UDim2.new(.5,0,0,0)
646
bt2.Text="Table"
647
bt2.TextStrokeTransparency=0
648
bt2.TextColor3=Color3.new(.7,.7,.7)
649
bt2.TextScaled=true
650
bt2.TextStrokeColor3=Color3.new(.1,.1,.1)
651
bt2.Font="SourceSans"
652
bt2.MouseButton1Click:connect(function()
653
if imageType~='Table' then
654
imageType="Table"
655
imageID.Visible=false
656
innerFrame2.Visible=false
657
img.Texture="http://www.roblox.com/asset?id="..decals[currentdecalid]-1
658
end
659
end)
660
661
local innerFrame3=Instance.new('Frame',choiceFrame)
662
innerFrame3.Size=UDim2.new(.5,0,1,0)
663
innerFrame3.Position=UDim2.new(.5,0,0,0)
664
innerFrame3.Draggable=true
665
innerFrame3.BackgroundTransparency=.9
666
innerFrame3.BackgroundColor3=Color3.new(.2,.2,.2)
667
innerFrame3.BorderColor3=Color3.new(0,0,0)
668
local innerFrame4=Instance.new('Frame',choiceFrame)
669
innerFrame4.Size=UDim2.new(.5,0,1,0)
670
innerFrame4.Draggable=false
671
innerFrame4.BackgroundTransparency=.5
672
innerFrame4.Position=UDim2.new(.5,0,1,1)
673
innerFrame4.BackgroundColor3=Color3.new(.2,.2,.2)
674
innerFrame4.BorderColor3=Color3.new(0,0,0)
675
local musicID=Instance.new('TextBox',innerFrame4)
676
musicID.Size=UDim2.new(.8,0,.7,0)
677
musicID.Position=UDim2.new(.1,0,.15,0)
678
musicID.BackgroundTransparency=.7
679
musicID.Visible=true
680
musicID.Text="Music ID"
681
musicID.TextScaled=true
682
musicID.TextStrokeTransparency=0
683
musicID.TextStrokeColor3=Color3.new(.1,.1,.1)
684
musicID.TextColor3=Color3.new(.7,.7,.7)
685
musicID.BackgroundColor3=Color3.new(.2,.2,.2)
686
musicID.BorderColor3=Color3.new(0,0,0)
687
musicID.FocusLost:connect(function(ent)
688
if ent then
689
music.SoundId="http://www.roblox.com/asset?id="..musicID.Text
690
end
691
end)
692
local bt3=Instance.new('TextButton',innerFrame3)
693
bt3.Draggable=false
694
bt3.BackgroundTransparency=.9
695
bt3.BackgroundColor3=Color3.new(.2,.2,.2)
696
bt3.Size=UDim2.new(.5,0,1,0)
697
bt3.Text="Play"
698
bt3.TextStrokeTransparency=0
699
bt3.TextColor3=Color3.new(.7,.7,.7)
700
bt3.TextScaled=true
701
bt3.TextStrokeColor3=Color3.new(.1,.1,.1)
702
bt3.Font="SourceSans"
703
bt3.MouseButton1Click:connect(function()
704
if not music.IsPlaying then
705
musicID.Visible=false
706
music:play''
707
innerFrame4.Visible=false
708
end
709
end)
710
local bt4=Instance.new('TextButton',innerFrame3)
711
bt4.Draggable=false
712
bt4.BackgroundTransparency=.9
713
bt4.BackgroundColor3=Color3.new(.1,.1,.1)
714
bt4.Size=UDim2.new(.5,0,1,0)
715
bt4.Position=UDim2.new(.5,0,0,0)
716
bt4.Text="Stop"
717
bt4.TextStrokeTransparency=0
718
bt4.TextColor3=Color3.new(.7,.7,.7)
719
bt4.TextScaled=true
720
bt4.TextStrokeColor3=Color3.new(.1,.1,.1)
721
bt4.Font="SourceSans"
722
bt4.MouseButton1Click:connect(function()
723
if music.IsPlaying then
724
music:stop''
725
musicID.Visible=true
726
innerFrame4.Visible=true
727
end
728
end)
729
730
731
maus.KeyDown:connect(function(kei)
732
if string.byte(kei)==48 and not otheranims then
733
runnin=true
734
end
735
if kei=='x' and crouching and not opencd and not displaying then
736
opens:play''
737
opencd=true
738
bboxout=true
739
end
740
if kei=='w' then fldb.w=true end
741
if kei=='a' then fldb.a=true end
742
if kei=='s' then fldb.s=true end
743
if kei=='d' then fldb.d=true end
744
if string.byte(kei)==50 then
745
if otheranims and crouching then crouching=false otheranims=false if opencd then opencd=false bboxout=false ltout=false end
746
elseif not otheranims and not crouching then
747
otheranims=true
748
crouching=true
749
chr.Humanoid.WalkSpeed=WlkSpeed*.75
750
end
751
end
752
if kei=='r' and not displaying then
753
if not heli and not opencd and not displaying and crouching then
754
opencd=true
755
heli=true
756
crouching=false
757
flying=true
758
helisn:play''
759
helilt.Enabled=true
760
helim2.Scale=Vector3.new(.5,.15,2)
761
helim3.Scale=Vector3.new(.5,.15,1)
762
heli3.Transparency = 0
763
chr.Humanoid.WalkSpeed=WlkSpeed
764
bvelo.maxForce=Vector3.new(0,1/0,0)
765
bvelo.velocity=Vector3.new(0,0,0)
766
elseif heli and opencd then
767
heli=false
768
helilt.Enabled=false
769
opencd=false
770
flying=false
771
helim2.Scale=Vector3.new(.5,.1,1)
772
helim3.Scale=Vector3.new(.5,.1,1)
773
heli3.Transparency = 1
774
helisn:stop''
775
chr.Humanoid.WalkSpeed=WlkSpeed*.75
776
crouching=true
777
bvelo.maxForce=Vector3.new(0,0,0)
778
end
779
end
780
if kei=='q' then
781
bvelo.velocity=Vector3.new(0,-25,0)
782
end
783
if kei=='e' then
784
bvelo.velocity=Vector3.new(0,20,0)
785
end
786
if kei=='z' and not opencd then
787
displaying=true
788
end
789
if kei=='k' and not opencd and crouching and not displaying then
790
n1 = Instance.new("Sound",chr)
791
n1.SoundId = "http://www.roblox.com/asset/?id=199837904"
792
n1.Pitch = 1 
793
n1.Volume= 4
794
n1.Looped = false
795
n1:Play()
796
n1.Name = 'NukeSound'
797
798
wait(4.8)
799
800
opencd=true
801
opens:play''
802
chr.Humanoid.WalkSpeed=0
803
local grbg=Instance.new('Part',workspace)
804
grbg.Name="bomb"
805
grbg.formFactor=3
806
grbg.CFrame=base.CFrame*CFrame.new(0,5,0)
807
grbg.TopSurface=10
808
grbg.BottomSurface=10
809
grbg.LeftSurface=10
810
grbg.RightSurface=10
811
grbg.BackSurface=10
812
grbg.FrontSurface=10
813
grbg.CanCollide=false
814
grbg.Anchored=false
815
grbg.Anchored=false
816
grbg.Transparency=0
817
local grbgm=Instance.new('SpecialMesh',grbg)
818
grbgm.MeshId="http://www.roblox.com/asset?id=544709735"
819
grbgm.Scale=Vector3.new(0.1,0.1,0.1)
820
grbg.BrickColor=BrickColor.new('Really black')
821
grbg.Locked=true
822
grbg.Size=Vector3.new(2.8,2.8,2.8)
823
grbg.Velocity=Vector3.new(0,100,0)
824
grbg.Touched:connect(function(tch)
825
if tch and tch.Parent then
826
local expl=Instance.new('Explosion',workspace)
827
expl.Position=grbg.Position
828
expl.BlastPressure=1111111
829
expl.BlastRadius=11111111111
830
grbg:destroy''
831
end
832
end)
833
wait'1'
834
skybox = Instance.new("Sky", setsky)
835
skybox.SkyboxBk = "rbxassetid://156956351" 
836
skybox.SkyboxDn = "rbxassetid://156956351" 
837
skybox.SkyboxFt = "rbxassetid://156956351" 
838
skybox.SkyboxLf = "rbxassetid://156956351" 
839
skybox.SkyboxRt = "rbxassetid://156956351" 
840
skybox.SkyboxUp = "rbxassetid://156956351" 
841
skybox.CelestialBodiesShown = false
842
game.Lighting.Ambient = Color3.new(0,0.2,0)
843
game.Lighting.FogEnd = 100
844
game.Lighting.FogStart = 0
845
game.Lighting.FogColor = Color3.new (0,0.5,0)
846
chr.Humanoid.WalkSpeed=WlkSpeed*.75
847
opencd=false
848
wait(4.5)
849
n1:Destroy()
850
game.Lighting.FogEnd = 100000
851
game.Lighting.FogStart = 100000
852
game.Lighting.FogColor = Color3.new (0.8,0.8,0.8)
853
game.Lighting.Ambient = Color3.new(1,1,1)  
854
game.Lighting.Sky:Destroy()
855
end
856
game:service'Debris':AddItem(grbg,5)
857
if kei=='c' and not opencd and crouching and not displaying then
858
opens:play''
859
opencd=true
860
lt.Enabled=true
861
ltout=true
862
end
863
end)
864
maus.KeyUp:connect(function(kei)
865
if string.byte(kei)==48 and not otheranims then
866
runnin=false
867
end
868
if kei=='w' then fldb.w=false end
869
if kei=='a' then fldb.a=false end
870
if kei=='s' then fldb.s=false end
871
if kei=='d' then fldb.d=false end
872
if kei=='x' and bboxout and opencd then
873
bboxout=false
874
opencd=false
875
end
876
if kei=='q' then
877
bvelo.velocity=Vector3.new(0,0,0)
878
end
879
if kei=='e' then
880
bvelo.velocity=Vector3.new(0,0,0)
881
end
882
if kei=='z' then
883
displaying=false
884
if imageType=="Table" then
885
wait(0.2)
886
currentdecalid=currentdecalid+1
887
if currentdecalid>#decals then currentdecalid=1 end
888
img.Texture="http://www.roblox.com/asset?id="..decals[currentdecalid]-1
889
end
890
end
891
if kei=='j' and crouching and otheranims and not displaying and not opencd and anim=='Crouching' then
892
crouching=false
893
anim='SuperJump'
894
local bv=Instance.new('BodyVelocity',rutprt)
895
bv.maxForce=Vector3.new(0,1/0,0)
896
bv.velocity=Vector3.new(0,300,0)
897
game:service'Debris':AddItem(bv,.5)
898
chr.Humanoid.JumpPower = 120
899
wait'1'
900
901
chr.Humanoid.Jump=true
902
if anim=='SuperJump' then
903
otheranims=false
904
wait()
905
chr.Humanoid.JumpPower = 50
906
end
907
end
908
if kei=='v' and crouching and otheranims and not displaying then
909
if not opencd then
910
local rei=Ray.new(lid.CFrame.p,(lid.CFrame.p-(lid.CFrame*CFrame.new(0,0,-1)).p).unit*2)
911
local hit,hitpos=workspace:FindPartOnRay(rei,chr)
912
if hit and hit.Parent then
913
opencd=true
914
if hit.Parent:IsA'Model' then
915
for   i,x in pairs(hit.Parent:GetChildren()) do if x:IsA'Humanoid' then   x.Sit=true x.Health=x.Health-(15*(x.MaxHealth/100)) hits:play'' end end
916
if hit.Parent:findFirstChild('Torso') then
917
local asd=Instance.new('BodyVelocity',hit.Parent.Torso)
918
asd.velocity=((rutprt.CFrame*CFrame.new(0,4,1).p-rutprt.CFrame.p).unit*222)
919
game:service'Debris':AddItem(asd,.4)
920
end
921
end
922
wait'.5'
923
opencd=false
924
end
925
end
926
end
927
if kei=='c' and opencd and ltout then
928
opencd=false
929
ltout=false
930
lt.Enabled=false
931
end
932
end)
933
934
local nskn = NumberSequenceKeypoint.new
935
maus.Button1Down:connect(function()
936
if runnin and not otheranims and (rutprt.Velocity*Vector3.new(1,0,1)).magnitude>RunSpeed-5 and not TackleCD then
937
otheranims=true
938
TackleCD=true
939
anim="Tackle"
940
chr.Humanoid.WalkSpeed=0
941
local bv=Instance.new('BodyVelocity',base)
942
bv.Name='git gud'
943
bv.maxForce=Vector3.new(1/0,0,1/0)
944
bv.velocity=((rutprt.CFrame*CFrame.new(0,0,-3)).p-rutprt.CFrame.p).unit*(RunSpeed+(22*(RunSpeed/100)))
945
wait'1'
946
bv:destroy''
947
otheranims=false
948
wait'2'
949
TackleCD=false
950
end
951
952
if not throwcd and crouching and otheranims and not opencd and not displaying then
953
opencd=true
954
throwcd=true
955
opens:play''
956
local grb=GarbageTypes[math.random(1,#GarbageTypes)]
957
local grbg=Instance.new('Part',workspace)
958
grbg.Name=grb[1]
959
grbg.formFactor=3
960
grbg.CFrame=base.CFrame*CFrame.new(0,4.5,-2)*CFrame.Angles(math.rad(math.random(1,180)),math.rad(math.random(1,180)),math.rad(math.random(1,180)))
961
grbg.TopSurface=10
962
grbg.BottomSurface=10
963
grbg.LeftSurface=10
964
grbg.RightSurface=10
965
grbg.BackSurface=10
966
grbg.FrontSurface=10
967
grbg.CanCollide=false
968
grbg.Anchored=false
969
grbg.Anchored=false
970
grbg.Transparency=1
971
grbg.Locked=true
972
grbg.Size=Vector3.new(.2,.2,.2)
973
local emitter=Instance.new("ParticleEmitter",grbg)
974
emitter.Rate=500
975
emitter.Color = ColorSequence.new(Glow1,Glow2)
976
emitter.Acceleration=Vector3.new(0,10,0)
977
emitter.Lifetime=NumberRange.new(0.5,1)
978
--emitter.EmissionDirection="Back"
979
980
emitter.VelocitySpread=360
981
emitter.Enabled=true
982
emitter.Rotation=NumberRange.new(-15,15)
983
emitter.RotSpeed=NumberRange.new(-25,25)
984
emitter.Texture="http://www.roblox.com/asset?id=589325350"
985
emitter.Size = NumberSequence.new({
986
        nskn(0    , 1 , 0);
987
        nskn(0.123, .85  , 0);
988
        nskn(0.154, .7 , 0);
989
        nskn(0.208, .55 , 0);
990
        nskn(0.357, .4 , 0);
991
        nskn(0.555, .25 , 0);
992
        nskn(0.725, .1, 0);
993
        nskn(0.905, 0, 0);
994
        nskn(1    , 0, 0);
995
})
996
emitter.Transparency=NumberSequence.new({nskn(0,0,0),nskn(.1,.1,0),nskn(.2,.2,0),nskn(.3,.3,0),nskn(.4,.4,0),nskn(.5,.5,0),nskn(.6,.6,0),nskn(.7,7,0),nskn(.8,.8,0),nskn(.9,.9,0),nskn(1,1,0)})
997
local hitsnd=Instance.new('Sound',grbg)
998
hitsnd.Volume=1
999
hitsnd.Pitch=1
1000
hitsnd.SoundId="http://www.roblox.com/asset?id=144467617"
1001
local hitsnd2=Instance.new('Sound',grbg)
1002
hitsnd2.Volume=.5
1003
hitsnd2.Pitch=1.05
1004
hitsnd2.SoundId="http://www.roblox.com/asset?id="..grb[5]
1005
local magn=(maus.Hit.p-(base.CFrame*CFrame.new(0,4.5,-2)).p).magnitude
1006
grbg.Velocity=((maus.Hit.p-(base.CFrame*CFrame.new(0,4.5,-2)).p).unit*(magn*1.25))+Vector3.new(0,72.5,0)
1007
local firsthit=true
1008
local ms=Instance.new('SpecialMesh',grbg)
1009
ms.MeshId="http://www.roblox.com/asset?id="..grb[2]
1010
ms.TextureId="http://www.roblox.com/asset?id="..grb[3]
1011
ms.Scale=grb[4]
1012
grbg.Touched:connect(function(hit)
1013
if hit and hit.Parent and hit:IsA'Part' and hit.CanCollide and hit.Transparency<1 and firsthit then
1014
firsthit=false
1015
hitsnd:play''
1016
hitsnd2:play''
1017
grbg.Anchored=true
1018
grbg.Transparency=1
1019
game:service'Debris':AddItem(grbg,2)
1020
local expl=Instance.new('Part',workspace)
1021
expl.Name=grb[1]
1022
expl.formFactor=3
1023
expl.CFrame=CFrame.new(grbg.CFrame.x,grbg.CFrame.y,grbg.CFrame.z)
1024
expl.TopSurface=10
1025
expl.BottomSurface=10
1026
expl.LeftSurface=10
1027
expl.RightSurface=10
1028
expl.BackSurface=10
1029
expl.FrontSurface=10
1030
expl.CanCollide=false
1031
expl.Anchored=true
1032
expl.Transparency=1
1033
expl.Locked=true
1034
expl.Size=Vector3.new(.2,.2,.2)
1035
local emitr=Instance.new("ParticleEmitter",expl)
1036
emitr.Color = ColorSequence.new(Glow1,Glow2)
1037
emitr.Rate=800
1038
emitr.Speed=NumberRange.new(35,40)
1039
emitr.Acceleration=Vector3.new(0,-80,0)
1040
emitr.Lifetime=NumberRange.new(1.5)
1041
emitr.EmissionDirection="Top"
1042
emitr.Transparency=NumberSequence.new({nskn(0,0,0),nskn(.1,.1,0),nskn(.2,.2,0),nskn(.3,.3,0),nskn(.4,.4,0),nskn(.5,.5,0),nskn(.6,.6,0),nskn(.7,7,0),nskn(.8,.8,0),nskn(.9,.9,0),nskn(1,1,0)})
1043
1044
emitr.VelocitySpread=69
1045
emitr.Enabled=true
1046
emitr.Rotation=NumberRange.new(-15,15)
1047
emitr.RotSpeed=NumberRange.new(-25,25)
1048
emitr.Texture=emitter.Texture
1049
emitr.Size = NumberSequence.new({
1050
        nskn(0    , 2 , 0);
1051
        nskn(0.123, 1.75  , 0);
1052
        nskn(0.154, 1.5 , 0);
1053
        nskn(0.208, 1.25 , 0);
1054
        nskn(0.357, 1 , 0);
1055
        nskn(0.555, .75 , 0);
1056
        nskn(0.725, .5, 0);
1057
        nskn(0.905, .25, 0);
1058
        nskn(1    , 0, 0);
1059
})
1060
emitter.Rate=0
1061
for i,x in pairs(workspace:GetChildren()) do
1062
if x:IsA'Model' and x:findFirstChild("Humanoid") and x:findFirstChild("Torso") and x:findFirstChild("Head") then
1063
if (x.Torso.Position-expl.Position).magnitude<=12 and x~=chr then
1064
x:breakJoints''
1065
end
1066
end
1067
end
1068
wait'.2'
1069
emitr.Rate=0
1070
game:service'Debris':AddItem(expl,1)
1071
end
1072
end)
1073
wait'.2'
1074
opencd=false
1075
wait'.6'
1076
throwcd=false
1077
end
1078
1079
1080
1081
1082
1083
1084
end)
1085
1086
1087
1088
1089
lid.Touched:connect(function(hit)
1090
if otheranims==true and anim=="Tackle" or anim=='SuperJump' and not hitdb and not hit.Parent:IsA'Hat' and hit.Name~='Base' then
1091
if anim=='SuperJump' then otheranims=false chr.Humanoid.Jump=true end
1092
hitdb=true
1093
if hit and hit.Parent then
1094
if hit.Parent:IsA'Model' then
1095
for i,x in pairs(hit.Parent:GetChildren()) do if x:IsA'Humanoid' then hit.Parent:breakJoints'' hits:play'' end end
1096
if hit.Parent.Parent then
1097
for i,x in pairs(hit.Parent.Parent:GetChildren()) do if x:IsA'Humanoid' then hit.Parent.Parent:breakJoints'' hits:play'' end end
1098
end
1099
end
1100
end
1101
wait'.8' hitdb=false
1102
end
1103
end)
1104
1105
1106
game:service'RunService'.RenderStepped:connect(function()
1107
if   chr:findFirstChild("Humanoid") and rarm:findFirstChild("Weld") and   larm:findFirstChild("Weld") and hed:findFirstChild("Weld") and   lleg:findFirstChild("Weld") and rleg:findFirstChild("Weld") and   rutprt:findFirstChild("Weld") then
1108
if anim~=lastanim then
1109
runtime=0
1110
end
1111
lastanim=anim
1112
chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(waifu.CFrame)).p+Vector3.new(0,-1.25,0)
1113
syne=syne+.95
1114
if not otheranims and not swimming then
1115
if   (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not   chr.Humanoid.Jump then-- and torso.Velocity.y<5 and   torso.Velocity.y>-5
1116
anim="Idling"
1117
elseif   (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and   (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and   not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and   torso.Velocity.y>-5
1118
anim="Walking"
1119
elseif   (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and   not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and   torso.Velocity.y>-5
1120
anim="Sprinting"
1121
elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
1122
anim='Jumping'
1123
elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
1124
anim='Falling'
1125
end
1126
end
1127
if otheranims and crouching and not swimming and not flying then
1128
if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 then
1129
anim="Crouching"
1130
elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 then
1131
anim="Sneaking"
1132
end
1133
end
1134
1135
if otheranims and flying and not swimming and not crouching then
1136
if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 then
1137
anim="FlyIdle"
1138
heliweld1.C0=CFrame.new(0,3.25,0)*CFrame.Angles(0,syne,0)
1139
elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 then
1140
anim="FlyForward"
1141
heliweld1.C0=CFrame.new(0,3.25,0)*CFrame.Angles(0,syne,0)
1142
end
1143
else
1144
heliweld1.C0=CFrame.new(0,0,0)
1145
end
1146
1147
if anim=="Idling" then
1148
idlesineinc=35
1149
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(10)),.15)
1150
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(-10)),.15)
1151
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
1152
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
1153
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
1154
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
1155
canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,3.3,0)*CFrame.Angles(0,0,0),.15)
1156
end
1157
1158
if anim=="Walking" then
1159
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(10)),.15)
1160
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(-10)),.15)
1161
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
1162
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
1163
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
1164
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
1165
canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,3.3,0)*CFrame.Angles(0,0,0),.15)
1166
end
1167
1168
if anim=="Sprinting" then
1169
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(32.5)),.1)
1170
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(-32.5)),.1)
1171
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.6-math.cos(syne/4)/4,-(math.cos(syne/4)*2)-math.rad(10))*CFrame.Angles(math.cos(syne/4)*2+math.rad(10),0,math.rad(-2.5)),.1)
1172
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.6-math.cos(syne/4)/4,math.cos(syne/4)*2-math.rad(10))*CFrame.Angles(-(math.cos(syne/4)*2)+math.rad(10),0,math.rad(2.5)),.1)
1173
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.55+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),0,0),.1)
1174
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.cos(syne/2.5)/10+math.rad(-25),math.cos(syne/2.5)/10,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
1175
canWeld.C0=Lerp(canWeld.C0,CFrame.new(2.5,0,2)*CFrame.Angles(0,1.5,0),.1)
1176
end
1177
1178
if anim=="Jumping" then
1179
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
1180
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
1181
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
1182
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
1183
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
1184
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
1185
canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
1186
end
1187
1188
if anim=="Tackle" then
1189
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
1190
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
1191
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
1192
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
1193
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
1194
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),.1)
1195
canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
1196
end
1197
1198
if anim=="Falling" then
1199
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
1200
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
1201
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
1202
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
1203
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
1204
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
1205
canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
1206
end
1207
1208
if anim=="SuperJump" then
1209
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(10)),.15)
1210
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.525,0)*CFrame.Angles(math.rad(175),0,math.rad(-10)),.15)
1211
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.5,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.15)
1212
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.5,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.15)
1213
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),.15)
1214
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
1215
canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,3,0)*CFrame.Angles(0,0,0),.15)
1216
end
1217
1218
if anim=="Crouching" then
1219
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1220
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1221
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1222
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1223
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,-0.1,0)*CFrame.Angles(0,0,0),.1)
1224
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.75,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
1225
canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
1226
end
1227
1228
if anim=="Sneaking" then
1229
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1230
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1231
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-.8-math.cos(syne/6)/8,-(math.cos(syne/6)/1.75))*CFrame.Angles(math.cos(syne/6)/1.75,0,math.rad(-2.5)),.15)
1232
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-.8-math.cos(syne/6)/8,math.cos(syne/6)/1.75)*CFrame.Angles(-(math.cos(syne/6)/1.75),0,math.rad(2.5)),.15)
1233
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,-0.1,0)*CFrame.Angles(0,0,0),.1)
1234
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.2,0)*CFrame.Angles(math.rad(-5),math.rad(0),math.cos(syne/6)/20),.1)
1235
canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
1236
end
1237
1238
if anim=="FlyIdle" then
1239
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1240
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1241
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1242
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1243
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-0.2)*CFrame.Angles(0,0,0),.1)
1244
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.75-math.cos(syne/17.5),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.05)
1245
canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
1246
end
1247
if anim=="FlyForward" then
1248
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1249
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1250
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1251
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.5,0,0)*CFrame.Angles(math.rad(0),0,math.rad(0)),.1)
1252
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-0.2)*CFrame.Angles(0,0,0),.1)
1253
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.75-math.cos(syne/17.5),0)*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(0)),.05)
1254
canWeld.C0=Lerp(canWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0),.05)
1255
end
1256
1257
if opencd and otheranims then
1258
lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,1.8,-0.3)*CFrame.Angles(math.rad(85),math.rad(0),math.rad(0)),.222)
1259
music.Volume=TwnSingleNumber(music.Volume,2,.2)
1260
elseif not opencd and not displaying then
1261
music.Volume=TwnSingleNumber(music.Volume,.025,.05)
1262
elseif not opencd and displaying then
1263
music.Volume=TwnSingleNumber(music.Volume,2,.05)
1264
end
1265
if bboxout then
1266
bbweld.C0=Lerp(bbweld.C0,CFrame.new(0,1.9,.2)*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),.222)
1267
else
1268
bbweld.C0=Lerp(bbweld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
1269
end
1270
if ltout then
1271
blbweld.C0=Lerp(blbweld.C0,CFrame.new(0,1.7,-.7)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.222)
1272
lt.Range=TwnSingleNumber(lt.Range,16,.1)
1273
else
1274
blbweld.C0=Lerp(blbweld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
1275
lt.Range=0
1276
end
1277
if displaying then
1278
girlWeld.C0=Lerp(girlWeld.C0,CFrame.new(0,2.2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
1279
lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,1.15,-0.3)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(0)),.15)
1280
else
1281
	BOM:Play()
1282
girlWeld.C0=Lerp(girlWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
1283
lidWeld.C0=Lerp(lidWeld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.075)
1284
end
1285
if runnin and not otheranims and not swimming then
1286
chr.Humanoid.WalkSpeed=RunSpeed
1287
elseif not runnin and not otheranims and not swimming then
1288
chr.Humanoid.WalkSpeed=WlkSpeed
1289
end
1290
end
1291
end)
1292
end
1293
do
1294
        player = owner or game:GetService("Players").LocalPlayer
1295
1296
chatted = false
1297
1298
1299
a = Instance.new("BillboardGui", player.Character:FindFirstChild("Head"))
1300
a.ExtentsOffset = Vector3.new(1,0,0)
1301
a.Size = UDim2.new(1,0,1,0)
1302
a.AlwaysOnTop = true
1303
a.Enabled = true
1304
b =  Instance.new("ImageLabel", a)
1305
b.BackgroundTransparency = 1
1306
b.BorderSizePixel = 0
1307
b.Image = "http://www.roblox.com/asset/?id=243503908"
1308
b.ImageTransparency = 0.1
1309
b.Position = UDim2.new(0.2,0,0.05,0)
1310
b.Size = UDim2.new(5,0,1.2,0)
1311
b.Visible = false
1312
c = Instance.new("TextLabel", b)
1313
c.BackgroundTransparency = 1
1314
c.BorderSizePixel = 0
1315
c.Position = UDim2.new(0.1,0,0)
1316
c.Size = UDim2.new(0.5,0,0.4,0)
1317
c.ZIndex = 2
1318
c.Font = "SourceSans"
1319
c.FontSize = "Size18"
1320
c.Text = player.Name..":"
1321
c.TextColor3 = Color3.new(255/255,255/255,255/255)
1322
c.TextXAlignment = "Left"
1323
c.TextYAlignment = "Center"
1324
d = Instance.new("TextLabel", b)
1325
d.BackgroundTransparency = 1
1326
d.BorderSizePixel = 0
1327
d.Position = UDim2.new(0.1,0,0.4,0)
1328
d.Size = UDim2.new(0.9,0,0.6,0)
1329
d.ZIndex = 2
1330
d.Font = "SourceSans"
1331
d.FontSize = "Size18"
1332
d.Text = ""
1333
d.TextColor3 = Color3.new(255/255,255/255,255/255)
1334
d.TextXAlignment = "Left"
1335
d.TextYAlignment = "Top"
1336
d.TextWrapped = true
1337
1338
1339
function message(message)	
1340
repeat wait() until chatted == false
1341
chatted = true
1342
b.Visible = true	
1343
if string.find(message,"-r") ~=nil then
1344
for i=1,string.len(message),1 do
1345
d.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)	
1346
d.Text = string.sub(message,1,i)
1347
wait(0.1)	
1348
end
1349
elseif string.find(message,"-b") ~=nil then
1350
for i=1,string.len(message),1 do	
1351
d.Text = string.sub(string.byte(message),1,i)
1352
wait(0.05)	
1353
end
1354
else
1355
for i=1,string.len(message),1 do	
1356
d.Text = string.sub(message,1,i)
1357
wait(0.05)	
1358
end
1359
end
1360
wait(2)
1361
if string.find(message,"-t") ~=nil then
1362
b.Visible = true
1363
else
1364
b.Visible = false
1365
d.TextColor3  = Color3.new(255/255,255/255,255/255)			
1366
end
1367
chatted = false
1368
end
1369
1370
1371
1372
1373
player.Chatted:connect(message)
1374
end
1375
1376
1377
1378
1379
1380
wait()
1381
print('BOX TIME!')
1382
wait(2)
1383
n2:Destroy()
1384
wait()
1385
print('Remake by 123jl123')