View difference between Paste ID: yEk3ripm and dfxq2mCi
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
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,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
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
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
--Pyro by madiik
88
89
90-
p = game.Players.von12222222
90+
p = game.Players.hsdfsfsdfds
91
c = p.Character
92
torso = c.Torso
93
local firee = false
94
local damage = 1
95
local debounce = false
96
local debounced = false
97
local debounceair = false
98
local firedebounce = false
99
local removehatchet = false
100
local hatchetequipped = false
101
RunService = game:service'RunService'
102
Debris = game:service'Debris'
103
damagelist = {}
104
time_until_extinguish = 50
105
for _,v in pairs(c:children()) do 
106
pcall(function() 
107
if v.className == "Hat" then 
108
v:remove() 
109
end 
110
end) 
111
end 
112
                ra = c["Right Arm"]
113
                la = c["Left Arm"]
114
                rs = c.Torso["Right Shoulder"]
115
                ls = c.Torso["Left Shoulder"]
116
                
117
                
118
                mask = Instance.new("Part")
119
                mask.Size = Vector3.new(2, 1, 1)
120
                mask.BrickColor = BrickColor.new("Dark stone grey")
121
                mask:BreakJoints()
122
				mask.Name = "Mask"
123
                mask.Parent = c
124
                ms4 = Instance.new("SpecialMesh", mask)
125
                ms4.Scale = Vector3.new(1.3, 1.15, 1.3)
126
                w9 = Instance.new("Weld", mask)
127
                w9.Part0 = mask
128
                w9.Part1 = c.Head
129
                w9.C0 = CFrame.new(0, 0, 0)
130
                
131
                                                                mask2 = Instance.new("Part")
132
                                                                mask2.FormFactor = "Custom"
133
                mask2.Size = Vector3.new(0.4, 0.5, 0.4)
134
                mask2.BrickColor = BrickColor.new("Dark stone grey")
135
                mask2:BreakJoints()
136
                mask2.Parent = c
137
                ms5 = Instance.new("CylinderMesh", mask2)
138
                ms5.Scale = Vector3.new(1, 1, 1)
139
                w8 = Instance.new("Weld", mask2)
140
                w8.Part0 = mask2
141
                w8.Part1 = c.Head
142
                w8.C0 = CFrame.new(0.25, -0.4, -0.1) * CFrame.Angles(math.pi/2, 0, 0)
143
                
144
                mask3 = Instance.new("Part")
145
                                                                mask3.FormFactor = "Custom"
146
                mask3.Size = Vector3.new(0.4, 0.5, 0.4)
147
                mask3.BrickColor = BrickColor.new("Dark stone grey")
148
                mask3:BreakJoints()
149
                mask3.Parent = c
150
                ms6 = Instance.new("CylinderMesh", mask3)
151
                ms6.Scale = Vector3.new(1, 1, 1)
152
                w10 = Instance.new("Weld", mask3)
153
                w10.Part0 = mask3
154
                w10.Part1 = c.Head
155
                w10.C0 = CFrame.new(-0.25, -0.4, -0.1) * CFrame.Angles(math.pi/2, 0, 0)
156
                
157
                                                                                mask4 = Instance.new("Part")
158
                                                                mask4.FormFactor = "Custom"
159
                mask4.Size = Vector3.new(0.35, 0.51, 0.35)
160
                mask4.BrickColor = BrickColor.new("Black")
161
                mask4:BreakJoints()
162
                mask4.Reflectance = 0.4
163
                mask4.Parent = c
164
                ms7 = Instance.new("CylinderMesh", mask4)
165
                ms7.Scale = Vector3.new(1, 1, 1)
166
                w11 = Instance.new("Weld", mask4)
167
                w11.Part0 = mask4
168
                w11.Part1 = c.Head
169
                w11.C0 = CFrame.new(0.25, -0.4, -0.1) * CFrame.Angles(math.pi/2, 0, 0)
170
                
171
                mask5 = Instance.new("Part")
172
                mask5.FormFactor = "Custom"
173
                mask5.Size = Vector3.new(0.35, 0.51, 0.35)
174
                mask5.BrickColor = BrickColor.new("Black")
175
                mask5.Reflectance = 0.4
176
                mask5:BreakJoints()
177
                mask5.Parent = c
178
                ms8 = Instance.new("CylinderMesh", mask5)
179
                ms8.Scale = Vector3.new(1, 1, 1)
180
                w12 = Instance.new("Weld", mask5)
181
                w12.Part0 = mask5
182
                w12.Part1 = c.Head
183
                w12.C0 = CFrame.new(-0.25, -0.4, -0.1) * CFrame.Angles(math.pi/2, 0, 0)
184
				
185
				                mask7 = Instance.new("Part")
186
                mask7.FormFactor = "Custom"
187
                mask7.Size = Vector3.new(0.2, 1.1, 0.2)
188
                mask7.BrickColor = BrickColor.new("Dark stone grey")
189
                mask7:BreakJoints()
190
                mask7.Parent = c
191
                ms8 = Instance.new("CylinderMesh", mask7)
192
                ms8.Scale = Vector3.new(1, 1, 1)
193
                w12 = Instance.new("Weld", mask7)
194
                w12.Part0 = mask7
195
                w12.Part1 = c.Head
196
                w12.C0 = CFrame.new(-0.6, -0.3, -0.1) * CFrame.Angles(math.pi/2, 0, 0)
197
				spot = Instance.new("SpotLight", mask)
198
				spot.Range = 60
199
				spot.Angle = 70
200
				spot.Color = Color3.new(1, 1, 0)
201
                
202
                mask6 = Instance.new("Part")
203
                mask6.FormFactor = "Custom"
204
                mask6.Size = Vector3.new(0.35, 0.65, 0.35)
205
                mask6.BrickColor = BrickColor.new("Dark stone grey")
206
                mask6:BreakJoints()
207
                mask6.Parent = c
208
                ms9 = Instance.new("CylinderMesh", mask6)
209
                ms9.Scale = Vector3.new(1, 1, 1)
210
                w13 = Instance.new("Weld", mask6)
211
                w13.Part0 = mask6
212
                w13.Part1 = c.Head
213
                w13.C0 = CFrame.new(0.2, -0.4, 0) * CFrame.Angles(math.rad(115), math.rad(22.5), 0)
214
                
215
                
216
tool = Instance.new("HopperBin", p.Backpack)
217
tool.Name = "Pyro"
218
tool.Selected:connect(function(mouse)
219
                bg2 = Instance.new("BodyGyro",c.Torso)
220
                bg2.P = 20e+003
221
                bg2.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
222
                
223
                
224
                game:service("RunService").Stepped:connect(function()
225
                bg2.cframe = CFrame.new(c.Torso.Position,Vector3.new(mouse.hit.p.x,c.Torso.Position.y,mouse.hit.p.z)) * CFrame.Angles(0, math.rad(-60), 0)
226
                end)
227
                
228
                
229
                
230
                rs.Part0 = nil
231
                rs.Part1 = nil
232
                ls.Part0 = nil
233
                ls.Part1 = nil
234
                rweld = Instance.new("Weld", c)
235
                rweld.C0 = CFrame.new(-1.48,0,0.2) * CFrame.Angles(math.rad(-18), math.rad(0), math.rad(0)) 
236
                rweld.Part0 = ra
237
                rweld.Part1 = torso
238
                lweld = Instance.new("Weld", c)
239
                lweld.C0 = CFrame.new(1.5,0.2,0.2) * CFrame.Angles(math.rad(-50), math.rad(22.5), math.rad(0)) 
240
                lweld.Part0 = la
241
                lweld.Part1 = torso
242
                neck = c.Torso.Neck
243
                neck.C0 = neck.C0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)) wait(0.01)
244
                
245
                ballon1 = Instance.new("Part")
246
                ballon1.Size = Vector3.new(1, 2, 1)
247
                ballon1.BrickColor = BrickColor.new("White")
248
                ballon1:BreakJoints()
249
                ballon1.Parent = c
250
                Instance.new("SpecialMesh", ballon1)
251
                w = Instance.new("Weld", ballon1)
252
                w.Part0 = ballon1
253
                w.Part1 = torso
254
                w.C0 = CFrame.new(0.45, 0, -0.8)
255
                
256
                                ballon2 = Instance.new("Part")
257
                ballon2.Size = Vector3.new(1, 2, 1)
258
                ballon2.BrickColor = BrickColor.new("White")
259
                ballon2:BreakJoints()
260
                ballon2.Parent = c
261
                Instance.new("SpecialMesh", ballon2)
262
                w1 = Instance.new("Weld", ballon2)
263
                w1.Part0 = ballon2
264
                w1.Part1 = torso
265
                w1.C0 = CFrame.new(-0.45, 0, -0.8)
266
                
267
                base = Instance.new("Part")
268
                base.FormFactor = "Custom"
269
                base.Size = Vector3.new(0.4, 5, 0.4)
270
                base:breakJoints()
271
                base.BrickColor = BrickColor.Black()
272
                base.Parent = c
273
                Instance.new("CylinderMesh", base)
274
                w2 = Instance.new("Weld", base)
275
                w2.Part0 = base
276
                w2.Part1 = torso
277
                w2.C0 = CFrame.new(1.1, 0.5, 0.5) * CFrame.Angles(math.pi/2,math.rad(120), 0)
278
                
279
                sound = Instance.new("Sound", base)
280
                sound.SoundId = "http://roblox.com/asset/?id=10209616"
281
                sound.Volume = 1
282
                sound.Looped = true
283
                                        
284
                fire = Instance.new("Part")
285
                fire.Parent = nil
286
                fire.FormFactor = "Custom"
287
                fire.Size = Vector3.new(8, 55, 4)
288
                fire.Transparency = 1
289
                fire.CanCollide = false
290
                fire.Anchored = true
291
                                                pl = Instance.new("PointLight", fire)
292
                pl.Range = 24
293
                pl.Color = Color3.new(255/255, 170/255, 0/255)
294
                
295
                                coroutine.wrap(function()        
296
                                while true do
297
                                        fire.CFrame = base.CFrame * CFrame.new(0, -30, 0)
298
                                        RunService.Stepped:wait()
299
                                end
300
                                end)()
301
                                
302
                
303
                sm = Instance.new("Part", c)
304
                sm.FormFactor = "Custom"
305
                sm.BottomSurface = 0
306
                sm.TopSurface = 0
307
                sm.BrickColor = BrickColor.Black()
308
                sm.Size = Vector3.new(0.5, 0.5, 0.5)
309
                sm.Transparency = 0
310
                sm:BreakJoints()
311
                
312
                                pl7 = Instance.new("PointLight", sm)
313
                pl7.Range = 12
314
                pl7.Color = Color3.new(255/255, 170/255, 0/255)
315
                
316
                smoke = Instance.new("Smoke", sm)
317
                smoke.Enabled = false
318
                smoke.Color = Color3.new(255/255, 170/255, 0/255)
319
                smoke.RiseVelocity = 15
320
                smoke.Size = 1
321
                w3 = Instance.new("Weld", sm)
322
                w3.Part0 = sm
323
                w3.Part1 = base
324
                w3.C0 = CFrame.new(0, -2.5, 0) * CFrame.Angles(math.pi, 0, 0)
325
                
326
                p1 = Instance.new("Part", c)
327
                p1.FormFactor = "Custom"
328
                p1.BrickColor = BrickColor.Gray()
329
                p1.Size = Vector3.new(0.8, 1.7, 0.8)
330
                p1:BreakJoints()
331
                Instance.new("CylinderMesh", p1)
332
                w4 = Instance.new("Weld", p1)
333
                w4.Part0 = p1
334
                w4.Part1 = base
335
                w4.C0 = CFrame.new(0, 0.5, 0.3)
336
                
337
                p2 = Instance.new("Part", c)
338
                p2.FormFactor = "Custom"
339
                p2.BrickColor = BrickColor.Black()
340
                p2.Size = Vector3.new(0.4, 1, 0.4)
341
                p2:BreakJoints()
342
                p2.BottomSurface = 0
343
                p2.TopSurface = 0
344
                w5 = Instance.new("Weld", p2)
345
                w5.Part0 = p2
346
                w5.Part1 = base
347
                w5.C0 = CFrame.new(0, 0, -2.5) * CFrame.Angles(math.pi/2, 0, 0)
348
                
349
                
350
                p3 = Instance.new("Part", c)
351
                p3.FormFactor = "Custom"
352
                p3.BrickColor = BrickColor.Black()
353
                p3.Size = Vector3.new(0.3, 1, 0.2)
354
                p3:BreakJoints()
355
                p3.BottomSurface = 0
356
                p3.TopSurface = 0
357
                w6 = Instance.new("Weld", p3)
358
                w6.Part0 = p3
359
                w6.Part1 = base
360
                w6.C0 = CFrame.new(0, -1, -0.3) * CFrame.Angles(math.pi/6, 0, 0)
361
                
362
                
363
                                p4 = Instance.new("Part", c)
364
                p4.FormFactor = "Custom"
365
                p4.BrickColor = BrickColor.Black()
366
                p4.Size = Vector3.new(0.3, 1, 0.2)
367
                p4:BreakJoints()
368
                p4.BottomSurface = 0
369
                p4.TopSurface = 0
370
                w7 = Instance.new("Weld", p4)
371
                w7.Part0 = p4
372
                w7.Part1 = base
373
                w7.C0 = CFrame.new(0, -0.1, -1.5) * CFrame.Angles(math.pi/2, 0, 0)
374
                
375
                
376
                
377
                
378
                
379
                
380
                
381
                
382
                fiaar = Instance.new("Fire", sm)
383
                fiaar.Size = 1
384
				fiaar.Heat = 200
385
                fiaar.Enabled = false
386
387
388
389
390
391
                
392
                
393
                mouse.KeyDown:connect(function(key)
394
                        if key == "e" then
395
                                if debounceair then return end
396
                                if firee then return end
397
                                debounceair = true
398
                                airblast()
399
                                end
400
						if string.byte(key) == 48 then
401
							c.Humanoid.WalkSpeed = 28
402
						end
403
						
404
						
405
                end)
406
				mouse.KeyUp:connect(function(key)
407
					if string.byte(key) == 48 then
408
					c.Humanoid.WalkSpeed = 16
409
					end
410
					end)
411
                
412
                
413
                mouse.Button1Down:connect(function()
414
                        if firee == false then
415
                        firee = true
416
                        end
417
                end)
418
                
419
                mouse.Button1Up:connect(function()
420
                        if firee == true then
421
                        firee = false
422
                        end
423
                end)
424
                
425
end)
426
tool.Deselected:connect(function(mouse)
427
                ballon1:Destroy()
428
                ballon2:Destroy()
429
                base:Destroy()
430
                sm:Destroy()
431
                fire:Destroy()
432
                neck.C0 = neck.C0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-60)) wait(0.01)
433
                bg2:Destroy()
434
                p1:Destroy()
435
                p2:Destroy()
436
                p3:Destroy()
437
                p4:Destroy()
438
				                        rs.Part0 = c.Torso
439
                rs.Part1 = ra
440
                ls.Part0 = c.Torso
441
                ls.Part1 = la
442
				                rweld:Destroy()
443
                lweld:Destroy()
444
				
445
end)
446
function ahh(hit)
447-
     if hit.Parent.Name == game.Players.von12222222.Name then  return  end
447+
     if hit.Parent.Name == game.Players.hsdfsfsdfds.Name then  return  end
448
     if hit ~= nil and hit.Parent ~= nil then
449
	
450
     if hit.Parent:findFirstChild("Humanoid") ~= nil then
451
			coroutine.wrap(function()
452
               if not damagelist[hit.Parent.Name] then
453
					if hit.Parent.Humanoid.Health ~= 0 then
454
                    damagelist[hit.Parent.Name] = {humanoid = hit.Parent.Humanoid, time = time_until_extinguish}
455
                    for i,v in pairs(hit.Parent:children()) do
456
                        if v:IsA("Part") then
457
                             Instance.new("Fire", v)
458
                         end
459
                     end
460
					end
461
                 else
462
                      damagelist[hit.Parent.Name].time = time_until_extinguish
463
                 end
464
			end)()
465
         end
466
	end
467
end
468
                                        
469
coroutine.wrap(function()
470
    while wait() do
471
        for i,damageobject in pairs(damagelist) do
472
            damageobject.humanoid.Health = damageobject.humanoid.Health - damage
473
            damageobject.time = damageobject.time - 1
474
            
475
            if damageobject.time < 1 then
476
                if damageobject.humanoid then
477
                 for _,n in pairs(damageobject.humanoid.Parent:children()) do
478
                       if n:IsA("Part") and n.Parent:IsA("Model") ~= nil and n:findFirstChild("Fire") ~= nil then
479
                               n.Fire:Destroy()
480
                       end
481
                  end
482
                  end
483
                  damagelist[i] = nil
484
            end
485
        end
486
      if not debounceair then
487
             if firee then
488
                    --coroutine.wrap(function()
489
						if base ~= nil then
490
                            smoke.Enabled = true
491
                             pl7.Enabled = true
492
                             fiaar.Enabled = true
493
                             fire.Parent = Workspace
494
                            sound:play()
495
                             
496
                             fire.Touched:connect(ahh)
497
						end
498
                             
499
                        --end)()
500
                else
501
                        if base ~= nil then
502
                        smoke.Enabled = false
503
                        fire.Parent = nil
504
                        pl7.Enabled = false
505
                        fiaar.Enabled = false
506
                        sound:stop()
507
                        end
508
                end
509
			                end
510
			end
511
                                                                               
512
                                        end)()
513
                                        
514
                                        
515
                                        function airblast()
516
												if hatchetequipped then return end
517
												if air ~= nil then return end
518
                                                air = Instance.new("Part")
519
                                                air.FormFactor = "Custom"
520
                                                air.Size = Vector3.new(8, 3, 8)
521
                                                air.Transparency = 0.8
522
                                                air:BreakJoints()
523
                                                air.BottomSurface = 0
524
                                                air.TopSurface = 0
525
												air.CanCollide = false
526
                                                air.Anchored = true
527
                                                air.Parent = Workspace
528
												coroutine.wrap(function()
529
												wait(0.15)
530
												air.CanCollide = true
531
												end)()
532
                                                
533
                                                                                coroutine.wrap(function()        
534
                                for i = 0, 40, 1.2 do
535
                                        air.CFrame = base.CFrame * CFrame.new(0, -i, 0)
536
                                        RunService.Stepped:wait(0.0000001)
537
                                end
538
                                end)()
539
								coroutine.wrap(function()
540
                                   while air ~= nil do
541
									for _, model in pairs(workspace:children()) do     
542
                           				if model:IsA("Model") and model:findFirstChild("Humanoid") ~= nil and model.Name ~= p.Name then
543
										if (model.Torso.CFrame.Position - air.CFrame.Position).magnitude < 3 then
544
										model.Torso.CFrame = base.CFrame * CFrame.new(0, 0, 30)
545
										end
546
										end
547
									end
548
									wait()
549
								end
550
								end)()
551
								wait(2)
552
								air:Destroy()
553
								
554
end