View difference between Paste ID: qdmXunxi and eVJRtQGN
SHOW: | | - or go back to the newest paste.
1-
local player=game:GetService("Players").LocalPlayer
1+
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
    print("FE Compatibility code by Mokiros, Edited by StarzoZero")
6
    local rp = RealPlayer
7
    script.Parent = rp.Character
8
   
9
    --RemoteEvent for communicating
10
    local Event = Instance.new("RemoteEvent")
11
    Event.Name = "UserInput_Event"
12
 
13
    --Fake event to make stuff like Mouse.KeyDown work
14
    local function fakeEvent()
15
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
        t.connect = t.Connect
17
        return t
18
    end
19
 
20
    --Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
22
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
    end}
26
    --Merged 2 functions into one by checking amount of arguments
27
    CAS.UnbindAction = CAS.BindAction
28
 
29
    --This function will trigger the events that have been :Connect()'ed
30
    local function te(self,ev,...)
31
        local t = m[ev]
32
        if t and t._fakeEvent then
33
            for _,f in pairs(t.Functions) do
34
                f(...)
35
            end
36
        end
37
    end
38
    m.TrigEvent = te
39
    UIS.TrigEvent = te
40
 
41
    Event.OnServerEvent:Connect(function(plr,io)
42
        if plr~=rp then return end
43
        m.Target = io.Target
44
        m.Hit = io.Hit
45
        if not io.isMouse then
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
            if io.UserInputType == Enum.UserInputType.MouseButton2 then
51
                return m:TrigEvent(b and "Button2Down" or "Button2Up")
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 = owner
66
    local Event = script:WaitForChild("UserInput_Event")
67
    local Mouse = Player:GetMouse()
68
    local UIS = game:GetService("UserInputService")
69
    local input = function(io,a)
70
        if a then return end
71
        --Since InputObject is a client-side instance, we create and pass table instead
72
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
73
    end
74
    UIS.InputBegan:Connect(input)
75
    UIS.InputEnded:Connect(input)
76
    local h,t
77
    --Give the server mouse data 30 times every second, but only if the values changed
78
    --If player is not moving their mouse, client won't fire events
79
    while wait(1/30) do
80
        if h~=Mouse.Hit or t~=Mouse.Target then
81
            h,t=Mouse.Hit,Mouse.Target
82
            Event:FireServer({isMouse=true,Target=t,Hit=h})
83
        end
84
    end]==],Player.Character)
85
 
86
    ----Sandboxed game object that allows the usage of client-side methods and services
87
    --Real game object
88
    local _rg = game
89
 
90
    --Metatable for fake service
91
    local fsmt = {
92
        __index = function(self,k)
93
            local s = rawget(self,"_RealService")
94
            if s then
95
                return typeof(s[k])=="function"
96
                and function(_,...)return s[k](s,...)end or s[k]
97
            end
98
        end,
99
        __newindex = function(self,k,v)
100
            local s = rawget(self,"_RealService")
101
            if s then s[k]=v end
102
        end
103
    }
104
    local function FakeService(t,RealService)
105
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
        return setmetatable(t,fsmt)
107
    end
108
 
109
    --Fake game object
110
    local g = {
111
        GetService = function(self,s)
112
            return rawget(self,s) or _rg:GetService(s)
113
        end,
114
        Players = FakeService({
115
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
        },"Players"),
117
        UserInputService = FakeService(UIS,"UserInputService"),
118
        ContextActionService = FakeService(CAS,"ContextActionService"),
119
        RunService = FakeService({
120
            _btrs = {},
121
            RenderStepped = _rg:GetService("RunService").Heartbeat,
122
            BindToRenderStep = function(self,name,_,fun)
123
                self._btrs[name] = self.Heartbeat:Connect(fun)
124
            end,
125
            UnbindFromRenderStep = function(self,name)
126
                self._btrs[name]:Disconnect()
127
            end,
128
        },"RunService")
129
    }
130
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
131
    g.service = g.GetService
132
    FakeService(g,game)
133
    --Changing owner to fake player object to support owner:GetMouse()
134
    game,owner = g,g.Players.LocalPlayer
135
endlocal player=game:GetService("Players").LocalPlayer
136
local char=player.Character
137
local mouse=player:GetMouse()
138
139
local m = Instance.new("Model")
140
m.Name = "Flamethrower"
141
p1 = Instance.new("Part", m)
142
p1.BrickColor = BrickColor.new("Really black")
143
p1.FormFactor = Enum.FormFactor.Custom
144
p1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
145
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)
146
p1.CanCollide = false
147
b1 = Instance.new("CylinderMesh", p1)
148
b1.Name = "Mesh"
149
b1.Scale = Vector3.new(0.699999988, 1, 1.39999998)
150
p2 = Instance.new("Part", m)
151
p2.BrickColor = BrickColor.new("Really black")
152
p2.FormFactor = Enum.FormFactor.Custom
153
p2.Size = Vector3.new(0.200000003, 0.799999952, 0.200000003)
154
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)
155
p2.CanCollide = false
156
b2 = Instance.new("CylinderMesh", p2)
157
b2.Name = "Mesh"
158
b2.Scale = Vector3.new(0.899999976, 1, 1.5)
159
p3 = Instance.new("Part", m)
160
p3.BrickColor = BrickColor.new("Black")
161
p3.Material = Enum.Material.Grass
162
p3.Name = "Handle2"
163
p3.FormFactor = Enum.FormFactor.Custom
164
p3.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
165
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)
166
p3.CanCollide = false
167
b3 = Instance.new("CylinderMesh", p3)
168
b3.Name = "Mesh"
169
b3.Scale = Vector3.new(0.699999988, 1, 1.39999998)
170
p4 = Instance.new("Part", m)
171
p4.BrickColor = BrickColor.new("Really black")
172
p4.FormFactor = Enum.FormFactor.Custom
173
p4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
174
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)
175
p4.CanCollide = false
176
b4 = Instance.new("CylinderMesh", p4)
177
b4.Name = "Mesh"
178
b4.Scale = Vector3.new(1.20000005, 0.5, 1.78999996)
179
p5 = Instance.new("Part", m)
180
p5.BrickColor = BrickColor.new("Really black")
181
p5.FormFactor = Enum.FormFactor.Custom
182
p5.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
183
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)
184
p5.CanCollide = false
185
b5 = Instance.new("CylinderMesh", p5)
186
b5.Name = "Mesh"
187
b5.Scale = Vector3.new(1, 1, 1.70000005)
188
p6 = Instance.new("Part", m)
189
p6.BrickColor = BrickColor.new("Really black")
190
p6.Size = Vector3.new(1, 1.20000005, 1)
191
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)
192
p6.BottomSurface = Enum.SurfaceType.Smooth
193
p6.TopSurface = Enum.SurfaceType.Smooth
194
b6 = Instance.new("SpecialMesh", p6)
195
b6.MeshType = Enum.MeshType.Brick
196
b6.Name = "Mesh"
197
b6.Scale = Vector3.new(0.461538464, 0.769230723, 0.461538464)
198
b7 = Instance.new("CylinderMesh", p6)
199
b7.Name = "Mesh"
200
b7.Scale = Vector3.new(1, 0.899999976, 0.439999998)
201
d1 = Instance.new("Decal", p6)
202
d1.Texture = "http://www.roblox.com/asset/?id=85448092"
203
d1.Face = Enum.NormalId.Top
204
p7 = Instance.new("Part", m)
205
p7.BrickColor = BrickColor.new("Institutional white")
206
p7.Size = Vector3.new(1, 1.20000005, 1)
207
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)
208
p7.BottomSurface = Enum.SurfaceType.Smooth
209
p7.TopSurface = Enum.SurfaceType.Smooth
210
b8 = Instance.new("SpecialMesh", p7)
211
b8.MeshType = Enum.MeshType.Brick
212
b8.Name = "Mesh"
213
b8.Scale = Vector3.new(0.15384616, 1, 0.307692319)
214
b9 = Instance.new("CylinderMesh", p7)
215
b9.Name = "Mesh"
216
b9.Scale = Vector3.new(1.70000005, 1.10000002, 0.300000012)
217
p8 = Instance.new("Part", m)
218
p8.BrickColor = BrickColor.new("Really black")
219
p8.Name = "Barrel"
220
p8.Size = Vector3.new(1, 1.20000005, 1)
221
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)
222
p8.BottomSurface = Enum.SurfaceType.Smooth
223
p8.TopSurface = Enum.SurfaceType.Smooth
224
b10 = Instance.new("SpecialMesh", p8)
225
b10.MeshId = "http://www.roblox.com/asset/?id=1091603"
226
b10.TextureId = ""
227
b10.MeshType = Enum.MeshType.FileMesh
228
b10.Name = "Mesh"
229
b10.Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012)
230
p9 = Instance.new("Part", m)
231
p9.BrickColor = BrickColor.new("Really black")
232
p9.FormFactor = Enum.FormFactor.Custom
233
p9.Size = Vector3.new(0.288717359, 0.288717419, 0.288717419)
234
p9.CFrame = CFrame.new(-4.12095404, 1.04495895, 29.1705666, 1, 0, 0, 0, 1, 0, 0, 0, 1)
235
p9.BottomSurface = Enum.SurfaceType.Smooth
236
p9.TopSurface = Enum.SurfaceType.Smooth
237
b11 = Instance.new("SpecialMesh", p9)
238
b11.MeshType = Enum.MeshType.Brick
239
b11.Name = "Mesh"
240
b11.Scale = Vector3.new(1.37011397, 0.164413691, 1.50712562)
241
p10 = Instance.new("Part", m)
242
p10.BrickColor = BrickColor.new("Institutional white")
243
p10.Size = Vector3.new(1, 1.20000005, 1)
244
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)
245
p10.BottomSurface = Enum.SurfaceType.Smooth
246
p10.TopSurface = Enum.SurfaceType.Smooth
247
b12 = Instance.new("SpecialMesh", p10)
248
b12.MeshType = Enum.MeshType.Brick
249
b12.Name = "Mesh"
250
b12.Scale = Vector3.new(0.15384616, 0.153846145, 1)
251
p11 = Instance.new("Part", m)
252
p11.BrickColor = BrickColor.new("Institutional white")
253
p11.Name = "Handle"
254
p11.Size = Vector3.new(1, 1.20000005, 1)
255
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)
256
p11.BottomSurface = Enum.SurfaceType.Smooth
257
p11.TopSurface = Enum.SurfaceType.Smooth
258
b13 = Instance.new("SpecialMesh", p11)
259
b13.MeshType = Enum.MeshType.Brick
260
b13.Name = "Mesh"
261
b13.Scale = Vector3.new(0.15384616, 0.538461506, 0.307692319)
262
p12 = Instance.new("Part", m)
263
p12.BrickColor = BrickColor.new("Really black")
264
p12.FormFactor = Enum.FormFactor.Custom
265
p12.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
266
p12.CFrame = CFrame.new(-4.08139706, 0.981667995, 29.0914536, 1, 0, 0, 0, 1, 0, 0, 0, 1)
267
p12.BottomSurface = Enum.SurfaceType.Smooth
268
p12.TopSurface = Enum.SurfaceType.Smooth
269
b14 = Instance.new("SpecialMesh", p12)
270
b14.MeshType = Enum.MeshType.Brick
271
b14.Name = "Mesh"
272
b14.Scale = Vector3.new(0.351311207, 0.351311326, 0.175655678)
273
p13 = Instance.new("Part", m)
274
p13.BrickColor = BrickColor.new("Really black")
275
p13.FormFactor = Enum.FormFactor.Custom
276
p13.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
277
p13.CFrame = CFrame.new(-4.08139706, 0.882772982, 29.1310101, -1, 0, 0, 0, 1, 0, 0, 0, -1)
278
p13.BottomSurface = Enum.SurfaceType.Smooth
279
p13.TopSurface = Enum.SurfaceType.Smooth
280
b15 = Instance.new("SpecialMesh", p13)
281
b15.MeshType = Enum.MeshType.Wedge
282
b15.Name = "Mesh"
283
b15.Scale = Vector3.new(0.351311207, 0.175655663, 0.175655678)
284
p14 = Instance.new("Part", m)
285
p14.BrickColor = BrickColor.new("Really black")
286
p14.FormFactor = Enum.FormFactor.Custom
287
p14.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
288
p14.CFrame = CFrame.new(-4.08139706, 0.882772982, 29.2496853, 1, 0, 0, 0, 1, 0, 0, 0, 1)
289
p14.BottomSurface = Enum.SurfaceType.Smooth
290
p14.TopSurface = Enum.SurfaceType.Smooth
291
b16 = Instance.new("SpecialMesh", p14)
292
b16.MeshType = Enum.MeshType.Wedge
293
b16.Name = "Mesh"
294
b16.Scale = Vector3.new(0.351311207, 0.175655663, 0.175655678)
295
p15 = Instance.new("Part", m)
296
p15.BrickColor = BrickColor.new("Really black")
297
p15.FormFactor = Enum.FormFactor.Custom
298
p15.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
299
p15.CFrame = CFrame.new(-4.08139706, 0.922330976, 29.0914536, 1, 0, 0, 0, 1, 0, 0, 0, 1)
300
p15.BottomSurface = Enum.SurfaceType.Smooth
301
p15.TopSurface = Enum.SurfaceType.Smooth
302
b17 = Instance.new("SpecialMesh", p15)
303
b17.MeshType = Enum.MeshType.Brick
304
b17.Name = "Mesh"
305
b17.Scale = Vector3.new(0.351311207, 0.175655663, 0.175655678)
306
p16 = Instance.new("Part", m)
307
p16.BrickColor = BrickColor.new("Really black")
308
p16.FormFactor = Enum.FormFactor.Custom
309
p16.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
310
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)
311
p16.BottomSurface = Enum.SurfaceType.Smooth
312
p16.TopSurface = Enum.SurfaceType.Smooth
313
b18 = Instance.new("SpecialMesh", p16)
314
b18.MeshType = Enum.MeshType.Wedge
315
b18.Name = "Mesh"
316
b18.Scale = Vector3.new(1.75655627, 1.68629432, 0.175655678)
317
p17 = Instance.new("Part", m)
318
p17.BrickColor = BrickColor.new("Really black")
319
p17.FormFactor = Enum.FormFactor.Custom
320
p17.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
321
p17.CFrame = CFrame.new(-4.12095404, 0.878817022, 28.9727783, 1, 0, 0, 0, 1, 0, 0, 0, 1)
322
p17.BottomSurface = Enum.SurfaceType.Smooth
323
p17.TopSurface = Enum.SurfaceType.Smooth
324
b19 = Instance.new("SpecialMesh", p17)
325
b19.MeshType = Enum.MeshType.Brick
326
b19.Name = "Mesh"
327
b19.Scale = Vector3.new(1.75655627, 1.2647208, 0.175655678)
328
p18 = Instance.new("Part", m)
329
p18.BrickColor = BrickColor.new("Really black")
330
p18.FormFactor = Enum.FormFactor.Custom
331
p18.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
332
p18.CFrame = CFrame.new(-4.08139706, 0.882772982, 29.0914536, 1, 0, 0, 0, 1, 0, 0, 0, 1)
333
p18.BottomSurface = Enum.SurfaceType.Smooth
334
p18.TopSurface = Enum.SurfaceType.Smooth
335
b20 = Instance.new("SpecialMesh", p18)
336
b20.MeshType = Enum.MeshType.Brick
337
b20.Name = "Mesh"
338
b20.Scale = Vector3.new(0.351311207, 0.175655663, 0.175655678)
339
p19 = Instance.new("Part", m)
340
p19.BrickColor = BrickColor.new("Really black")
341
p19.FormFactor = Enum.FormFactor.Custom
342
p19.Size = Vector3.new(0.799999356, 0.200000003, 0.399999857)
343
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)
344
p19.CanCollide = false
345
b21 = Instance.new("BlockMesh", p19)
346
b21.Name = "Mesh"
347
b21.Scale = Vector3.new(1, 1, 0.699999988)
348
p20 = Instance.new("Part", m)
349
p20.BrickColor = BrickColor.new("Really black")
350
p20.FormFactor = Enum.FormFactor.Custom
351
p20.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
352
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)
353
p20.BottomSurface = Enum.SurfaceType.Smooth
354
p20.TopSurface = Enum.SurfaceType.Smooth
355
b22 = Instance.new("SpecialMesh", p20)
356
b22.MeshType = Enum.MeshType.Wedge
357
b22.Name = "Mesh"
358
b22.Scale = Vector3.new(1.75655627, 0.702622652, 0.175655678)
359
p21 = Instance.new("Part", m)
360
p21.BrickColor = BrickColor.new("Really black")
361
p21.FormFactor = Enum.FormFactor.Custom
362
p21.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
363
p21.CFrame = CFrame.new(-4.12095404, 0.700815022, 29.3090191, -1, -0, -0, -0, -0, -1, -0, -1, -0)
364
p21.BottomSurface = Enum.SurfaceType.Smooth
365
p21.TopSurface = Enum.SurfaceType.Smooth
366
b23 = Instance.new("SpecialMesh", p21)
367
b23.MeshType = Enum.MeshType.Wedge
368
b23.Name = "Mesh"
369
b23.Scale = Vector3.new(1.75655627, 0.702622652, 0.175655678)
370
p22 = Instance.new("Part", m)
371
p22.BrickColor = BrickColor.new("Really black")
372
p22.FormFactor = Enum.FormFactor.Custom
373
p22.Size = Vector3.new(0.799999356, 0.200000003, 0.200000003)
374
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)
375
p22.CanCollide = false
376
b24 = Instance.new("BlockMesh", p22)
377
b24.Name = "Mesh"
378
b24.Scale = Vector3.new(1, 0.300000012, 0.899999976)
379
p23 = Instance.new("Part", m)
380
p23.BrickColor = BrickColor.new("Really black")
381
p23.FormFactor = Enum.FormFactor.Custom
382
p23.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
383
p23.CFrame = CFrame.new(-4.08139706, 0.843216002, 29.1705666, 1, 0, 0, 0, 1, 0, 0, 0, 1)
384
p23.BottomSurface = Enum.SurfaceType.Smooth
385
p23.TopSurface = Enum.SurfaceType.Smooth
386
b25 = Instance.new("SpecialMesh", p23)
387
b25.MeshType = Enum.MeshType.Brick
388
b25.Name = "Mesh"
389
b25.Scale = Vector3.new(0.351311207, 0.175655663, 0.878278494)
390
p24 = Instance.new("Part", m)
391
p24.BrickColor = BrickColor.new("Really black")
392
p24.FormFactor = Enum.FormFactor.Custom
393
p24.Size = Vector3.new(0.474551886, 0.474551976, 0.474551976)
394
p24.CFrame = CFrame.new(-4.14073181, 0.728498995, 28.9727783, 1, 0, 0, 0, 1, 0, 0, 0, 1)
395
p24.BottomSurface = Enum.SurfaceType.Smooth
396
p24.TopSurface = Enum.SurfaceType.Smooth
397
b26 = Instance.new("SpecialMesh", p24)
398
b26.MeshType = Enum.MeshType.Brick
399
b26.Name = "Mesh"
400
b26.Scale = Vector3.new(0.750219524, 0.0333430953, 0.0833577439)
401
p25 = Instance.new("Part", m)
402
p25.BrickColor = BrickColor.new("Really black")
403
p25.FormFactor = Enum.FormFactor.Custom
404
p25.Size = Vector3.new(0.225199535, 0.22519955, 0.22519958)
405
p25.CFrame = CFrame.new(-4.12095404, 0.661257982, 29.1705666, 1, 0, 0, 0, 1, 0, 0, 0, 1)
406
p25.BottomSurface = Enum.SurfaceType.Smooth
407
p25.TopSurface = Enum.SurfaceType.Smooth
408
b27 = Instance.new("SpecialMesh", p25)
409
b27.MeshType = Enum.MeshType.Brick
410
b27.Name = "Mesh"
411
b27.Scale = Vector3.new(1.75655627, 0.175655663, 1.93221235)
412
p26 = Instance.new("Part", m)
413
p26.BrickColor = BrickColor.new("Really black")
414
p26.FormFactor = Enum.FormFactor.Custom
415
p26.Size = Vector3.new(0.474551886, 0.474551976, 0.474551976)
416
p26.CFrame = CFrame.new(-4.12095404, 0.601921976, 29.1705666, 1, -0, 0, 0, -0, 1, 0, -1, 0)
417
p26.BottomSurface = Enum.SurfaceType.Smooth
418
p26.TopSurface = Enum.SurfaceType.Smooth
419
b28 = Instance.new("SpecialMesh", p26)
420
b28.MeshType = Enum.MeshType.Wedge
421
b28.Name = "Mesh"
422
b28.Scale = Vector3.new(0.833577335, 0.916935086, 0.166715518)
423
p27 = Instance.new("Part", m)
424
p27.BrickColor = BrickColor.new("Dark stone grey")
425
p27.Transparency = 1
426
p27.Name = "Handle3"
427
p27.FormFactor = Enum.FormFactor.Custom
428
p27.Size = Vector3.new(1, 1.4000001, 0.200000033)
429
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)
430
p27.BottomSurface = Enum.SurfaceType.Smooth
431
p27.TopSurface = Enum.SurfaceType.Smooth
432
b29 = Instance.new("SpecialMesh", p27)
433
b29.MeshType = Enum.MeshType.Wedge
434
b29.Name = "Mesh"
435
b29.Scale = Vector3.new(0.25, 0.25, 0.200000003)
436
m.Parent = char
437
m:MakeJoints()
438
439
440
local m2 = Instance.new("Model")
441
m2.Name = "Fueltank"
442
p1 = Instance.new("Part", m2)
443
p1.BrickColor = BrickColor.new("Black")
444
p1.FormFactor = Enum.FormFactor.Custom
445
p1.Size = Vector3.new(0.400000036, 0.200000003, 0.200000003)
446
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)
447
b1 = Instance.new("CylinderMesh", p1)
448
b1.Name = "Mesh"
449
b1.Scale = Vector3.new(2, 1.5, 1)
450
p2 = Instance.new("Part", m2)
451
p2.BrickColor = BrickColor.new("Institutional white")
452
p2.Material = Enum.Material.Neon
453
p2.Name = "ChangeColor"
454
p2.FormFactor = Enum.FormFactor.Custom
455
p2.Size = Vector3.new(0.400000036, 1.19999981, 1)
456
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)
457
p2.CanCollide = false
458
b2 = Instance.new("CylinderMesh", p2)
459
b2.Name = "Mesh"
460
b2.Scale = Vector3.new(2, 1, 1)
461
p3 = Instance.new("Part", m2)
462
p3.BrickColor = BrickColor.new("Mid gray")
463
p3.Material = Enum.Material.Neon
464
p3.Name = "FuelCenter"
465
p3.FormFactor = Enum.FormFactor.Custom
466
p3.Size = Vector3.new(0.400000036, 0.799999833, 1)
467
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)
468
b3 = Instance.new("CylinderMesh", p3)
469
b3.Name = "Mesh"
470
b3.Scale = Vector3.new(1.39999998, 1, 1)
471
p4 = Instance.new("Part", m2)
472
p4.BrickColor = BrickColor.new("Really black")
473
p4.FormFactor = Enum.FormFactor.Custom
474
p4.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
475
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)
476
p4.BottomSurface = Enum.SurfaceType.Smooth
477
p4.TopSurface = Enum.SurfaceType.Smooth
478
b4 = Instance.new("SpecialMesh", p4)
479
b4.MeshType = Enum.MeshType.Sphere
480
b4.Name = "Mesh"
481
p5 = Instance.new("Part", m2)
482
p5.BrickColor = BrickColor.new("Really black")
483
p5.FormFactor = Enum.FormFactor.Custom
484
p5.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
485
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)
486
p5.BottomSurface = Enum.SurfaceType.Smooth
487
p5.TopSurface = Enum.SurfaceType.Smooth
488
b5 = Instance.new("SpecialMesh", p5)
489
b5.MeshType = Enum.MeshType.Sphere
490
b5.Name = "Mesh"
491
b5.Scale = Vector3.new(0.709999979, 0.709999979, 0.709999979)
492
p6 = Instance.new("Part", m2)
493
p6.BrickColor = BrickColor.new("Really black")
494
p6.FormFactor = Enum.FormFactor.Custom
495
p6.Size = Vector3.new(0.400000036, 0.200000003, 0.200000003)
496
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)
497
b6 = Instance.new("CylinderMesh", p6)
498
b6.Name = "Mesh"
499
b6.Scale = Vector3.new(2, 1, 1)
500
p7 = Instance.new("Part", m2)
501
p7.BrickColor = BrickColor.new("Really black")
502
p7.FormFactor = Enum.FormFactor.Custom
503
p7.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
504
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)
505
p7.BottomSurface = Enum.SurfaceType.Smooth
506
p7.TopSurface = Enum.SurfaceType.Smooth
507
b7 = Instance.new("SpecialMesh", p7)
508
b7.MeshType = Enum.MeshType.Sphere
509
b7.Name = "Mesh"
510
p8 = Instance.new("Part", m2)
511
p8.BrickColor = BrickColor.new("Really black")
512
p8.FormFactor = Enum.FormFactor.Custom
513
p8.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
514
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)
515
p8.BottomSurface = Enum.SurfaceType.Smooth
516
p8.TopSurface = Enum.SurfaceType.Smooth
517
b8 = Instance.new("SpecialMesh", p8)
518
b8.MeshType = Enum.MeshType.Sphere
519
b8.Name = "Mesh"
520
b8.Scale = Vector3.new(0.709999979, 0.709999979, 0.709999979)
521
p9 = Instance.new("Part", m2)
522
p9.BrickColor = BrickColor.new("Really black")
523
p9.FormFactor = Enum.FormFactor.Custom
524
p9.Size = Vector3.new(0.400000036, 0.200000003, 0.200000003)
525
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)
526
b9 = Instance.new("CylinderMesh", p9)
527
b9.Name = "Mesh"
528
b9.Scale = Vector3.new(2, 1.5, 1)
529
p10 = Instance.new("Part", m2)
530
p10.BrickColor = BrickColor.new("Really black")
531
p10.FormFactor = Enum.FormFactor.Custom
532
p10.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
533
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)
534
p10.BottomSurface = Enum.SurfaceType.Smooth
535
p10.TopSurface = Enum.SurfaceType.Smooth
536
b10 = Instance.new("SpecialMesh", p10)
537
b10.MeshType = Enum.MeshType.Sphere
538
b10.Name = "Mesh"
539
p11 = Instance.new("Part", m2)
540
p11.BrickColor = BrickColor.new("Institutional white")
541
p11.Material = Enum.Material.Neon
542
p11.Name = "ChangeColor2"
543
p11.FormFactor = Enum.FormFactor.Custom
544
p11.Size = Vector3.new(0.400000036, 1.19999981, 1)
545
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)
546
p11.CanCollide = false
547
b11 = Instance.new("CylinderMesh", p11)
548
b11.Name = "Mesh"
549
b11.Scale = Vector3.new(2, 1, 1)
550
p12 = Instance.new("Part", m2)
551
p12.BrickColor = BrickColor.new("Really black")
552
p12.FormFactor = Enum.FormFactor.Custom
553
p12.Size = Vector3.new(0.400000036, 0.200000003, 0.200000003)
554
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)
555
b12 = Instance.new("CylinderMesh", p12)
556
b12.Name = "Mesh"
557
b12.Scale = Vector3.new(2, 1, 1)
558
p13 = Instance.new("Part", m2)
559
p13.BrickColor = BrickColor.new("Really black")
560
p13.FormFactor = Enum.FormFactor.Custom
561
p13.Size = Vector3.new(0.799999356, 0.799999356, 0.799999356)
562
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)
563
p13.BottomSurface = Enum.SurfaceType.Smooth
564
p13.TopSurface = Enum.SurfaceType.Smooth
565
b13 = Instance.new("SpecialMesh", p13)
566
b13.MeshType = Enum.MeshType.Sphere
567
b13.Name = "Mesh"
568
m2.Parent = char
569
m2:MakeJoints()
570
571
local prev
572
local parts = char.Fueltank:GetChildren()
573
574
for i = 1,#parts do 
575
	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 
576
		if (prev ~= nil)then 
577
			local weld = Instance.new("Weld") 
578
			weld.Part0 = prev 
579
			weld.Part1 = parts[i] 
580
			weld.C0 = prev.CFrame:inverse() 
581
			weld.C1 = parts[i].CFrame:inverse() 
582
			weld.Parent = prev 
583
		end 
584
		prev = parts[i] 
585
	end 
586
end
587
588
local prev
589
local parts = char.Flamethrower:GetChildren()
590
591
for i = 1,#parts do 
592
	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 
593
		if (prev ~= nil)then 
594
			local weld = Instance.new("Weld") 
595
			weld.Part0 = prev 
596
			weld.Part1 = parts[i] 
597
			weld.C0 = prev.CFrame:inverse() 
598
			weld.C1 = parts[i].CFrame:inverse() 
599
			weld.Parent = prev 
600
		end 
601
		prev = parts[i] 
602
	end 
603
end
604
605
char.Fueltank.FuelCenter.CFrame = CFrame.new(char.Torso.Position)
606
607
local arms = nil
608
local torso = nil
609
local welds = {}
610
611
arms = {char:FindFirstChild("Left Arm"), char:FindFirstChild("Right Arm")}
612
torso = char:FindFirstChild("Torso")
613
if arms ~= nil and torso ~= nil then
614
local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
615
if sh ~= nil then
616
local yes = true
617
if yes then
618
yes = false
619
sh[1].Part1 = nil
620
sh[2].Part1 = nil
621
local weld1 = Instance.new("Weld")
622
weld1.Part0 = torso
623
weld1.Parent = torso
624
weld1.Part1 = arms[1]
625
weld1.C1 = CFrame.new(-0.249, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
626
welds[1] = weld1
627
local weld2 = Instance.new("Weld")
628
weld2.Part0 = torso
629
weld2.Parent = torso
630
weld2.Part1 = arms[2]
631
weld2.C1 = CFrame.new(-1, -0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
632
welds[2] = weld2
633
end
634
end
635
end
636
637
char.Flamethrower.Handle.CFrame = CFrame.new(char["Left Arm"].Position)
638
639
local SWeld = Instance.new("Weld",char.Fueltank.FuelCenter)
640
SWeld.Name = "SWeld"
641
SWeld.Part0 = char.Fueltank.FuelCenter
642
SWeld.Part1 = char.Torso
643
SWeld.C0 = CFrame.new(1.35,0,0)*CFrame.fromEulerAnglesXYZ(0,-7.9,59.68)
644
645
local SWeld2 = Instance.new("Weld",char.Flamethrower.Handle)
646
SWeld2.Name = "SWeld2"
647
SWeld2.Part0 = char.Flamethrower.Handle
648
SWeld2.Part1 = char["Left Arm"]
649
SWeld2.C0 = CFrame.new(-.70,0,-1)*CFrame.Angles(5,7.8,0)
650
651
local auto = 0
652
653
654
local s1=Instance.new("Sound")
655
s1.SoundId="http://www.roblox.com/asset/?id=260131404"
656
s1.PlayOnRemove=false
657
s1.Volume=100
658
s1.Looped=false
659
s1.Pitch = 1
660
s1.Parent=char.Flamethrower.Handle
661
662
local s2=Instance.new("Sound")
663
s2.SoundId="http://www.roblox.com/asset/?id=260131485"
664
s2.PlayOnRemove=false
665
s2.Volume=100
666
s2.Looped=true
667
s2.Pitch = 1
668
s2.Parent=char.Flamethrower.Handle
669
670
local s3=Instance.new("Sound")
671
s3.SoundId="http://www.roblox.com/asset/?id=260131519"
672
s3.PlayOnRemove=false
673
s3.Volume=100
674
s3.Looped=false
675
s3.Pitch = 1
676
s3.Parent=char.Flamethrower.Handle
677
678
mouse.Button1Down:connect(function()
679
	if auto == 0 then
680
		s1:Stop()
681
		s2:Stop()
682
	end
683
	if auto == 1 then
684
		s1:Play()
685
		s1:Stop()
686
		s2:Play()
687
	end
688
end)
689
690
mouse.Button1Up:connect(function()
691
	if auto == 0 then
692
		s1:Stop()
693
		s2:Stop()
694
		s3:Play()
695
		if auto == 1 then
696
			s1:Stop()
697
			s2:Stop()
698
			s3:Stop()
699
		end
700
	end
701
end)
702
703
local burning = false
704
local burning2 = false
705
706
mouse.Button1Down:connect(function()
707
	SWeld2.C0 = CFrame.new(-.70,0,-.80)*CFrame.Angles(5,7.8,0)
708
char.Fueltank.ChangeColor.BrickColor = BrickColor.New("Really red")
709
	char.Fueltank.ChangeColor2.BrickColor = BrickColor.New("Really red")
710
	char.Fueltank.FuelCenter.BrickColor = BrickColor.New("Really red")
711
end)
712
713
mouse.Button1Down:connect(function()
714
	auto = 1
715
	while auto == 1 do
716
		wait(.20)
717
	local smoke = Instance.new("Smoke",char.Flamethrower.Barrel)
718
	game.Debris:AddItem(smoke,1)
719
local bullet = Instance.new("Part",workspace)
720
game.Debris:AddItem(bullet,.90)
721
bullet.Size = Vector3.new(2,2,2)
722
bullet.Shape = "Ball"
723
bullet.Transparency = 1
724
bullet.CanCollide = false
725
bullet.Name = "bullet"
726
bullet.CFrame = char.Flamethrower.Barrel.CFrame*CFrame.new(0,3,0)
727
local fire = Instance.new("Fire",bullet)
728
local light = Instance.new("PointLight", bullet)
729
light.Range = 5
730
light.Brightness = 20
731
light.Color = Color3.new(255, 85, 0)
732
local bvelocity = Instance.new("BodyVelocity",bullet)
733
bvelocity.maxForce = Vector3.new(math.huge,math.huge,850)
734
bvelocity.velocity = mouse.Hit.lookVector*47
735
bullet.Touched:connect(function(hit)
736
if hit.Parent:FindFirstChild("Humanoid") then
737
local fire1 = Instance.new("Fire",hit.Parent.Torso)
738
game.Debris:AddItem(fire1,3)
739
hit.Parent.Humanoid:TakeDamage(math.random(0.52,0.65))
740
wait(.30)
741
hit.Parent.Humanoid:TakeDamage(math.random(0.53,0.66))
742
wait(.30)
743
hit.Parent.Humanoid:TakeDamage(math.random(0.54,0.67))
744
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
745
	local fire2 = Instance.new("Fire",hit)
746
	wait(3)
747
	hit.Transparency = .25
748
	wait(1)
749
	hit.Transparency = .50
750
	hit.BrickColor = BrickColor.new("Really black")
751
	wait(2)
752
	hit.Transparency = .75
753
	wait(1)
754
	hit.Transparency = 1
755
	fire2:Destroy()
756
	wait(.01)
757
	hit:Destroy()
758
	end
759
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Torso:FindFirstChild("Fire") then
760
	burning = true
761
if burning == true then
762
	while burning do
763
	wait(.80)
764
	hit.Parent.Humanoid:TakeDamage(.44)
765
if hit.Parent.Torso:FindFirstChild("Fire")==nil then
766
	burning = false
767
end
768
end
769
end
770
	end
771
end)
772
	end
773
end)
774
775
mouse.Button1Up:connect(function()
776
	SWeld2.C0 = CFrame.new(-.70,0,-1)*CFrame.Angles(5,7.8,0)
777
	auto = 0
778
	char.Fueltank.ChangeColor.BrickColor = BrickColor.New("Institutional white")
779
	char.Fueltank.ChangeColor2.BrickColor = BrickColor.New("Institutional white")
780
	char.Fueltank.FuelCenter.BrickColor = BrickColor.New("Institutional white")
781
	if char.Flamethrower.Barrel:FindFirstChild("Smoke") then
782
		char.Flamethrower.Barrel.Smoke:Remove()
783
	end
784
end)