View difference between Paste ID: 5E3fF2Li and FzX6j2Tx
SHOW: | | - or go back to the newest paste.
1
-- This script has convert to FE by who i don't know?
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 Mokiros | Showcase by Bacon Hair!")
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()}
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
            for _,t in pairs(CAS.Actions) do
54
                for _,k in pairs(t.Keys) do
55
                    if k==io.KeyCode then
56
                        t.Function(t.Name,io.UserInputState,io)
57
                    end
58
                end
59
            end
60
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
61
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
62
        end
63
    end)
64
    Event.Parent = NLS([==[
65
    local Player = game:GetService("Players").LocalPlayer
66
    local Event = script:WaitForChild("UserInput_Event")
67
 
68
    local Mouse = Player:GetMouse()
69
    local UIS = game:GetService("UserInputService")
70
    local input = function(io,a)
71
        if a then return end
72
        --Since InputObject is a client-side instance, we create and pass table instead
73
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
74
    end
75
    UIS.InputBegan:Connect(input)
76
    UIS.InputEnded:Connect(input)
77
 
78
    local h,t
79
    --Give the server mouse data 30 times every second, but only if the values changed
80
    --If player is not moving their mouse, client won't fire events
81
    while wait(1/30) do
82
        if h~=Mouse.Hit or t~=Mouse.Target then
83
            h,t=Mouse.Hit,Mouse.Target
84
            Event:FireServer({isMouse=true,Target=t,Hit=h})
85
        end
86
    end]==],Player.Character)
87
 
88
    ----Sandboxed game object that allows the usage of client-side methods and services
89
    --Real game object
90
    local _rg = game
91
 
92
    --Metatable for fake service
93
    local fsmt = {
94
        __index = function(self,k)
95
            local s = rawget(self,"_RealService")
96
            if s then return s[k] end
97
        end,
98
        __newindex = function(self,k,v)
99
            local s = rawget(self,"_RealService")
100
            if s then s[k]=v end
101
        end,
102
        __call = function(self,...)
103
            local s = rawget(self,"_RealService")
104
            if s then return s(...) 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 self[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
    }
123
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
124
    g.service = g.GetService
125
   
126
    g.RunService = FakeService({
127
        RenderStepped = _rg:GetService("RunService").Heartbeat,
128
        BindToRenderStep = function(self,name,_,fun)
129
 
130
        end,
131
        UnbindFromRenderStep = function(self,name)
132
            self._btrs[name]:Disconnect()
133
        end,
134
    },"RunService")
135
 
136
    setmetatable(g,{
137
        __index=function(self,s)
138
            return _rg:GetService(s) or typeof(_rg[s])=="function"
139
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
140
        end,
141
        __newindex = fsmt.__newindex,
142
        __call = fsmt.__call
143
    })
144
    --Changing owner to fake player object to support owner:GetMouse()
145
    game,owner = g,g.Players.LocalPlayer
146
end
147
-- by fr34ky;
148
local char = game.Players.LocalPlayer.Character
149
150
151
local player = game.Players.LocalPlayer
152
repeat wait() until player.Character.Humanoid
153
local humanoid = player.Character.Humanoid
154
local mouse = player:GetMouse()
155
156
local weld = Instance.new("Weld",char.Torso)
157
weld.Part0 = char.Torso
158
159
local plane = Instance.new("Part",char.Torso)
160
plane.Anchored = false
161
plane.CanCollide = false
162
plane.Size = Vector3.new(3,2,6)
163
plane.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
164
weld.Part1 = plane
165
weld.C1 = CFrame.new(0,0.5,0) * CFrame.Angles(0,math.rad(270),0)
166
167
local pf = Instance.new("ForceField")
168
pf.Parent = game.Players.LocalPlayer.Character
169
170
for i,v in pairs(char.Torso:GetChildren()) do
171
   if v.ClassName == 'Decal' then
172
        v:Destroy()
173
   end
174
end
175
for i,v in pairs(char:GetChildren()) do
176
   if v.ClassName == 'Hat' then
177
       v:Destroy()
178
   end
179
end
180
for i,v in pairs(char.Head:GetChildren()) do
181
   if v.ClassName == 'Decal' then
182
       v:Destroy()
183
   end
184
end
185
186
char.Humanoid.JumpPower = 200
187
char.Humanoid.Jump = true
188
189
local plane = Instance.new('SpecialMesh', plane)
190
plane.MeshType = 'FileMesh'
191
plane.MeshId = 'http://www.roblox.com/asset/?id=498194022' --498194022
192
plane.TextureId = 'http://www.roblox.com/asset/?id=498194025'
193
plane.Scale = Vector3.new(0.2, 0.2, 0.2)
194
195
196
planesound=Instance.new('Sound', char.Torso)
197
planesound.SoundId = 'rbxassetid://439771510'
198
planesound.Volume = 1
199
planesound.Looped = true
200
201
pullup=Instance.new('Sound', char.Torso)
202
pullup.SoundId = 'rbxassetid://144560522'
203
pullup.Volume = 10
204
pullup.Looped = true
205
206
alarm=Instance.new('Sound', char.Torso)
207
alarm.SoundId = 'rbxassetid://384231761'
208
alarm.Volume = 10
209
alarm.Looped = true
210
211
212
screech=Instance.new('Sound', char.Torso)
213
screech.SoundId = 'rbxassetid://262353320'
214
screech.Volume = 10
215
216
st=Instance.new('Sound', char.Torso)
217
st.SoundId = 'rbxassetid://131353021'
218
st.Volume = 20
219
220
allahuakbar=Instance.new('Sound', char)
221
allahuakbar.SoundId = 'rbxassetid://293292782'
222
allahuakbar.Volume = 10
223
224
moosic=Instance.new('Sound', char)
225
moosic.SoundId = 'rbxassetid://504630746'
226
moosic.Volume = 2
227
228
allahuakbar2=Instance.new('Sound', char)
229
allahuakbar2.SoundId = 'rbxassetid://446824013' --446824013
230
allahuakbar2.Volume = 1
231
232
233
planesound:Play()
234
235
explosionf=Instance.new('ParticleEmitter', char.Torso)
236
explosionf.Texture = 'http://www.roblox.com/asset/?id=244514357'
237
explosionf.Size = NumberSequence.new(19)
238
explosionf.Rate = 1000
239
explosionf.LightEmission = 0.4
240
explosionf.Lifetime = NumberRange.new(1)
241
explosionf.VelocitySpread = 360
242
explosionf.Enabled = false
243
244
245
246
char.Torso.Transparency = 1
247
char.Head.Transparency = 1
248
char['Left Arm'].Transparency = 1
249
char['Right Arm'].Transparency = 1
250
char['Left Leg'].Transparency = 1
251
char['Right Leg'].Transparency = 1
252
253
repeat wait(1)until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer:GetMouse() and game:FindService("Workspace") and game.Workspace.CurrentCamera
254
local Me = game:GetService("Players").LocalPlayer
255
local Char = Me.Character
256
local Mouse = Me:GetMouse()
257
local Cam = Workspace.CurrentCamera
258
local Stop = false
259
local Version = 0
260
local MaxSpeed = 8
261
local Speed = 8
262
local Keys = {}
263
local Force = 10000 -- 10000 = Fly, 1000000 = Noclip
264
265
local Fly, Rot = Char.Torso:FindFirstChild("LMMFly"), Char.Torso:FindFirstChild("LMMRot")
266
if Fly then Fly:Destroy() end if Rot then Rot:Destroy() end
267
Fly = Instance.new("BodyPosition", Char.Torso) Fly.Name = "LMMFly" Fly.maxForce = Vector3.new(math.huge, math.huge, math.huge) Fly.P = Force Fly.position = Char.Torso.Position
268
Rot = Instance.new("BodyGyro", Char.Torso) Rot.Name = "LMMRot" Rot.maxTorque = Vector3.new(math.huge, math.huge, math.huge) Rot.P = Force Rot.cframe = Cam.CoordinateFrame
269
270
local Thread,Old = Version, nil
271
Char.Humanoid.PlatformStand = true
272
273
function StopFly()
274
Version = Version + 1 Stop = true Char.Humanoid.PlatformStand = false Fly:Destroy() Rot:Destroy() script.Disabled = true script:Destroy()
275
end
276
277
Char.ChildAdded:connect(function(Obj) wait()
278
if Obj.Name == "LM".."MFlyStop" then
279
Obj:Destroy()
280
StopFly()
281
end
282
end)
283
284
coroutine.wrap(function() while Thread == Version and Stop == false do
285
local Vectoring = Rot.cframe - Rot.cframe.p + Fly.position
286
287
if Keys[string.char(48)] then Speed = 1 end
288
if Keys.w then Vectoring = Vectoring + Cam.CoordinateFrame.lookVector * Speed end
289
if Keys.s then Vectoring = Vectoring - Cam.CoordinateFrame.lookVector * Speed end
290
if Keys.d then Vectoring = Vectoring * CFrame.new(Speed,0,0) end
291
if Keys.a then Vectoring = Vectoring * CFrame.new(-Speed,0,0) end
292
if Keys.e or Keys[" "] then Vectoring = Vectoring * CFrame.new(0,Speed,0) end
293
if Keys.q then Vectoring = Vectoring * CFrame.new(0,-Speed,0) end
294
if Keys.x then StopFly() end
295
296
if Old ~= Vectoring then 
297
Fly.position = Vectoring.p
298
Old = Vectoring
299
Speed = math.min(Speed + Speed*0.025,MaxSpeed)
300
else
301
Speed = 1;
302
end
303
Rot.cframe = Cam.CoordinateFrame
304
wait(0.01)
305
end end)()
306
307
Mouse.KeyDown:connect(function(Key)
308
Keys[Key] = true
309
end)
310
Mouse.KeyUp:connect(function(Key)
311
Keys[Key] = false
312
end)
313
314
315
mouse.KeyDown:connect(function(key)
316
if key == "c" then
317
planesound:Stop()
318
screech:Play()
319
allahuakbar2:Stop()
320
pullup:Stop()
321
explosionf.Enabled = false
322
alarm:Stop()
323
local e = Instance.new("Smoke", char.Torso)
324
e.Size = 20
325
char.Torso.Anchored = false
326
wait(3)
327
e.Enabled = false
328
329
end
330
end)
331
332
mouse.KeyDown:connect(function(key)
333
if key == "v" then
334
explosionf.Enabled = true
335
pullup:Play()
336
alarm:Play()
337
explosionf.Size = NumberSequence.new(5)
338
end
339
end)
340
341
mouse.KeyDown:connect(function(key)
342
if key == "b" then
343
moosic:Play()
344
end
345
end)
346
347
mouse.KeyDown:connect(function(key)
348
if key == "n" then
349
moosic:Stop()
350
end
351
end)
352
353
mouse.KeyDown:connect(function(key)
354
if key == "z" then
355
planesound:Play()
356
screech:Stop()
357
char.Torso.Anchored = false
358
st:Play()
359
allahuakbar2:Stop()
360
pullup:Stop()
361
explosionf.Enabled = false
362
alarm:Stop()
363
364
365
end
366
end)
367
368
Enabled = false
369
function onTouched(hit)
370
if Enabled then
371
return
372
end
373
Enabled=false
374
local e = Instance.new("Explosion") 
375
e.BlastRadius = 260-- How much ground the explosion covers --
376
e.BlastPressure = 51-- How powerful the explosion is --
377
e.Parent = char.Torso -- Don't change this!
378
e.Position = char.Torso.Position -- Don't change this!
379
allahuakbar:Play()
380
explosionf.Size = NumberSequence.new(50)
381
explosionf.Speed = NumberRange.new(30)
382
explosionf.Enabled = true
383
char.Torso.Anchored = true
384
explosionf.Lifetime = NumberRange.new(0.25)
385
allahuakbar2:Play()
386
allahuakbar2.Pitch = 0
387
pullup:Stop()
388
alarm:Stop()
389
wait(1.25)
390
allahuakbar2.Pitch = 0
391
explosionf.Enabled = false
392
planesound:Stop()
393
wait(0.50)
394
plr = game.Players.LocalPlayer.Name
395
for i,v in pairs(game.Players:GetChildren()) do
396
       if v.Name ~= plr then
397
game:GetService("Chat"):Chat(v.Character.Head, "ALLAHU AKBAR!! HEIL PLANE CRASHES!", Enum.ChatColor.Blue)
398
AKBAR=Instance.new('Sound', v.Character.Head)
399
AKBAR.SoundId = 'rbxassetid://396873260'
400
AKBAR.Volume = 15
401
AKBAR.Pitch = 0.25
402
AKBAR.Looped = false
403
AKBAR:Play()
404
wait(2.6)
405
AKBAR:Play()
406
407
end
408
end
409
410
end
411
char.Torso.Touched:connect(onTouched)