View difference between Paste ID: r7KuB2FR and TEDeGnCw
SHOW: | | - or go back to the newest paste.
1-
--[[ by iliketrainsornot ]]--
1+
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("FE Compatibility code by Mokiros")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(),Button2Up=c(),Button2Down=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;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")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 typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u 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 rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},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")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --[[ by iliketrainsornot ]]--
6
7
warn("w h y")
8
print("this cancer is made by iliketrainsornot")
9
plr = game:GetService("Players").LocalPlayer
10
char = plr.Character
11
Instance.new("ForceField",char).Visible = false
12
hed = char.Head
13
torso = char.Torso
14
mouse = plr:GetMouse()
15
rarm = char["Right Arm"]
16
larm = char["Left Arm"]
17
rleg = char["Right Leg"]
18
lleg = char["Left Leg"]
19
rarm.Transparency = 1
20
larm.Transparency = 1
21
lleg.Transparency = 1
22
rleg.Transparency = 1
23
torso.Transparency = 1
24
activ = false
25
sound = false
26
Create = LoadLibrary("RbxUtility").Create
27
char.Animate:Destroy()
28
hum = char:FindFirstChildOfClass("Humanoid")
29
hum.Animator:Destroy()
30
hum.MaxHealth = math.huge
31
hum.Health = math.huge
32
hum.Name = "despacito"
33
hum.JumpPower = 125
34
hum.WalkSpeed = 65
35
for _,c in pairs(char:GetChildren()) do
36
	if (c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "ShirtGraphic") and c.Name ~= "Cloth" then
37
		c:Remove()
38
	end 
39
end
40
hed:FindFirstChildOfClass("SpecialMesh").MeshId = "http://www.roblox.com/asset/?id=1047997"
41
hed:FindFirstChildOfClass("SpecialMesh").TextureId = "http://www.roblox.com/asset/?id=1047998"
42
hed.face:Destroy()
43
hed:FindFirstChildOfClass("SpecialMesh").Scale = Vector3.new(2.5, 2.5, 2.5)
44
hed:FindFirstChildOfClass("SpecialMesh").Offset = Vector3.new(0,1.8,0)
45
redhead = Instance.new("Part",torso)
46
redhead.Size = torso.Size
47
redhead.Transparency = 0
48
weld = Instance.new("Weld",redhead)
49
weld.Part0 = redhead
50
weld.Part1 = torso
51
weld.C0 = CFrame.Angles(math.rad(-180), math.rad(-90), math.rad(0))
52
redhead1 = Instance.new("SpecialMesh",redhead)
53
redhead1.MeshId = hed:FindFirstChildOfClass("SpecialMesh").MeshId
54
redhead1.Scale = Vector3.new(2.85,2.85,2.85)
55
redhead1.TextureId = "http://www.roblox.com/asset/?id=1047998"
56
redhead.CanCollide = false
57
redhead1.Offset = Vector3.new(0,0.3,0)
58
redhead1.VertexColor = Vector3.new(255,0,0)
59
redhead = Instance.new("Part",rleg)
60
redhead.Size = rleg.Size
61
weld = Instance.new("Weld",redhead)
62
weld.Part0 = redhead
63
weld.Part1 = torso
64
weld.C0 = CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
65
redhead1 = Instance.new("SpecialMesh",redhead)
66
redhead1.MeshId = "rbxassetid://696339842"
67
redhead1.Scale = Vector3.new(1.3, 1.6, 0.8)
68
redhead.CanCollide = false
69
redhead1.Offset = Vector3.new(0, 0, -2.1)
70
redhead1.VertexColor = Vector3.new(0,0,0)
71
redhead2 = Instance.new("Decal", redhead)
72
redhead2.Color3 = Color3.fromRGB(0,0,0)
73
redhead2.Texture = "rbxassetid://696339520"
74
despacitotext = Instance.new("Part",hed)
75
despacitotext.Name = "despacito"
76
despacitotext.Size = Vector3.new(6.5,3,5.5)
77
despacitotext.Transparency = 1
78
despacitotext.CanCollide = false
79
weld = Instance.new("Weld",redhead)
80
weld.Part0 = despacitotext
81
weld.Part1 = hed
82
surfacegui = Instance.new("SurfaceGui",despacitotext)
83
text = Instance.new("TextLabel",surfacegui)
84
text.Size = UDim2.new(1,0,1,0)
85
text.TextSize = 150
86
text.Font = Enum.Font.Legacy
87
text.BackgroundTransparency = 1
88
surfacegui.AlwaysOnTop = true
89
text.TextStrokeColor3 = Color3.fromRGB(255,0,0)
90
text.TextStrokeTransparency = 0
91
text.TextColor3 = Color3.fromRGB(0,0,0)
92
text.Text = "despacito"
93
despacito = Instance.new("Sound",char)
94
despacito.SoundId = "rbxassetid://1345639272"
95
despacito.Volume = 10
96
despacito.EmitterSize = 100
97
despacito:Play()
98
despacito.Name = "despacito"
99
local seffect = Instance.new("ReverbSoundEffect",despacito)
100
char.ChildRemoved:connect(function(h)
101
if h == despacito then
102
	despacito = Instance.new("Sound",char)
103
despacito.SoundId = "rbxassetid://1345639272"
104
despacito.Volume = 10
105
despacito.EmitterSize = 100
106
despacito:Play()
107
despacito.Name = "despacito"
108
despacito.TimePosition = despacito.TimePosition
109
local seffect = Instance.new("ReverbSoundEffect",despacito)
110
end
111
end)
112
function RemoveOutlines(part)
113
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
114
end
115
CFuncs = {
116
	Part = {
117
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
118
			local Part = Create("Part")({
119
				Parent = Parent,
120
				Reflectance = Reflectance,
121
				Transparency = Transparency,
122
				CanCollide = false,
123
				Locked = true,
124
				BrickColor = BrickColor.new(tostring(BColor)),
125
				Name = Name,
126
				Size = Size,
127
				Material = Material
128
			})
129
			RemoveOutlines(Part)
130
			if Size == Vector3.new() then
131
				Part.Size = Vector3.new(0.2, 0.2, 0.2)
132
			else
133
				Part.Size = Size
134
			end
135
			return Part
136
		end
137
	},
138
	Mesh = {
139
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
140
			local Msh = Create(Mesh)({
141
				Parent = Part,
142
				Offset = OffSet,
143
				Scale = Scale
144
			})
145
			if Mesh == "SpecialMesh" then
146
				Msh.MeshType = MeshType
147
				Msh.MeshId = MeshId
148
			end
149
			return Msh
150
		end
151
	},
152
	Weld = {
153
		Create = function(Parent, Part0, Part1, C0, C1)
154
			local Weld = Create("Weld")({
155
				Parent = Parent,
156
				Part0 = Part0,
157
				Part1 = Part1,
158
				C0 = C0,
159
				C1 = C1
160
			})
161
			return Weld
162
		end
163
	},
164
	Sound = {
165
		Create = function(id, par, vol, pit)
166
			local Sound = Create("Sound")({
167
				Volume = vol,
168
				Pitch = pit or 1,
169
				SoundId = "rbxassetid://" .. id,
170
				Parent = par or workspace
171
			})
172
			Sound:play()
173
			return Sound
174
		end
175
	},
176
	Decal = {
177
		Create = function(Color, Texture, Transparency, Name, Parent)
178
			local Decal = Create("Decal")({
179
				Color3 = Color,
180
				Texture = "rbxassetid://" .. Texture,
181
				Transparency = Transparency,
182
				Name = Name,
183
				Parent = Parent
184
			})
185
			return Decal
186
		end
187
	},
188
	BillboardGui = {
189
		Create = function(Parent, Image, Position, Size)
190
			local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
191
			BillPar.CFrame = CFrame.new(Position)
192
			local Bill = Create("BillboardGui")({
193
				Parent = BillPar,
194
				Adornee = BillPar,
195
				Size = UDim2.new(1, 0, 1, 0),
196
				SizeOffset = Vector2.new(Size, Size)
197
			})
198
			local d = Create("ImageLabel", Bill)({
199
				Parent = Bill,
200
				BackgroundTransparency = 1,
201
				Size = UDim2.new(1, 0, 1, 0),
202
				Image = "rbxassetid://" .. Image
203
			})
204
			return BillPar
205
		end
206
	},
207
	ParticleEmitter = {
208
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
209
			local Particle = Create("ParticleEmitter")({
210
				Parent = Parent,
211
				Color = ColorSequence.new(Color1, Color2),
212
				LightEmission = LightEmission,
213
				Size = Size,
214
				Texture = Texture,
215
				Transparency = Transparency,
216
				ZOffset = ZOffset,
217
				Acceleration = Accel,
218
				Drag = Drag,
219
				LockedToPart = LockedToPart,
220
				VelocityInheritance = VelocityInheritance,
221
				EmissionDirection = EmissionDirection,
222
				Enabled = Enabled,
223
				Lifetime = LifeTime,
224
				Rate = Rate,
225
				Rotation = Rotation,
226
				RotSpeed = RotSpeed,
227
				Speed = Speed,
228
				VelocitySpread = VelocitySpread
229
			})
230
			return Particle
231
		end
232
	},
233
	CreateTemplate = {}
234
}
235
function text(Pos, Text, Time, Color)
236
	local Rate = 0.03333333333333333
237
	local Pos = Pos or Vector3.new(0, 0, 0)
238
	local Text = Text or ""
239
	local Time = Time or 2
240
	local Color = Color or Color3.new(1, 0, 1)
241
	local EffectPart = CFuncs.Part.Create(hed, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
242
	EffectPart.Anchored = true
243
	local BillboardGui = Create("BillboardGui")({
244
		Size = UDim2.new(3, 0, 3, 0),
245
		Adornee = EffectPart,
246
		Parent = EffectPart
247
	})
248
	local TextLabel = Create("TextLabel")({
249
		BackgroundTransparency = 1,
250
		Size = UDim2.new(1, 0, 1, 0),
251
		TextSize = 55,
252
		Text = Text,
253
		Font = Enum.Font.Cartoon,
254
		TextColor3 = Color3.fromRGB(255,255,255),
255
		TextScaled = false,
256
		Parent = BillboardGui
257
	})
258
	game.Debris:AddItem(EffectPart, Time)
259
	EffectPart.Parent = game:GetService("Workspace")
260
	delay(0, function()
261
		local Frames = Time / Rate
262
		for Frame = 1, Frames do
263
			wait(Rate)
264
			local Percent = Frame / Frames
265
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
266
			TextLabel.TextTransparency = Percent
267
		end
268
		if EffectPart and EffectPart.Parent then
269
			EffectPart:Destroy()
270
		end
271
	end)
272
end
273
ArtificialHB = Instance.new("BindableEvent", script)
274
ArtificialHB.Name = "ArtificialHB"
275
276
script:WaitForChild("ArtificialHB")
277
Frame_Speed = 1 / 60
278
frame = Frame_Speed
279
tf = 0
280
allowframeloss = false
281
tossremainder = false
282
lastframe = tick()
283
script.ArtificialHB:Fire()
284
285
game:GetService("RunService").Heartbeat:connect(function(s, p)
286
	tf = tf + s
287
	if tf >= frame then
288
		if allowframeloss then
289
			script.ArtificialHB:Fire()
290
			lastframe = tick()
291
		else
292
			for i = 1, math.floor(tf / frame) do
293
				script.ArtificialHB:Fire()
294
			end
295
		lastframe = tick()
296
		end
297
		if tossremainder then
298
			tf = 0
299
		else
300
			tf = tf - frame * math.floor(tf / frame)
301
		end
302
	end
303
end)
304
305
function CreateSound(ID, PARENT, VOLUME, PITCH)
306
	--coroutine.resume(coroutine.create(function()
307
		local NEWSOUND = Instance.new("Sound", PARENT)
308
		NEWSOUND.Volume = VOLUME
309
		NEWSOUND.Pitch = PITCH
310
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
311
		NEWSOUND:play()
312
		game:GetService("Debris"):AddItem(NEWSOUND, 100)
313
		return NEWSOUND
314
	--end))
315
end
316
function Swait(NUMBER)
317
	if NUMBER == 0 or NUMBER == nil then
318
		ArtificialHB.Event:wait()
319
	else
320
		for i = 1, NUMBER do
321
			ArtificialHB.Event:wait()
322
		end
323
	end
324
end
325
function itstimetostop()
326
	sound = true
327
	local snd = Instance.new("Sound",char)
328
	snd.SoundId = "rbxassetid://358468903"
329
	snd.Volume = 10
330
	snd.TimePosition = 0.25
331
	snd.EmitterSize = 350
332
	snd:Play()
333
	text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "ITS TIME TO STOP", 2, Color3.fromRGB(255,255,255))
334
	wait(2)
335
	text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "ITS TIME TO STOP OKAY", 2, Color3.fromRGB(255,255,255))
336
	wait(2.6)
337
	text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "NO MORE", 2, Color3.fromRGB(255,255,255))
338
	sound = false
339
end
340
function youbetterstop()
341
	sound = true
342
	local snd = Instance.new("Sound",char)
343
	snd.SoundId = "rbxassetid://1246891273"
344
	snd.Volume = 10
345
	snd.TimePosition = 1.2
346
	snd:Play()
347
	snd.EmitterSize = 100
348
	text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "youbetterstop.mp3", 5.2, Color3.fromRGB(255,255,255))
349
	wait(5.2)
350
	sound = false
351
end
352
function ecksdee()
353
	sound = true
354
	local snd = Instance.new("Sound",char)
355
	snd.SoundId = "rbxassetid://1486343908"
356
	snd.Volume = 10
357
	snd:Play()
358
	snd.EmitterSize = 150
359
	text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "ecks", 1, Color3.fromRGB(255,255,255))
360
	wait(0.95)
361
	text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "dee", 1, Color3.fromRGB(255,255,255))
362
	sound = false
363
end
364
function lukatthisdude()
365
	sound = true
366
	local snd = Instance.new("Sound",char)
367
	snd.SoundId = "rbxassetid://525498255"
368
	snd.Volume = 10
369
	snd:Play()
370
	snd.EmitterSize = 300
371
	text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "lookatthisdude.mp3", 27, Color3.fromRGB(255,255,255))
372
	wait(27)
373
	sound = false
374
end
375
function stopdespacito()
376
	if despacito.Playing == true then
377
		despacito:Pause()
378
	elseif despacito.Playing == false then
379
		despacito:Play()
380
	end
381
end
382
function bruh()
383
	sound = true
384
	local snd = Instance.new("Sound",char)
385
	snd.SoundId = "rbxassetid://170040190"
386
	snd.Volume = 10
387
	snd:Play()
388
	snd.EmitterSize = 150
389
	text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "bRUH", 1.7, Color3.fromRGB(255,255,255))
390
	wait(1.7)
391
	sound = false
392
end
393
SHIELD = false
394
function shield()
395
	IT = Instance.new
396
	VT = Vector3.new
397
	RootPart = char.HumanoidRootPart
398
	CF = CFrame.new
399
	if SHIELD == false then
400
		SHIELD = true
401
		warn("YO TENGO")
402
		coroutine.resume(coroutine.create(function()
403
			local yotengo = IT("Part",char)
404
			yotengo.Size = VT(5,12,0)
405
			yotengo.CFrame = RootPart.CFrame * CF(0,3,-7)
406
			yotengo.Anchored = true
407
			local mesh = IT("SpecialMesh",yotengo)
408
			mesh.MeshType = "FileMesh"
409
			mesh.MeshId = "http://www.roblox.com/asset/?id=15158180"
410
			mesh.TextureId = "http://www.roblox.com/asset/?id=15158167"
411
			mesh.Scale = VT(3,3,3)
412
			CreateSound("1236609502", yotengo, 50, 1)
413
			local woosh = yotengo.Touched:Connect(function(hit)
414
				if hit.Parent.ClassName == "Model" then
415
					hit.Parent:BreakJoints()
416
					CreateSound("978878312", hit, 2, 1)
417
				elseif hit.ClassName == "Part" and hit.Anchored == false then
418
					hit:remove()
419
				end
420
			end)
421
			woosh:disconnect()
422
			CreateSound("1236609502", yotengo, 50, 1)
423
			yotengo.Anchored = false
424
			local bv = Instance.new("BodyVelocity") 
425
			bv.maxForce = Vector3.new(4e9, 4e9, 4e9)
426
			bv.velocity = RootPart.CFrame.lookVector*300
427
			bv.Parent = yotengo
428
			bv.Name = "speedy"
429
			local paw = yotengo.Touched:Connect(function(hit)
430
				if hit.Parent.ClassName == "Model" then
431
					yotengo:remove()
432
					hit.Parent:BreakJoints()
433
					wait(0.1)
434
					hit.Parent:ClearAllChildren()
435
				end
436
			end) 
437
		end))
438
	elseif SHIELD == true then
439
		SHIELD = false
440
	end
441
end
442
mouse.KeyDown:connect(function(k)
443
	if k == "z" and sound == false then
444
		itstimetostop()
445
	elseif k == "x" and sound == false then
446
		youbetterstop()
447
	elseif k == "c" and sound == false then
448
		ecksdee()
449
	elseif k == "v" and sound == false then
450
		lukatthisdude()
451
	elseif k == "b" then
452
		stopdespacito()
453
	elseif k == "n" and sound == false then
454
		bruh()
455
	elseif k == "q" and sound == true then
456
		print("sounds delay resetted!")
457
		sound = false
458
	elseif k == "f" then
459
		shield()
460
	end
461
end)