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