View difference between Paste ID: gt8Fp1HZ and eVJRtQGN
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
local player=game:GetService("Players").LocalPlayer
148
local char=player.Character
149
local mouse=player:GetMouse()
150
151
local m = Instance.new("Model")
152
m.Name = "Flamethrower"
153
p1 = Instance.new("Part", m)
154
p1.BrickColor = BrickColor.new("Really black")
155
p1.FormFactor = Enum.FormFactor.Custom
156
p1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
157
p1.CFrame = CFrame.new(-4.31863213, 1.2999835, 26.8280258, 0.898792505, -0.438372105, 6.44474255e-007, 4.2475844e-007, -8.7068031e-007, 0.999996066, -0.438369185, -0.898793578, 7.74858847e-007)
158
p1.CanCollide = false
159
b1 = Instance.new("CylinderMesh", p1)
160
b1.Name = "Mesh"
161
b1.Scale = Vector3.new(0.699999988, 1, 1.39999998)
162
p2 = Instance.new("Part", m)
163
p2.BrickColor = BrickColor.new("Really black")
164
p2.FormFactor = Enum.FormFactor.Custom
165
p2.Size = Vector3.new(0.200000003, 0.799999952, 0.200000003)
166
p2.CFrame = CFrame.new(-4.22384691, 1.29998171, 27.1336765, -0.945517242, 0.325569242, 6.44474255e-007, -5.4352688e-007, 9.19547631e-007, 0.999996066, 0.325566202, 0.945517898, 7.74858847e-007)
167
p2.CanCollide = false
168
b2 = Instance.new("CylinderMesh", p2)
169
b2.Name = "Mesh"
170
b2.Scale = Vector3.new(0.899999976, 1, 1.5)
171
p3 = Instance.new("Part", m)
172
p3.BrickColor = BrickColor.new("Black")
173
p3.Material = Enum.Material.Grass
174
p3.Name = "Handle2"
175
p3.FormFactor = Enum.FormFactor.Custom
176
p3.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
177
p3.CFrame = CFrame.new(-4.36384678, 1.48997498, 26.7136898, 0.998628676, -0.0523356572, 1.65257313e-006, 0.0505531132, 0.964598, 0.258818507, -0.0135439271, -0.258463174, 0.96592474)
178
p3.CanCollide = false
179
b3 = Instance.new("CylinderMesh", p3)
180
b3.Name = "Mesh"
181
b3.Scale = Vector3.new(0.699999988, 1, 1.39999998)
182
p4 = Instance.new("Part", m)
183
p4.BrickColor = BrickColor.new("Really black")
184
p4.FormFactor = Enum.FormFactor.Custom
185
p4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
186
p4.CFrame = CFrame.new(-4.08384609, 1.29998279, 26.8336773, 6.66825997e-007, 1.56834642e-006, 0.999999166, 0.999996066, 6.85452505e-007, 7.1152931e-007, 8.0466117e-007, 0.999998689, 1.56834619e-006)
187
p4.CanCollide = false
188
b4 = Instance.new("CylinderMesh", p4)
189
b4.Name = "Mesh"
190
b4.Scale = Vector3.new(1.20000005, 0.5, 1.78999996)
191
p5 = Instance.new("Part", m)
192
p5.BrickColor = BrickColor.new("Really black")
193
p5.FormFactor = Enum.FormFactor.Custom
194
p5.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
195
p5.CFrame = CFrame.new(-4.08383894, 1.29998529, 27.6837158, 6.66825997e-007, 1.56834642e-006, 0.999999166, 0.999996066, 6.85452505e-007, 7.1152931e-007, 8.0466117e-007, 0.999998689, 1.56834619e-006)
196
p5.CanCollide = false
197
b5 = Instance.new("CylinderMesh", p5)
198
b5.Name = "Mesh"
199
b5.Scale = Vector3.new(1, 1, 1.70000005)
200
p6 = Instance.new("Part", m)
201
p6.BrickColor = BrickColor.new("Really black")
202
p6.Size = Vector3.new(1, 1.20000005, 1)
203
p6.CFrame = CFrame.new(-4.07870293, 1.24756896, 29.8614006, -0.0122325243, 0.00382106518, 0.999915302, 0.999817967, -0.0144664943, 0.0122870263, 0.0145196915, 0.999886394, -0.0036436012)
204
p6.BottomSurface = Enum.SurfaceType.Smooth
205
p6.TopSurface = Enum.SurfaceType.Smooth
206
b6 = Instance.new("SpecialMesh", p6)
207
b6.MeshType = Enum.MeshType.Brick
208
b6.Name = "Mesh"
209
b6.Scale = Vector3.new(0.461538464, 0.769230723, 0.461538464)
210
b7 = Instance.new("CylinderMesh", p6)
211
b7.Name = "Mesh"
212
b7.Scale = Vector3.new(1, 0.899999976, 0.439999998)
213
d1 = Instance.new("Decal", p6)
214
d1.Texture = "http://www.roblox.com/asset/?id=85448092"
215
d1.Face = Enum.NormalId.Top
216
p7 = Instance.new("Part", m)
217
p7.BrickColor = BrickColor.new("Institutional white")
218
p7.Size = Vector3.new(1, 1.20000005, 1)
219
p7.CFrame = CFrame.new(-4.08290291, 1.26348102, 28.7615242, -0.0122325243, 0.00382106518, 0.999915302, 0.999817967, -0.0144664943, 0.0122870263, 0.0145196915, 0.999886394, -0.0036436012)
220
p7.BottomSurface = Enum.SurfaceType.Smooth
221
p7.TopSurface = Enum.SurfaceType.Smooth
222
b8 = Instance.new("SpecialMesh", p7)
223
b8.MeshType = Enum.MeshType.Brick
224
b8.Name = "Mesh"
225
b8.Scale = Vector3.new(0.15384616, 1, 0.307692319)
226
b9 = Instance.new("CylinderMesh", p7)
227
b9.Name = "Mesh"
228
b9.Scale = Vector3.new(1.70000005, 1.10000002, 0.300000012)
229
p8 = Instance.new("Part", m)
230
p8.BrickColor = BrickColor.new("Really black")
231
p8.Name = "Barrel"
232
p8.Size = Vector3.new(1, 1.20000005, 1)
233
p8.CFrame = CFrame.new(-4.07320023, 1.24000597, 30.3669701, 0.999916196, 0.00121372147, 0.0126282591, 0.0122011788, 0.18082355, -0.983437181, -0.00347740925, 0.983514667, 0.180784032)
234
p8.BottomSurface = Enum.SurfaceType.Smooth
235
p8.TopSurface = Enum.SurfaceType.Smooth
236
b10 = Instance.new("SpecialMesh", p8)
237
b10.MeshId = "http://www.roblox.com/asset/?id=1091603"
238
b10.TextureId = ""
239
b10.MeshType = Enum.MeshType.FileMesh
240
b10.Name = "Mesh"
241
b10.Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012)
242
p9 = Instance.new("Part", m)
243
p9.BrickColor = BrickColor.new("Really black")
244
p9.FormFactor = Enum.FormFactor.Custom
245
p9.Size = Vector3.new(0.288717359, 0.288717419, 0.288717419)
246
p9.CFrame = CFrame.new(-4.12095404, 1.04495895, 29.1705666, 1, 0, 0, 0, 1, 0, 0, 0, 1)
247
p9.BottomSurface = Enum.SurfaceType.Smooth
248
p9.TopSurface = Enum.SurfaceType.Smooth
249
b11 = Instance.new("SpecialMesh", p9)
250
b11.MeshType = Enum.MeshType.Brick
251
b11.Name = "Mesh"
252
b11.Scale = Vector3.new(1.37011397, 0.164413691, 1.50712562)
253
p10 = Instance.new("Part", m)
254
p10.BrickColor = BrickColor.new("Institutional white")
255
p10.Size = Vector3.new(1, 1.20000005, 1)
256
p10.CFrame = CFrame.new(-4.07969093, 1.060624, 28.9585953, -0.999915302, -0.0122325243, -0.00382106518, -0.0122870263, 0.999817967, 0.0144664943, 0.0036436012, 0.0145196915, -0.999886394)
257
p10.BottomSurface = Enum.SurfaceType.Smooth
258
p10.TopSurface = Enum.SurfaceType.Smooth
259
b12 = Instance.new("SpecialMesh", p10)
260
b12.MeshType = Enum.MeshType.Brick
261
b12.Name = "Mesh"
262
b12.Scale = Vector3.new(0.15384616, 0.153846145, 1)
263
p11 = Instance.new("Part", m)
264
p11.BrickColor = BrickColor.new("Institutional white")
265
p11.Name = "Handle"
266
p11.Size = Vector3.new(1, 1.20000005, 1)
267
p11.CFrame = CFrame.new(-4.07311201, 0.707809985, 28.6968918, -0.999919653, 0.0111990925, 0.00594851235, -0.0121958125, -0.977798998, -0.209190041, 0.00347371167, -0.209245741, 0.977856994)
268
p11.BottomSurface = Enum.SurfaceType.Smooth
269
p11.TopSurface = Enum.SurfaceType.Smooth
270
b13 = Instance.new("SpecialMesh", p11)
271
b13.MeshType = Enum.MeshType.Brick
272
b13.Name = "Mesh"
273
b13.Scale = Vector3.new(0.15384616, 0.538461506, 0.307692319)
274
p12 = Instance.new("Part", m)
275
p12.BrickColor = BrickColor.new("Really black")
276
p12.FormFactor = Enum.FormFactor.Custom
277
p12.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
278
p12.CFrame = CFrame.new(-4.08139706, 0.981667995, 29.0914536, 1, 0, 0, 0, 1, 0, 0, 0, 1)
279
p12.BottomSurface = Enum.SurfaceType.Smooth
280
p12.TopSurface = Enum.SurfaceType.Smooth
281
b14 = Instance.new("SpecialMesh", p12)
282
b14.MeshType = Enum.MeshType.Brick
283
b14.Name = "Mesh"
284
b14.Scale = Vector3.new(0.351311207, 0.351311326, 0.175655678)
285
p13 = Instance.new("Part", m)
286
p13.BrickColor = BrickColor.new("Really black")
287
p13.FormFactor = Enum.FormFactor.Custom
288
p13.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
289
p13.CFrame = CFrame.new(-4.08139706, 0.882772982, 29.1310101, -1, 0, 0, 0, 1, 0, 0, 0, -1)
290
p13.BottomSurface = Enum.SurfaceType.Smooth
291
p13.TopSurface = Enum.SurfaceType.Smooth
292
b15 = Instance.new("SpecialMesh", p13)
293
b15.MeshType = Enum.MeshType.Wedge
294
b15.Name = "Mesh"
295
b15.Scale = Vector3.new(0.351311207, 0.175655663, 0.175655678)
296
p14 = Instance.new("Part", m)
297
p14.BrickColor = BrickColor.new("Really black")
298
p14.FormFactor = Enum.FormFactor.Custom
299
p14.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
300
p14.CFrame = CFrame.new(-4.08139706, 0.882772982, 29.2496853, 1, 0, 0, 0, 1, 0, 0, 0, 1)
301
p14.BottomSurface = Enum.SurfaceType.Smooth
302
p14.TopSurface = Enum.SurfaceType.Smooth
303
b16 = Instance.new("SpecialMesh", p14)
304
b16.MeshType = Enum.MeshType.Wedge
305
b16.Name = "Mesh"
306
b16.Scale = Vector3.new(0.351311207, 0.175655663, 0.175655678)
307
p15 = Instance.new("Part", m)
308
p15.BrickColor = BrickColor.new("Really black")
309
p15.FormFactor = Enum.FormFactor.Custom
310
p15.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
311
p15.CFrame = CFrame.new(-4.08139706, 0.922330976, 29.0914536, 1, 0, 0, 0, 1, 0, 0, 0, 1)
312
p15.BottomSurface = Enum.SurfaceType.Smooth
313
p15.TopSurface = Enum.SurfaceType.Smooth
314
b17 = Instance.new("SpecialMesh", p15)
315
b17.MeshType = Enum.MeshType.Brick
316
b17.Name = "Mesh"
317
b17.Scale = Vector3.new(0.351311207, 0.175655663, 0.175655678)
318
p16 = Instance.new("Part", m)
319
p16.BrickColor = BrickColor.new("Really black")
320
p16.FormFactor = Enum.FormFactor.Custom
321
p16.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
322
p16.CFrame = CFrame.new(-4.12095404, 0.831354022, 28.9332237, 1, 4.23044048e-006, -3.67623443e-006, 4.23044048e-006, 1, 1.40141863e-008, -3.67623443e-006, 1.40141863e-008, 1)
323
p16.BottomSurface = Enum.SurfaceType.Smooth
324
p16.TopSurface = Enum.SurfaceType.Smooth
325
b18 = Instance.new("SpecialMesh", p16)
326
b18.MeshType = Enum.MeshType.Wedge
327
b18.Name = "Mesh"
328
b18.Scale = Vector3.new(1.75655627, 1.68629432, 0.175655678)
329
p17 = Instance.new("Part", m)
330
p17.BrickColor = BrickColor.new("Really black")
331
p17.FormFactor = Enum.FormFactor.Custom
332
p17.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
333
p17.CFrame = CFrame.new(-4.12095404, 0.878817022, 28.9727783, 1, 0, 0, 0, 1, 0, 0, 0, 1)
334
p17.BottomSurface = Enum.SurfaceType.Smooth
335
p17.TopSurface = Enum.SurfaceType.Smooth
336
b19 = Instance.new("SpecialMesh", p17)
337
b19.MeshType = Enum.MeshType.Brick
338
b19.Name = "Mesh"
339
b19.Scale = Vector3.new(1.75655627, 1.2647208, 0.175655678)
340
p18 = Instance.new("Part", m)
341
p18.BrickColor = BrickColor.new("Really black")
342
p18.FormFactor = Enum.FormFactor.Custom
343
p18.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
344
p18.CFrame = CFrame.new(-4.08139706, 0.882772982, 29.0914536, 1, 0, 0, 0, 1, 0, 0, 0, 1)
345
p18.BottomSurface = Enum.SurfaceType.Smooth
346
p18.TopSurface = Enum.SurfaceType.Smooth
347
b20 = Instance.new("SpecialMesh", p18)
348
b20.MeshType = Enum.MeshType.Brick
349
b20.Name = "Mesh"
350
b20.Scale = Vector3.new(0.351311207, 0.175655663, 0.175655678)
351
p19 = Instance.new("Part", m)
352
p19.BrickColor = BrickColor.new("Really black")
353
p19.FormFactor = Enum.FormFactor.Custom
354
p19.Size = Vector3.new(0.799999356, 0.200000003, 0.399999857)
355
p19.CFrame = CFrame.new(-4.08384228, 0.900013506, 26.983717, -9.93235176e-007, 0.999998927, 1.46056539e-006, -0.987684608, 6.33298328e-007, -0.156433105, -0.156434968, 1.56834574e-006, 0.987686932)
356
p19.CanCollide = false
357
b21 = Instance.new("BlockMesh", p19)
358
b21.Name = "Mesh"
359
b21.Scale = Vector3.new(1, 1, 0.699999988)
360
p20 = Instance.new("Part", m)
361
p20.BrickColor = BrickColor.new("Really black")
362
p20.FormFactor = Enum.FormFactor.Custom
363
p20.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
364
p20.CFrame = CFrame.new(-4.12095404, 0.700815022, 29.0321178, 1, -5.8353038e-008, -6.71499549e-008, 6.71499549e-008, 2.22569144e-010, -1, -5.8353038e-008, 1, -2.22569144e-010)
365
p20.BottomSurface = Enum.SurfaceType.Smooth
366
p20.TopSurface = Enum.SurfaceType.Smooth
367
b22 = Instance.new("SpecialMesh", p20)
368
b22.MeshType = Enum.MeshType.Wedge
369
b22.Name = "Mesh"
370
b22.Scale = Vector3.new(1.75655627, 0.702622652, 0.175655678)
371
p21 = Instance.new("Part", m)
372
p21.BrickColor = BrickColor.new("Really black")
373
p21.FormFactor = Enum.FormFactor.Custom
374
p21.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
375
p21.CFrame = CFrame.new(-4.12095404, 0.700815022, 29.3090191, -1, -0, -0, -0, -0, -1, -0, -1, -0)
376
p21.BottomSurface = Enum.SurfaceType.Smooth
377
p21.TopSurface = Enum.SurfaceType.Smooth
378
b23 = Instance.new("SpecialMesh", p21)
379
b23.MeshType = Enum.MeshType.Wedge
380
b23.Name = "Mesh"
381
b23.Scale = Vector3.new(1.75655627, 0.702622652, 0.175655678)
382
p22 = Instance.new("Part", m)
383
p22.BrickColor = BrickColor.new("Really black")
384
p22.FormFactor = Enum.FormFactor.Custom
385
p22.Size = Vector3.new(0.799999356, 0.200000003, 0.200000003)
386
p22.CFrame = CFrame.new(-4.08384562, 0.887999296, 27.1074524, -9.93235176e-007, 0.999998927, 1.46056539e-006, -0.987684608, 6.33298328e-007, -0.156433105, -0.156434968, 1.56834574e-006, 0.987686932)
387
p22.CanCollide = false
388
b24 = Instance.new("BlockMesh", p22)
389
b24.Name = "Mesh"
390
b24.Scale = Vector3.new(1, 0.300000012, 0.899999976)
391
p23 = Instance.new("Part", m)
392
p23.BrickColor = BrickColor.new("Really black")
393
p23.FormFactor = Enum.FormFactor.Custom
394
p23.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
395
p23.CFrame = CFrame.new(-4.08139706, 0.843216002, 29.1705666, 1, 0, 0, 0, 1, 0, 0, 0, 1)
396
p23.BottomSurface = Enum.SurfaceType.Smooth
397
p23.TopSurface = Enum.SurfaceType.Smooth
398
b25 = Instance.new("SpecialMesh", p23)
399
b25.MeshType = Enum.MeshType.Brick
400
b25.Name = "Mesh"
401
b25.Scale = Vector3.new(0.351311207, 0.175655663, 0.878278494)
402
p24 = Instance.new("Part", m)
403
p24.BrickColor = BrickColor.new("Really black")
404
p24.FormFactor = Enum.FormFactor.Custom
405
p24.Size = Vector3.new(0.474551886, 0.474551976, 0.474551976)
406
p24.CFrame = CFrame.new(-4.14073181, 0.728498995, 28.9727783, 1, 0, 0, 0, 1, 0, 0, 0, 1)
407
p24.BottomSurface = Enum.SurfaceType.Smooth
408
p24.TopSurface = Enum.SurfaceType.Smooth
409
b26 = Instance.new("SpecialMesh", p24)
410
b26.MeshType = Enum.MeshType.Brick
411
b26.Name = "Mesh"
412
b26.Scale = Vector3.new(0.750219524, 0.0333430953, 0.0833577439)
413
p25 = Instance.new("Part", m)
414
p25.BrickColor = BrickColor.new("Really black")
415
p25.FormFactor = Enum.FormFactor.Custom
416
p25.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
417
p25.CFrame = CFrame.new(-4.12095404, 0.661257982, 29.1705666, 1, 0, 0, 0, 1, 0, 0, 0, 1)
418
p25.BottomSurface = Enum.SurfaceType.Smooth
419
p25.TopSurface = Enum.SurfaceType.Smooth
420
b27 = Instance.new("SpecialMesh", p25)
421
b27.MeshType = Enum.MeshType.Brick
422
b27.Name = "Mesh"
423
b27.Scale = Vector3.new(1.75655627, 0.175655663, 1.93221235)
424
p26 = Instance.new("Part", m)
425
p26.BrickColor = BrickColor.new("Really black")
426
p26.FormFactor = Enum.FormFactor.Custom
427
p26.Size = Vector3.new(0.474551886, 0.474551976, 0.474551976)
428
p26.CFrame = CFrame.new(-4.12095404, 0.601921976, 29.1705666, 1, -0, 0, 0, -0, 1, 0, -1, 0)
429
p26.BottomSurface = Enum.SurfaceType.Smooth
430
p26.TopSurface = Enum.SurfaceType.Smooth
431
b28 = Instance.new("SpecialMesh", p26)
432
b28.MeshType = Enum.MeshType.Wedge
433
b28.Name = "Mesh"
434
b28.Scale = Vector3.new(0.833577335, 0.916935086, 0.166715518)
435
p27 = Instance.new("Part", m)
436
p27.BrickColor = BrickColor.new("Dark stone grey")
437
p27.Transparency = 1
438
p27.Name = "Handle3"
439
p27.FormFactor = Enum.FormFactor.Custom
440
p27.Size = Vector3.new(1, 1.4000001, 0.200000033)
441
p27.CFrame = CFrame.new(-4.08382893, 0.999998987, 28.0838623, 0.999999404, -1.18091657e-006, 5.96045709e-007, 5.96045652e-007, -6.55650126e-007, 0.999996662, 1.18091657e-006, -0.999998808, 6.55650069e-007)
442
p27.BottomSurface = Enum.SurfaceType.Smooth
443
p27.TopSurface = Enum.SurfaceType.Smooth
444
b29 = Instance.new("SpecialMesh", p27)
445
b29.MeshType = Enum.MeshType.Wedge
446
b29.Name = "Mesh"
447
b29.Scale = Vector3.new(0.25, 0.25, 0.200000003)
448
m.Parent = char
449
m:MakeJoints()
450
451
452
local m2 = Instance.new("Model")
453
m2.Name = "Fueltank"
454
p1 = Instance.new("Part", m2)
455
p1.BrickColor = BrickColor.new("Black")
456
p1.FormFactor = Enum.FormFactor.Custom
457
p1.Size = Vector3.new(0.400000036, 0.200000003, 0.200000003)
458
p1.CFrame = CFrame.new(-0.283439994, 0.479694009, -15.516386, 1.56834642e-006, -6.78001982e-007, 0.999999046, 5.96045879e-007, -0.999996066, 6.63100707e-007, 0.999998689, -8.64265758e-007, 1.59814817e-006)
459
b1 = Instance.new("CylinderMesh", p1)
460
b1.Name = "Mesh"
461
b1.Scale = Vector3.new(2, 1.5, 1)
462
p2 = Instance.new("Part", m2)
463
p2.BrickColor = BrickColor.new("Institutional white")
464
p2.Material = Enum.Material.Neon
465
p2.Name = "ChangeColor"
466
p2.FormFactor = Enum.FormFactor.Custom
467
p2.Size = Vector3.new(0.400000036, 1.19999981, 1)
468
p2.CFrame = CFrame.new(0.116168, 1.10000396, -15.0161295, 1.56834642e-006, -6.78001982e-007, 0.999999046, 5.96045879e-007, -0.999996066, 6.63100707e-007, 0.999998689, -8.64265758e-007, 1.59814817e-006)
469
p2.CanCollide = false
470
b2 = Instance.new("CylinderMesh", p2)
471
b2.Name = "Mesh"
472
b2.Scale = Vector3.new(2, 1, 1)
473
p3 = Instance.new("Part", m2)
474
p3.BrickColor = BrickColor.new("Mid gray")
475
p3.Material = Enum.Material.Neon
476
p3.Name = "FuelCenter"
477
p3.FormFactor = Enum.FormFactor.Custom
478
p3.Size = Vector3.new(0.400000036, 0.799999833, 1)
479
p3.CFrame = CFrame.new(-0.283439994, 1.19967496, -15.5163736, 1.56834642e-006, -6.78001982e-007, 0.999999046, 5.96045879e-007, -0.999996066, 6.63100707e-007, 0.999998689, -8.64265758e-007, 1.59814817e-006)
480
b3 = Instance.new("CylinderMesh", p3)
481
b3.Name = "Mesh"
482
b3.Scale = Vector3.new(1.39999998, 1, 1)
483
p4 = Instance.new("Part", m2)
484
p4.BrickColor = BrickColor.new("Really black")
485
p4.FormFactor = Enum.FormFactor.Custom
486
p4.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
487
p4.CFrame = CFrame.new(0.125933915, 0.449839592, -15.0262089, 0.000333837903, 0.000261210633, 0.999998927, -0.999996006, -5.68053565e-007, 0.000335178163, -7.72354667e-007, -0.999998629, 0.000264377333)
488
p4.BottomSurface = Enum.SurfaceType.Smooth
489
p4.TopSurface = Enum.SurfaceType.Smooth
490
b4 = Instance.new("SpecialMesh", p4)
491
b4.MeshType = Enum.MeshType.Sphere
492
b4.Name = "Mesh"
493
p5 = Instance.new("Part", m2)
494
p5.BrickColor = BrickColor.new("Really black")
495
p5.FormFactor = Enum.FormFactor.Custom
496
p5.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
497
p5.CFrame = CFrame.new(-0.283836007, 1.60003495, -15.5161457, -6.74276521e-007, -1.59814874e-006, 0.999998927, -0.999996066, -5.96045879e-007, 6.44474198e-007, -7.74858904e-007, -0.999998748, 1.56834574e-006)
498
p5.BottomSurface = Enum.SurfaceType.Smooth
499
p5.TopSurface = Enum.SurfaceType.Smooth
500
b5 = Instance.new("SpecialMesh", p5)
501
b5.MeshType = Enum.MeshType.Sphere
502
b5.Name = "Mesh"
503
b5.Scale = Vector3.new(0.709999979, 0.709999979, 0.709999979)
504
p6 = Instance.new("Part", m2)
505
p6.BrickColor = BrickColor.new("Really black")
506
p6.FormFactor = Enum.FormFactor.Custom
507
p6.Size = Vector3.new(0.400000036, 0.200000003, 0.200000003)
508
p6.CFrame = CFrame.new(0.116157003, 2.09999895, -15.0161324, 1.5385441e-006, -6.66825883e-007, 0.999999046, 6.85452505e-007, -0.999996066, 6.74276464e-007, 0.999998748, -7.15254316e-007, 1.53854353e-006)
509
b6 = Instance.new("CylinderMesh", p6)
510
b6.Name = "Mesh"
511
b6.Scale = Vector3.new(2, 1, 1)
512
p7 = Instance.new("Part", m2)
513
p7.BrickColor = BrickColor.new("Really black")
514
p7.FormFactor = Enum.FormFactor.Custom
515
p7.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
516
p7.CFrame = CFrame.new(0.116163999, 1.70000398, -15.0161362, 1.56834642e-006, -6.78001982e-007, 0.999999046, 5.96045879e-007, -0.999996066, 6.63100707e-007, 0.999998689, -8.64265758e-007, 1.59814817e-006)
517
p7.BottomSurface = Enum.SurfaceType.Smooth
518
p7.TopSurface = Enum.SurfaceType.Smooth
519
b7 = Instance.new("SpecialMesh", p7)
520
b7.MeshType = Enum.MeshType.Sphere
521
b7.Name = "Mesh"
522
p8 = Instance.new("Part", m2)
523
p8.BrickColor = BrickColor.new("Really black")
524
p8.FormFactor = Enum.FormFactor.Custom
525
p8.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
526
p8.CFrame = CFrame.new(-0.283437014, 0.779699028, -15.5163822, -6.74276521e-007, -1.59814874e-006, 0.999998927, -0.999996066, -5.96045879e-007, 6.44474198e-007, -7.74858904e-007, -0.999998748, 1.56834574e-006)
527
p8.BottomSurface = Enum.SurfaceType.Smooth
528
p8.TopSurface = Enum.SurfaceType.Smooth
529
b8 = Instance.new("SpecialMesh", p8)
530
b8.MeshType = Enum.MeshType.Sphere
531
b8.Name = "Mesh"
532
b8.Scale = Vector3.new(0.709999979, 0.709999979, 0.709999979)
533
p9 = Instance.new("Part", m2)
534
p9.BrickColor = BrickColor.new("Really black")
535
p9.FormFactor = Enum.FormFactor.Custom
536
p9.Size = Vector3.new(0.400000036, 0.200000003, 0.200000003)
537
p9.CFrame = CFrame.new(-0.28343299, 0.279718012, -15.5163898, 7.71134239e-007, 0.999998987, -1.59814874e-006, 0.999996066, 6.18397394e-007, -5.96045879e-007, 9.23870459e-007, 1.59814817e-006, -0.999998748)
538
b9 = Instance.new("CylinderMesh", p9)
539
b9.Name = "Mesh"
540
b9.Scale = Vector3.new(2, 1.5, 1)
541
p10 = Instance.new("Part", m2)
542
p10.BrickColor = BrickColor.new("Really black")
543
p10.FormFactor = Enum.FormFactor.Custom
544
p10.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
545
p10.CFrame = CFrame.new(-0.68383199, 1.701056, -15.012146, -5.82017606e-007, 0.000486697129, 0.999998808, -0.999639988, -0.026683826, 1.37168181e-005, 0.0266824923, -0.999642611, 0.000489670201)
546
p10.BottomSurface = Enum.SurfaceType.Smooth
547
p10.TopSurface = Enum.SurfaceType.Smooth
548
b10 = Instance.new("SpecialMesh", p10)
549
b10.MeshType = Enum.MeshType.Sphere
550
b10.Name = "Mesh"
551
p11 = Instance.new("Part", m2)
552
p11.BrickColor = BrickColor.new("Institutional white")
553
p11.Material = Enum.Material.Neon
554
p11.Name = "ChangeColor2"
555
p11.FormFactor = Enum.FormFactor.Custom
556
p11.Size = Vector3.new(0.400000036, 1.19999981, 1)
557
p11.CFrame = CFrame.new(-0.683839977, 1.100003, -15.0161276, 1.3895326e-006, -6.48199716e-007, 0.999999166, 5.66243557e-007, -0.999996305, 6.33298498e-007, 0.999998689, -8.34463606e-007, 1.4491369e-006)
558
p11.CanCollide = false
559
b11 = Instance.new("CylinderMesh", p11)
560
b11.Name = "Mesh"
561
b11.Scale = Vector3.new(2, 1, 1)
562
p12 = Instance.new("Part", m2)
563
p12.BrickColor = BrickColor.new("Really black")
564
p12.FormFactor = Enum.FormFactor.Custom
565
p12.Size = Vector3.new(0.400000036, 0.200000003, 0.200000003)
566
p12.CFrame = CFrame.new(-0.683830023, 2.10087895, -15.0254364, -0.000486697129, -7.13852432e-006, 0.999998868, 0.0266838577, -0.999639928, 7.20503476e-006, 0.999642491, 0.0266825818, 0.00048978941)
567
b12 = Instance.new("CylinderMesh", p12)
568
b12.Name = "Mesh"
569
b12.Scale = Vector3.new(2, 1, 1)
570
p13 = Instance.new("Part", m2)
571
p13.BrickColor = BrickColor.new("Really black")
572
p13.FormFactor = Enum.FormFactor.Custom
573
p13.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
574
p13.CFrame = CFrame.new(-0.683435977, 0.499675006, -15.0163736, -6.74276521e-007, -1.59814874e-006, 0.999998927, -0.999996066, -5.96045879e-007, 6.44474198e-007, -7.74858904e-007, -0.999998748, 1.56834574e-006)
575
p13.BottomSurface = Enum.SurfaceType.Smooth
576
p13.TopSurface = Enum.SurfaceType.Smooth
577
b13 = Instance.new("SpecialMesh", p13)
578
b13.MeshType = Enum.MeshType.Sphere
579
b13.Name = "Mesh"
580
m2.Parent = char
581
m2:MakeJoints()
582
583
local prev
584
local parts = char.Fueltank:GetChildren()
585
586
for i = 1,#parts do 
587
	if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then 
588
		if (prev ~= nil)then 
589
			local weld = Instance.new("Weld") 
590
			weld.Part0 = prev 
591
			weld.Part1 = parts[i] 
592
			weld.C0 = prev.CFrame:inverse() 
593
			weld.C1 = parts[i].CFrame:inverse() 
594
			weld.Parent = prev 
595
		end 
596
		prev = parts[i] 
597
	end 
598
end
599
600
local prev
601
local parts = char.Flamethrower:GetChildren()
602
603
for i = 1,#parts do 
604
	if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then 
605
		if (prev ~= nil)then 
606
			local weld = Instance.new("Weld") 
607
			weld.Part0 = prev 
608
			weld.Part1 = parts[i] 
609
			weld.C0 = prev.CFrame:inverse() 
610
			weld.C1 = parts[i].CFrame:inverse() 
611
			weld.Parent = prev 
612
		end 
613
		prev = parts[i] 
614
	end 
615
end
616
617
char.Fueltank.FuelCenter.CFrame = CFrame.new(char.Torso.Position)
618
619
local arms = nil
620
local torso = nil
621
local welds = {}
622
623
arms = {char:FindFirstChild("Left Arm"), char:FindFirstChild("Right Arm")}
624
torso = char:FindFirstChild("Torso")
625
if arms ~= nil and torso ~= nil then
626
local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
627
if sh ~= nil then
628
local yes = true
629
if yes then
630
yes = false
631
sh[1].Part1 = nil
632
sh[2].Part1 = nil
633
local weld1 = Instance.new("Weld")
634
weld1.Part0 = torso
635
weld1.Parent = torso
636
weld1.Part1 = arms[1]
637
weld1.C1 = CFrame.new(-0.249, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
638
welds[1] = weld1
639
local weld2 = Instance.new("Weld")
640
weld2.Part0 = torso
641
weld2.Parent = torso
642
weld2.Part1 = arms[2]
643
weld2.C1 = CFrame.new(-1, -0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
644
welds[2] = weld2
645
end
646
end
647
end
648
649
char.Flamethrower.Handle.CFrame = CFrame.new(char["Left Arm"].Position)
650
651
local SWeld = Instance.new("Weld",char.Fueltank.FuelCenter)
652
SWeld.Name = "SWeld"
653
SWeld.Part0 = char.Fueltank.FuelCenter
654
SWeld.Part1 = char.Torso
655
SWeld.C0 = CFrame.new(1.35,0,0)*CFrame.fromEulerAnglesXYZ(0,-7.9,59.68)
656
657
local SWeld2 = Instance.new("Weld",char.Flamethrower.Handle)
658
SWeld2.Name = "SWeld2"
659
SWeld2.Part0 = char.Flamethrower.Handle
660
SWeld2.Part1 = char["Left Arm"]
661
SWeld2.C0 = CFrame.new(-.70,0,-1)*CFrame.Angles(5,7.8,0)
662
663
local auto = 0
664
665
666
local s1=Instance.new("Sound")
667
s1.SoundId="http://www.roblox.com/asset/?id=260131404"
668
s1.PlayOnRemove=false
669
s1.Volume=100
670
s1.Looped=false
671
s1.Pitch = 1
672
s1.Parent=char.Flamethrower.Handle
673
674
local s2=Instance.new("Sound")
675
s2.SoundId="http://www.roblox.com/asset/?id=260131485"
676
s2.PlayOnRemove=false
677
s2.Volume=100
678
s2.Looped=true
679
s2.Pitch = 1
680
s2.Parent=char.Flamethrower.Handle
681
682
local s3=Instance.new("Sound")
683
s3.SoundId="http://www.roblox.com/asset/?id=260131519"
684
s3.PlayOnRemove=false
685
s3.Volume=100
686
s3.Looped=false
687
s3.Pitch = 1
688
s3.Parent=char.Flamethrower.Handle
689
690
mouse.Button1Down:connect(function()
691
	if auto == 0 then
692
		s1:Stop()
693
		s2:Stop()
694
	end
695
	if auto == 1 then
696
		s1:Play()
697
		s1:Stop()
698
		s2:Play()
699
	end
700
end)
701
702
mouse.Button1Up:connect(function()
703
	if auto == 0 then
704
		s1:Stop()
705
		s2:Stop()
706
		s3:Play()
707
		if auto == 1 then
708
			s1:Stop()
709
			s2:Stop()
710
			s3:Stop()
711
		end
712
	end
713
end)
714
715
local burning = false
716
local burning2 = false
717
718
mouse.Button1Down:connect(function()
719
	SWeld2.C0 = CFrame.new(-.70,0,-.80)*CFrame.Angles(5,7.8,0)
720
char.Fueltank.ChangeColor.BrickColor = BrickColor.New("Really red")
721
	char.Fueltank.ChangeColor2.BrickColor = BrickColor.New("Really red")
722
	char.Fueltank.FuelCenter.BrickColor = BrickColor.New("Really red")
723
end)
724
725
mouse.Button1Down:connect(function()
726
	auto = 1
727
	while auto == 1 do
728
		wait(.20)
729
	local smoke = Instance.new("Smoke",char.Flamethrower.Barrel)
730
	game.Debris:AddItem(smoke,1)
731
local bullet = Instance.new("Part",workspace)
732
game.Debris:AddItem(bullet,.90)
733
bullet.Size = Vector3.new(2,2,2)
734
bullet.Shape = "Ball"
735
bullet.Transparency = 1
736
bullet.CanCollide = false
737
bullet.Name = "bullet"
738
bullet.CFrame = char.Flamethrower.Barrel.CFrame*CFrame.new(0,3,0)
739
local fire = Instance.new("Fire",bullet)
740
local light = Instance.new("PointLight", bullet)
741
light.Range = 5
742
light.Brightness = 20
743
light.Color = Color3.new(255, 85, 0)
744
local bvelocity = Instance.new("BodyVelocity",bullet)
745
bvelocity.maxForce = Vector3.new(math.huge,math.huge,850)
746
bvelocity.velocity = mouse.Hit.lookVector*47
747
bullet.Touched:connect(function(hit)
748
if hit.Parent:FindFirstChild("Humanoid") then
749
local fire1 = Instance.new("Fire",hit.Parent.Torso)
750
game.Debris:AddItem(fire1,3)
751
hit.Parent.Humanoid:TakeDamage(math.random(0.52,0.65))
752
wait(.30)
753
hit.Parent.Humanoid:TakeDamage(math.random(0.53,0.66))
754
wait(.30)
755
hit.Parent.Humanoid:TakeDamage(math.random(0.54,0.67))
756
elseif hit.Parent:FindFirstChild("Humanoid") == nil and not hit.Name:lower():find("base") and not hit.Name:lower():find("Base") and not hit.Name:lower():find("Baseplate") then
757
	local fire2 = Instance.new("Fire",hit)
758
	wait(3)
759
	hit.Transparency = .25
760
	wait(1)
761
	hit.Transparency = .50
762
	hit.BrickColor = BrickColor.new("Really black")
763
	wait(2)
764
	hit.Transparency = .75
765
	wait(1)
766
	hit.Transparency = 1
767
	fire2:Destroy()
768
	wait(.01)
769
	hit:Destroy()
770
	end
771
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Torso:FindFirstChild("Fire") then
772
	burning = true
773
if burning == true then
774
	while burning do
775
	wait(.80)
776
	hit.Parent.Humanoid:TakeDamage(.44)
777
if hit.Parent.Torso:FindFirstChild("Fire")==nil then
778
	burning = false
779
end
780
end
781
end
782
	end
783
end)
784
	end
785
end)
786
787
mouse.Button1Up:connect(function()
788
	SWeld2.C0 = CFrame.new(-.70,0,-1)*CFrame.Angles(5,7.8,0)
789
	auto = 0
790
	char.Fueltank.ChangeColor.BrickColor = BrickColor.New("Institutional white")
791
	char.Fueltank.ChangeColor2.BrickColor = BrickColor.New("Institutional white")
792
	char.Fueltank.FuelCenter.BrickColor = BrickColor.New("Institutional white")
793
	if char.Flamethrower.Barrel:FindFirstChild("Smoke") then
794
		char.Flamethrower.Barrel.Smoke:Remove()
795
	end
796
end)