View difference between Paste ID: dmGfYiz3 and mY84sfe7
SHOW: | | - or go back to the newest paste.
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,game,owner = owner,game
4
local RealPlayer = Player
5
do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
6
7
--      [[[
8
--000000[[====================================================================================\\
9
--000000[[                    DEIVIS97 EDIT    
10
--000000[[====================================================================================//
11
--      [[[
12
13
function sandbox(var,func)
14
	local env = getfenv(func)
15
	local newenv = setmetatable({},{
16
		__index = function(self,k)
17
			if k=="script" then
18
				return var
19
			else
20
				return env[k]
21
			end
22
		end,
23
	})
24
	setfenv(func,newenv)
25
	return func
26
end
27
cors = {}
28
mas = Instance.new("Model",game:GetService("Lighting"))
29
Model0 = Instance.new("Model")
30
Part1 = Instance.new("Part")
31
Decal2 = Instance.new("Decal")
32
Decal3 = Instance.new("Decal")
33
Decal4 = Instance.new("Decal")
34
Decal5 = Instance.new("Decal")
35
Decale = Instance.new("Decal")
36
Decalee = Instance.new("Decal")
37
Part6 = Instance.new("Part")
38
Decal7 = Instance.new("Decal")
39
Part8 = Instance.new("Part")
40
Script9 = Instance.new("Script")
41
Sound10 = Instance.new("Sound")
42
Sound11 = Instance.new("Sound")
43
Sound12 = Instance.new("Sound")
44
Sound13 = Instance.new("Sound")
45
Sound14 = Instance.new("Sound")
46
Sound15 = Instance.new("Sound")
47
Sound16 = Instance.new("Sound")
48
Sound17 = Instance.new("Sound")
49
Sound18 = Instance.new("Sound")
50
Sound19 = Instance.new("Sound")
51
Sound20 = Instance.new("Sound")
52
Sound21 = Instance.new("Sound")
53
Model0.Name = "leppie"
54
Model0.Parent = mas
55
Model0.PrimaryPart = Part6
56
Part1.Name = "Screen"
57
Part1.Parent = Model0
58
Part1.BrickColor = BrickColor.new("Maroon")
59
Part1.Rotation = Vector3.new(-180, 0, -180)
60
Part1.Anchored = true
61
Part1.Size = Vector3.new(400.8799591, 400.930027, 1.35998762)
62
Part1.CFrame = CFrame.new(13.20014, -1.7921829, -39.5804062, -1, 0, 0, 0, 1, 0, 0, 0, -1)
63
Part1.BottomSurface = Enum.SurfaceType.Smooth
64
Part1.TopSurface = Enum.SurfaceType.Smooth
65
Part1.Color = Color3.new(0.458824, 0, 0)
66
Part1.Position = Vector3.new(13.20014, 200.7921829, -509.5804062)
67
Part1.Orientation = Vector3.new(0, 180, 0)
68
Part1.Transparency = 1
69
Decal2.Name = "face"
70
Decal2.Parent = Part1
71
Decal2.Texture = "rbxassetid://421653951"
72
Decal3.Name = "eyes"
73
Decal3.Parent = Part1
74
Decal3.Texture = ""
75
Decal4.Name = "mouth"
76
Decal4.Parent = Part1
77
Decal5.Name = "breek"
78
Decal5.Parent = Part1
79
Decal5.Transparency = 1
80
Decal5.Texture = ""
81
Part6.Name = "Keyboard"
82
Part6.Parent = Model0
83
Part6.BrickColor = BrickColor.new("Really black")
84
Part6.Rotation = Vector3.new(-180, 0, -180)
85
Part6.Anchored = true
86
Part6.Size = Vector3.new(3000.1299744, 1, 3000.2299881)
87
Part6.CFrame = CFrame.new(13.20014, -62.288559, -4.82504272, -1, 0, 0, 0, 1, 0, 0, 0, -1)
88
Part6.BottomSurface = Enum.SurfaceType.Smooth
89
Part6.TopSurface = Enum.SurfaceType.Smooth
90
Part6.Material = "Grass"
91
Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
92
Part6.Position = Vector3.new(13.20014, -62.288559, -4.82504272)
93
Part6.Orientation = Vector3.new(0, 180, 0)
94
Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
95
Decal7.Face = Enum.NormalId.Top
96
Part8.Name = "Toppart"
97
Part8.Parent = Model0
98
Part8.BrickColor = BrickColor.new("Really black")
99
Part8.Rotation = Vector3.new(-180, 0, 0)
100
Part8.Anchored = true
101
Part8.CanCollide = false
102
Part8.Size = Vector3.new(79.1299744, 60.3200264, 1.35998762)
103
Part8.CFrame = CFrame.new(13.20014, -31.7921829, -39.7079086, 1, 0, 0, 0, -1, 0, 0, 0, -1)
104
Part8.BottomSurface = Enum.SurfaceType.Smooth
105
Part8.TopSurface = Enum.SurfaceType.Smooth
106
Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
107
Part8.Position = Vector3.new(13.20014, -31.7921829, -39.7079086)
108
Part8.Orientation = Vector3.new(0, 180, 180)
109
Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
110
Part8.Transparency = 1
111
Script9.Parent = Model0
112
table.insert(cors,sandbox(Script9,function()
113
leppie = script.Parent
114
keyboard = script.Parent.Keyboard
115
screen = script.Parent.Screen
116
top = script.Parent.Toppart
117
eyes = leppie.Screen.eyes
118
face = leppie.Screen.face
119
mouth = leppie.Screen.mouth
120
121
local killsky = Instance.new("Sky", game:GetService'Lighting')
122
killsky.SkyboxBk = "rbxassetid://102397435"
123
killsky.SkyboxDn = "rbxassetid://102397435"
124
killsky.SkyboxFt = "rbxassetid://102397435"
125
killsky.SkyboxLf = "rbxassetid://102397435"
126
killsky.SkyboxRt = "rbxassetid://102397435"
127
killsky.SkyboxUp = "rbxassetid://102397435"
128
killsky.StarCount = 0
129
killsky.SunAngularSize = 0
130
killsky.MoonAngularSize = 0
131
killsky.MoonTextureId = ""
132
killsky.CelestialBodiesShown = false
133
game.Lighting.FogColor = Color3.new(0.1,0.1,0.1)
134
game.Lighting.FogEnd = 0
135
136
137
local puddle = Instance.new("Part", workspace)
138
puddle.Transparency = 1
139
puddle.Anchored = true
140
puddle.CanCollide = false
141
puddle.Locked = true
142
puddle.Position = Vector3.new(13.2, 0.386, -4.825)
143
puddle.BrickColor = BrickColor.new("Really red")
144
puddle.Shape = "Cylinder"
145
puddle.Size = Vector3.new(0.6, 129.53, 132.12)
146
puddle.Orientation = Vector3.new(0,0,90)
147
puddle.Material = "Neon"
148
149
script.Parent.quake:Play()
150
wait(1)
151
script.Parent.intro:Play()
152
153
for i = 1,550 do
154
	leppie:SetPrimaryPartCFrame(leppie:GetPrimaryPartCFrame() * CFrame.new(0,0.125,0))
155
	wait()
156
end
157
script.Parent.quake:Stop()
158
wait(1)
159
wait()
160
puddle.Transparency = 0
161
wait()
162
puddle.Transparency = 1
163
wait()
164
puddle.Transparency = 1
165
wait()
166
puddle.Transparency = 1
167
wait()
168
puddle.Transparency = 1
169
wait()
170
puddle.Transparency = 1
171
wait()
172
puddle.Transparency = 1
173
wait()
174
puddle.Transparency = 1
175
wait()
176
puddle.Transparency = 1
177
wait()
178
puddle.Transparency = 1
179
wait()
180
puddle.Transparency = 1
181
wait()
182
puddle:Destroy()
183
killsky.Parent = game.Players
184
game.Lighting.FogEnd = 10000
185
local sky = Instance.new('Sky', game:GetService'Lighting')
186
sky.SkyboxBk = "rbxassetid://2083667"
187
sky.SkyboxDn = "rbxassetid://2083667"
188
sky.SkyboxFt = "rbxassetid://2083667"
189
sky.SkyboxLf = "rbxassetid://2083667"
190
sky.SkyboxRt = "rbxassetid://2083667"
191
sky.SkyboxUp = "rbxassetid://2083667"
192
sky.SunAngularSize = 0
193
sky.MoonAngularSize = 0
194
sky.MoonTextureId = ""
195
sky.CelestialBodiesShown = false
196
wait(1)
197
leppie.fite1:Play()
198
199
for kek = 1,20 do
200
	local etecc = Instance.new("Part", leppie)
201
	etecc.BrickColor = BrickColor.Random()
202
	etecc.Size = Vector3.new(5.59, 4.4, 4.71)
203
	etecc.Anchored = false
204
	etecc.CanCollide = true
205
	etecc.Shape = "Ball"
206
	etecc.Position = Vector3.new(math.random(-300,300),300, math.random(-300, 300))
207
	local etecc2 = Instance.new("Part", leppie)
208
	etecc2.BrickColor = BrickColor.Random()
209
	etecc2.Size = Vector3.new(5.59, 4.4, 4.71)
210
	etecc2.Anchored = false
211
	etecc2.CanCollide = true
212
	etecc2.Shape = "Ball"
213
	etecc2.Position = Vector3.new(math.random(-250,250),300, math.random(-250, 250))
214
	local etecc3 = Instance.new("Part", leppie)
215
	etecc3.BrickColor = BrickColor.Random()
216
	etecc3.Size = Vector3.new(5.59, 4.4, 4.71)
217
	etecc3.Anchored = false
218
	etecc3.CanCollide = true
219
	etecc3.Shape = "Ball"
220
	etecc3.Position = Vector3.new(math.random(-100,100),300, math.random(-100,100))
221
	local etecc4 = Instance.new("Part", leppie)
222
	etecc4.BrickColor = BrickColor.Random()
223
	etecc4.Size = Vector3.new(5.59, 4.4, 4.71)
224
	etecc4.Anchored = false
225
	etecc4.CanCollide = true
226
	etecc4.Shape = "Ball"
227
	etecc4.Position = Vector3.new(math.random(-50,50),300, math.random(-50,50))
228
wait(2)
229
local boom = Instance.new("Explosion", etecc)
230
				boom.Position = etecc.Position
231
				boom.BlastRadius = 30
232
local boom2 = Instance.new("Explosion", etecc2)
233
				boom2.Position = etecc2.Position
234
				boom2.BlastRadius = 30
235
				local boom3 = Instance.new("Explosion", etecc3)
236
				boom3.Position = etecc3.Position
237
				boom3.BlastRadius = 30
238
				local boom4 = Instance.new("Explosion", etecc4)
239
				boom4.Position = etecc4.Position
240
				boom4.BlastRadius = 30				
241
				wait(0.5)
242
etecc:Destroy()
243
etecc2:Destroy()
244
etecc3:Destroy()
245
etecc4:Destroy()
246
end
247
248
249
local weakspot = Instance.new("Part", keyboard)
250
weakspot.BrickColor = BrickColor.new("New Yeller")
251
weakspot.Position = keyboard.Position
252
weakspot.Size = Vector3.new(0.85, 9.96, 12.03)
253
weakspot.Anchored = true
254
weakspot.CanCollide = true
255
weakspot.Orientation = Vector3.new(0,0.3,0)
256
weakspot.Transparency = 1
257
print("Weak spot has appeared!")
258
Decale.Name = "face"
259
Decale.Parent = weakspot
260
Decale.Texture = "rbxassetid://311212183"
261
Decale.Face = "Left"
262
Decalee.Name = "face"
263
Decalee.Parent = weakspot
264
Decalee.Texture = "rbxassetid://311212183"
265
Decalee.Face = "Right"
266
function onTouch(hit)
267
	print("weakspot has been attacked!")
268
	weakspot:Destroy()
269
	leppie.intro:Stop()
270
	leppie.pain.Pitch = 0.5
271
	leppie.pain:Play()
272
	leppie.crash:Play()
273
wait(5)
274
275
local puddle = Instance.new("Part", workspace)
276
puddle.Transparency = 1
277
puddle.Anchored = true
278
puddle.CanCollide = false
279
puddle.Locked = true
280
puddle.Position = Vector3.new(13.2, 0.386, -4.825)
281
puddle.BrickColor = BrickColor.new("Really red")
282
puddle.Shape = "Cylinder"
283
puddle.Size = Vector3.new(0.6, 129.53, 132.12)
284
puddle.Orientation = Vector3.new(0,0,90)
285
puddle.Material = "Neon"
286
287
leppie.quake:Play()
288
local victori = Instance.new("Sound", workspace)
289
victori.SoundId = "http://www.roblox.com/asset/?id=926451629"
290
victori.Volume = 10
291
victori.TimePosition = 0
292
victori.Looped = false
293
victori:Play()
294
for i = 1,500 do
295
	leppie:SetPrimaryPartCFrame(leppie:GetPrimaryPartCFrame() * CFrame.new(0,-25,0))
296
	wait()
297
end
298
leppie.quake:Stop()
299
sky:Remove()
300
leppie:Destroy()
301
end
302
303
weakspot.Touched:connect(onTouch)
304
305
end))
306
Sound10.Name = "portal"
307
Sound10.Parent = Model0
308
Sound10.SoundId = "rbxassetid://956585775"
309
Sound10.Volume = 10
310
Sound11.Name = "quake"
311
Sound11.Parent = Model0
312
Sound11.SoundId = "rbxassetid://1444622148"
313
Sound11.Volume = 5
314
Sound12.Name = "intro"
315
Sound12.Parent = Model0
316
Sound12.SoundId = "rbxassetid://511174008"
317
Sound12.Volume = 10
318
Sound13.Name = "taunt"
319
Sound13.Parent = Model0
320
Sound13.SoundId = "rbxassetid://135017578"
321
Sound13.Volume = 10
322
Sound14.Name = "laugh"
323
Sound14.Parent = Model0
324
Sound14.SoundId = "rbxassetid://357906328"
325
Sound14.Volume = 10
326
Sound15.Name = "static"
327
Sound15.Parent = Model0
328
Sound15.SoundId = "rbxassetid://132081621"
329
Sound15.Volume = 10
330
Sound16.Name = "milkncereal"
331
Sound16.Parent = Model0
332
Sound16.SoundId = "rbxassetid://172144294"
333
Sound16.Volume = 10
334
Sound17.Name = "reee"
335
Sound17.Parent = Model0
336
Sound17.SoundId = "rbxassetid://1286168545"
337
Sound17.Volume = 10
338
Sound18.Name = "tooterals"
339
Sound18.Parent = Model0
340
Sound18.SoundId = "rbxassetid://647462622"
341
Sound18.Volume = 10
342
Sound19.Name = "fite1"
343
Sound19.Parent = Model0
344
Sound19.SoundId = "rbxassetid://"
345
Sound19.Volume = 10
346
Sound20.Name = "pain"
347
Sound20.Parent = Model0
348
Sound20.SoundId = "rbxassetid://406913243"
349
Sound20.Volume = 10
350
Sound21.Name = "crash"
351
Sound21.Parent = Model0
352
Sound21.SoundId = "rbxassetid://747351124"
353
Sound21.Volume = 10
354
for i,v in pairs(mas:GetChildren()) do
355
	v.Parent = game:GetService("Players").LocalPlayer.Character
356
	pcall(function() v:MakeJoints() end)
357
end
358
mas:Destroy()
359
for i,v in pairs(cors) do
360
	spawn(function()
361
		pcall(v)
362
	end)
363
end