View difference between Paste ID: JLSG5iX9 and mY84sfe7
SHOW: | | - or go back to the newest paste.
1
--      [[[
2
--000000[[====================================================================================\\
3
--000000[[                    DEIVIS97 EDIT    
4
--000000[[====================================================================================//
5
--      [[[
6
7
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
8
local Player,game,owner = owner,game
9
local RealPlayer = Player
10
do
11
    print("FE Compatibility code by Mokiros")
12
    local rp = RealPlayer
13
    script.Parent = rp.Character
14
   
15
    --RemoteEvent for communicating
16
    local Event = Instance.new("RemoteEvent")
17
    Event.Name = "UserInput_Event"
18
 
19
    --Fake event to make stuff like Mouse.KeyDown work
20
    local function fakeEvent()
21
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
22
        t.connect = t.Connect
23
        return t
24
    end
25
 
26
    --Creating fake input objects with fake variables
27
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
28
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
29
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
30
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
31
    end}
32
    --Merged 2 functions into one by checking amount of arguments
33
    CAS.UnbindAction = CAS.BindAction
34
 
35
    --This function will trigger the events that have been :Connect()'ed
36
    local function te(self,ev,...)
37
        local t = m[ev]
38
        if t and t._fakeEvent then
39
            for _,f in pairs(t.Functions) do
40
                f(...)
41
            end
42
        end
43
    end
44
    m.TrigEvent = te
45
    UIS.TrigEvent = te
46
 
47
    Event.OnServerEvent:Connect(function(plr,io)
48
        if plr~=rp then return end
49
        m.Target = io.Target
50
        m.Hit = io.Hit
51
        if not io.isMouse then
52
            local b = io.UserInputState == Enum.UserInputState.Begin
53
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
54
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
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
 
71
    local Mouse = Player:GetMouse()
72
    local UIS = game:GetService("UserInputService")
73
    local input = function(io,a)
74
        if a then return end
75
        --Since InputObject is a client-side instance, we create and pass table instead
76
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
77
    end
78
    UIS.InputBegan:Connect(input)
79
    UIS.InputEnded:Connect(input)
80
 
81
    local h,t
82
    --Give the server mouse data 30 times every second, but only if the values changed
83
    --If player is not moving their mouse, client won't fire events
84
    while wait(1/30) do
85
        if h~=Mouse.Hit or t~=Mouse.Target then
86
            h,t=Mouse.Hit,Mouse.Target
87
            Event:FireServer({isMouse=true,Target=t,Hit=h})
88
        end
89
    end]==],Player.Character)
90
 
91
    ----Sandboxed game object that allows the usage of client-side methods and services
92
    --Real game object
93
    local _rg = game
94
 
95
    --Metatable for fake service
96
    local fsmt = {
97
        __index = function(self,k)
98
            local s = rawget(self,"_RealService")
99
            if s then return s[k] end
100
        end,
101
        __newindex = function(self,k,v)
102
            local s = rawget(self,"_RealService")
103
            if s then s[k]=v end
104
        end,
105
        __call = function(self,...)
106
            local s = rawget(self,"_RealService")
107
            if s then return s(...) end
108
        end
109
    }
110
    local function FakeService(t,RealService)
111
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
112
        return setmetatable(t,fsmt)
113
    end
114
 
115
    --Fake game object
116
    local g = {
117
        GetService = function(self,s)
118
            return self[s]
119
        end,
120
        Players = FakeService({
121
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
122
        },"Players"),
123
        UserInputService = FakeService(UIS,"UserInputService"),
124
        ContextActionService = FakeService(CAS,"ContextActionService"),
125
    }
126
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
127
    g.service = g.GetService
128
   
129
    g.RunService = FakeService({
130
        RenderStepped = _rg:GetService("RunService").Heartbeat,
131
        BindToRenderStep = function(self,name,_,fun)
132
            self._btrs[name] = self.Heartbeat:Connect(fun)
133
        end,
134
        UnbindFromRenderStep = function(self,name)
135
            self._btrs[name]:Disconnect()
136
        end,
137
    },"RunService")
138
 
139
    setmetatable(g,{
140
        __index=function(self,s)
141
            return _rg:GetService(s) or typeof(_rg[s])=="function"
142
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
143
        end,
144
        __newindex = fsmt.__newindex,
145
        __call = fsmt.__call
146
    })
147
    --Changing owner to fake player object to support owner:GetMouse()
148
    game,owner = g,g.Players.LocalPlayer
149
end
150
151
152
function sandbox(var,func)
153
	local env = getfenv(func)
154
	local newenv = setmetatable({},{
155
		__index = function(self,k)
156
			if k=="script" then
157
				return var
158
			else
159
				return env[k]
160
			end
161
		end,
162
	})
163
	setfenv(func,newenv)
164
	return func
165
end
166
cors = {}
167
mas = Instance.new("Model",game:GetService("Lighting"))
168
Model0 = Instance.new("Model")
169
Part1 = Instance.new("Part")
170
Decal2 = Instance.new("Decal")
171
Decal3 = Instance.new("Decal")
172
Decal4 = Instance.new("Decal")
173
Decal5 = Instance.new("Decal")
174
Decale = Instance.new("Decal")
175
Decalee = Instance.new("Decal")
176
Part6 = Instance.new("Part")
177
Decal7 = Instance.new("Decal")
178
Part8 = Instance.new("Part")
179
Script9 = Instance.new("Script")
180
Sound10 = Instance.new("Sound")
181
Sound11 = Instance.new("Sound")
182
Sound12 = Instance.new("Sound")
183
Sound13 = Instance.new("Sound")
184
Sound14 = Instance.new("Sound")
185
Sound15 = Instance.new("Sound")
186
Sound16 = Instance.new("Sound")
187
Sound17 = Instance.new("Sound")
188
Sound18 = Instance.new("Sound")
189
Sound19 = Instance.new("Sound")
190
Sound20 = Instance.new("Sound")
191
Sound21 = Instance.new("Sound")
192
Model0.Name = "leppie"
193
Model0.Parent = mas
194
Model0.PrimaryPart = Part6
195
Part1.Name = "Screen"
196
Part1.Parent = Model0
197
Part1.BrickColor = BrickColor.new("Maroon")
198
Part1.Rotation = Vector3.new(-180, 0, -180)
199
Part1.Anchored = true
200
Part1.Size = Vector3.new(400.8799591, 400.930027, 1.35998762)
201
Part1.CFrame = CFrame.new(13.20014, -1.7921829, -39.5804062, -1, 0, 0, 0, 1, 0, 0, 0, -1)
202
Part1.BottomSurface = Enum.SurfaceType.Smooth
203
Part1.TopSurface = Enum.SurfaceType.Smooth
204
Part1.Color = Color3.new(0.458824, 0, 0)
205
Part1.Position = Vector3.new(13.20014, 200.7921829, -509.5804062)
206
Part1.Orientation = Vector3.new(0, 180, 0)
207
Part1.Transparency = 1
208
Decal2.Name = "face"
209
Decal2.Parent = Part1
210
Decal2.Texture = "rbxassetid://421653951"
211
Decal3.Name = "eyes"
212
Decal3.Parent = Part1
213
Decal3.Texture = ""
214
Decal4.Name = "mouth"
215
Decal4.Parent = Part1
216
Decal5.Name = "breek"
217
Decal5.Parent = Part1
218
Decal5.Transparency = 1
219
Decal5.Texture = ""
220
Part6.Name = "Keyboard"
221
Part6.Parent = Model0
222
Part6.BrickColor = BrickColor.new("Really black")
223
Part6.Rotation = Vector3.new(-180, 0, -180)
224
Part6.Anchored = true
225
Part6.Size = Vector3.new(3000.1299744, 1, 3000.2299881)
226
Part6.CFrame = CFrame.new(13.20014, -62.288559, -4.82504272, -1, 0, 0, 0, 1, 0, 0, 0, -1)
227
Part6.BottomSurface = Enum.SurfaceType.Smooth
228
Part6.TopSurface = Enum.SurfaceType.Smooth
229
Part6.Material = "Grass"
230
Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
231
Part6.Position = Vector3.new(13.20014, -62.288559, -4.82504272)
232
Part6.Orientation = Vector3.new(0, 180, 0)
233
Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
234
Decal7.Face = Enum.NormalId.Top
235
Part8.Name = "Toppart"
236
Part8.Parent = Model0
237
Part8.BrickColor = BrickColor.new("Really black")
238
Part8.Rotation = Vector3.new(-180, 0, 0)
239
Part8.Anchored = true
240
Part8.CanCollide = false
241
Part8.Size = Vector3.new(79.1299744, 60.3200264, 1.35998762)
242
Part8.CFrame = CFrame.new(13.20014, -31.7921829, -39.7079086, 1, 0, 0, 0, -1, 0, 0, 0, -1)
243
Part8.BottomSurface = Enum.SurfaceType.Smooth
244
Part8.TopSurface = Enum.SurfaceType.Smooth
245
Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
246
Part8.Position = Vector3.new(13.20014, -31.7921829, -39.7079086)
247
Part8.Orientation = Vector3.new(0, 180, 180)
248
Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
249
Part8.Transparency = 1
250
Script9.Parent = Model0
251
table.insert(cors,sandbox(Script9,function()
252
leppie = script.Parent
253
keyboard = script.Parent.Keyboard
254
screen = script.Parent.Screen
255
top = script.Parent.Toppart
256
eyes = leppie.Screen.eyes
257
face = leppie.Screen.face
258
mouth = leppie.Screen.mouth
259
260
local killsky = Instance.new("Sky", game:GetService'Lighting')
261
killsky.SkyboxBk = "rbxassetid://102397435"
262
killsky.SkyboxDn = "rbxassetid://102397435"
263
killsky.SkyboxFt = "rbxassetid://102397435"
264
killsky.SkyboxLf = "rbxassetid://102397435"
265
killsky.SkyboxRt = "rbxassetid://102397435"
266
killsky.SkyboxUp = "rbxassetid://102397435"
267
killsky.StarCount = 0
268
killsky.SunAngularSize = 0
269
killsky.MoonAngularSize = 0
270
killsky.MoonTextureId = ""
271
killsky.CelestialBodiesShown = false
272
game.Lighting.FogColor = Color3.new(0.1,0.1,0.1)
273
game.Lighting.FogEnd = 0
274
275
276
local puddle = Instance.new("Part", workspace)
277
puddle.Transparency = 1
278
puddle.Anchored = true
279
puddle.CanCollide = false
280
puddle.Locked = true
281
puddle.Position = Vector3.new(13.2, 0.386, -4.825)
282
puddle.BrickColor = BrickColor.new("Really red")
283
puddle.Shape = "Cylinder"
284
puddle.Size = Vector3.new(0.6, 129.53, 132.12)
285
puddle.Orientation = Vector3.new(0,0,90)
286
puddle.Material = "Neon"
287
288
script.Parent.quake:Play()
289
wait(1)
290
script.Parent.intro:Play()
291
292
for i = 1,550 do
293
	leppie:SetPrimaryPartCFrame(leppie:GetPrimaryPartCFrame() * CFrame.new(0,0.125,0))
294
	wait()
295
end
296
script.Parent.quake:Stop()
297
wait(1)
298
wait()
299
puddle.Transparency = 0
300
wait()
301
puddle.Transparency = 1
302
wait()
303
puddle.Transparency = 1
304
wait()
305
puddle.Transparency = 1
306
wait()
307
puddle.Transparency = 1
308
wait()
309
puddle.Transparency = 1
310
wait()
311
puddle.Transparency = 1
312
wait()
313
puddle.Transparency = 1
314
wait()
315
puddle.Transparency = 1
316
wait()
317
puddle.Transparency = 1
318
wait()
319
puddle.Transparency = 1
320
wait()
321
puddle:Destroy()
322
killsky.Parent = game.Players
323
game.Lighting.FogEnd = 10000
324
local sky = Instance.new('Sky', game:GetService'Lighting')
325
sky.SkyboxBk = "rbxassetid://2083667"
326
sky.SkyboxDn = "rbxassetid://2083667"
327
sky.SkyboxFt = "rbxassetid://2083667"
328
sky.SkyboxLf = "rbxassetid://2083667"
329
sky.SkyboxRt = "rbxassetid://2083667"
330
sky.SkyboxUp = "rbxassetid://2083667"
331
sky.SunAngularSize = 0
332
sky.MoonAngularSize = 0
333
sky.MoonTextureId = ""
334
sky.CelestialBodiesShown = false
335
wait(1)
336
leppie.fite1:Play()
337
338
for kek = 1,20 do
339
	local etecc = Instance.new("Part", leppie)
340
	etecc.BrickColor = BrickColor.Random()
341
	etecc.Size = Vector3.new(5.59, 4.4, 4.71)
342
	etecc.Anchored = false
343
	etecc.CanCollide = true
344
	etecc.Shape = "Ball"
345
	etecc.Position = Vector3.new(math.random(-300,300),300, math.random(-300, 300))
346
	local etecc2 = Instance.new("Part", leppie)
347
	etecc2.BrickColor = BrickColor.Random()
348
	etecc2.Size = Vector3.new(5.59, 4.4, 4.71)
349
	etecc2.Anchored = false
350
	etecc2.CanCollide = true
351
	etecc2.Shape = "Ball"
352
	etecc2.Position = Vector3.new(math.random(-250,250),300, math.random(-250, 250))
353
	local etecc3 = Instance.new("Part", leppie)
354
	etecc3.BrickColor = BrickColor.Random()
355
	etecc3.Size = Vector3.new(5.59, 4.4, 4.71)
356
	etecc3.Anchored = false
357
	etecc3.CanCollide = true
358
	etecc3.Shape = "Ball"
359
	etecc3.Position = Vector3.new(math.random(-100,100),300, math.random(-100,100))
360
	local etecc4 = Instance.new("Part", leppie)
361
	etecc4.BrickColor = BrickColor.Random()
362
	etecc4.Size = Vector3.new(5.59, 4.4, 4.71)
363
	etecc4.Anchored = false
364
	etecc4.CanCollide = true
365
	etecc4.Shape = "Ball"
366
	etecc4.Position = Vector3.new(math.random(-50,50),300, math.random(-50,50))
367
wait(2)
368
local boom = Instance.new("Explosion", etecc)
369
				boom.Position = etecc.Position
370
				boom.BlastRadius = 30
371
local boom2 = Instance.new("Explosion", etecc2)
372
				boom2.Position = etecc2.Position
373
				boom2.BlastRadius = 30
374
				local boom3 = Instance.new("Explosion", etecc3)
375
				boom3.Position = etecc3.Position
376
				boom3.BlastRadius = 30
377
				local boom4 = Instance.new("Explosion", etecc4)
378
				boom4.Position = etecc4.Position
379
				boom4.BlastRadius = 30				
380
				wait(0.5)
381
etecc:Destroy()
382
etecc2:Destroy()
383
etecc3:Destroy()
384
etecc4:Destroy()
385
end
386
387
388
local weakspot = Instance.new("Part", keyboard)
389
weakspot.BrickColor = BrickColor.new("New Yeller")
390
weakspot.Position = keyboard.Position
391
weakspot.Size = Vector3.new(0.85, 9.96, 12.03)
392
weakspot.Anchored = true
393
weakspot.CanCollide = true
394
weakspot.Orientation = Vector3.new(0,0.3,0)
395
weakspot.Transparency = 1
396
print("Weak spot has appeared!")
397
Decale.Name = "face"
398
Decale.Parent = weakspot
399
Decale.Texture = "rbxassetid://311212183"
400
Decale.Face = "Left"
401
Decalee.Name = "face"
402
Decalee.Parent = weakspot
403
Decalee.Texture = "rbxassetid://311212183"
404
Decalee.Face = "Right"
405
function onTouch(hit)
406
	print("weakspot has been attacked!")
407
	weakspot:Destroy()
408
	leppie.intro:Stop()
409
	leppie.pain.Pitch = 0.5
410
	leppie.pain:Play()
411
	leppie.crash:Play()
412
wait(5)
413
414
local puddle = Instance.new("Part", workspace)
415
puddle.Transparency = 1
416
puddle.Anchored = true
417
puddle.CanCollide = false
418
puddle.Locked = true
419
puddle.Position = Vector3.new(13.2, 0.386, -4.825)
420
puddle.BrickColor = BrickColor.new("Really red")
421
puddle.Shape = "Cylinder"
422
puddle.Size = Vector3.new(0.6, 129.53, 132.12)
423
puddle.Orientation = Vector3.new(0,0,90)
424
puddle.Material = "Neon"
425
426
leppie.quake:Play()
427
local victori = Instance.new("Sound", workspace)
428
victori.SoundId = "http://www.roblox.com/asset/?id=926451629"
429
victori.Volume = 10
430
victori.TimePosition = 0
431
victori.Looped = false
432
victori:Play()
433
for i = 1,500 do
434
	leppie:SetPrimaryPartCFrame(leppie:GetPrimaryPartCFrame() * CFrame.new(0,-25,0))
435
	wait()
436
end
437
leppie.quake:Stop()
438
sky:Remove()
439
leppie:Destroy()
440
end
441
442
weakspot.Touched:connect(onTouch)
443
444
end))
445
Sound10.Name = "portal"
446
Sound10.Parent = Model0
447
Sound10.SoundId = "rbxassetid://956585775"
448
Sound10.Volume = 10
449
Sound11.Name = "quake"
450
Sound11.Parent = Model0
451
Sound11.SoundId = "rbxassetid://1444622148"
452
Sound11.Volume = 5
453
Sound12.Name = "intro"
454
Sound12.Parent = Model0
455
Sound12.SoundId = "rbxassetid://511174008"
456
Sound12.Volume = 10
457
Sound13.Name = "taunt"
458
Sound13.Parent = Model0
459
Sound13.SoundId = "rbxassetid://135017578"
460
Sound13.Volume = 10
461
Sound14.Name = "laugh"
462
Sound14.Parent = Model0
463
Sound14.SoundId = "rbxassetid://357906328"
464
Sound14.Volume = 10
465
Sound15.Name = "static"
466
Sound15.Parent = Model0
467
Sound15.SoundId = "rbxassetid://132081621"
468
Sound15.Volume = 10
469
Sound16.Name = "milkncereal"
470
Sound16.Parent = Model0
471
Sound16.SoundId = "rbxassetid://172144294"
472
Sound16.Volume = 10
473
Sound17.Name = "reee"
474
Sound17.Parent = Model0
475
Sound17.SoundId = "rbxassetid://1286168545"
476
Sound17.Volume = 10
477
Sound18.Name = "tooterals"
478
Sound18.Parent = Model0
479
Sound18.SoundId = "rbxassetid://647462622"
480
Sound18.Volume = 10
481
Sound19.Name = "fite1"
482
Sound19.Parent = Model0
483
Sound19.SoundId = "rbxassetid://"
484
Sound19.Volume = 10
485
Sound20.Name = "pain"
486
Sound20.Parent = Model0
487
Sound20.SoundId = "rbxassetid://406913243"
488
Sound20.Volume = 10
489
Sound21.Name = "crash"
490
Sound21.Parent = Model0
491
Sound21.SoundId = "rbxassetid://747351124"
492
Sound21.Volume = 10
493
for i,v in pairs(mas:GetChildren()) do
494
	v.Parent = game:GetService("Players").LocalPlayer.Character
495
	pcall(function() v:MakeJoints() end)
496
end
497
mas:Destroy()
498
for i,v in pairs(cors) do
499
	spawn(function()
500
		pcall(v)
501
	end)
502
end