View difference between Paste ID: rDUekrGh and 7wJA4yN8
SHOW: | | - or go back to the newest paste.
1-
-- This script has been converted to FE by Fish
1+
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
do
4
	print("FE Compatibility code by Mokiros | Translated to FE by Fish")
5
	script.Parent = Player.Character
6
7
	--RemoteEvent for communicating
8
	local Event = Instance.new("RemoteEvent")
9
	Event.Name = "UserInput_Event"
10
11
	--Fake event to make stuff like Mouse.KeyDown work
12
	local function fakeEvent()
13
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14
		t.connect = t.Connect
15
		return t
16
	end
17
18
	--Creating fake input objects with fake variables
19
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23
	end}
24
	--Merged 2 functions into one by checking amount of arguments
25
	CAS.UnbindAction = CAS.BindAction
26
27
	--This function will trigger the events that have been :Connect()'ed
28
	local function te(self,ev,...)
29
		local t = m[ev]
30
		if t and t._fakeEvent and t.Function then
31
			t.Function(...)
32
		end
33
	end
34
	m.TrigEvent = te
35
	UIS.TrigEvent = te
36
37
	Event.OnServerEvent:Connect(function(plr,io)
38
	    if plr~=Player then return end
39
		if io.isMouse then
40
			m.Target = io.Target
41
			m.Hit = io.Hit
42
		else
43
			local b = io.UserInputState == Enum.UserInputState.Begin
44
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46
			end
47
			for _,t in pairs(CAS.Actions) do
48
				for _,k in pairs(t.Keys) do
49
					if k==io.KeyCode then
50
						t.Function(t.Name,io.UserInputState,io)
51
					end
52
				end
53
			end
54
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
55
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
56
	    end
57
	end)
58
	Event.Parent = NLS([==[
59
	local Player = game:GetService("Players").LocalPlayer
60
	local Event = script:WaitForChild("UserInput_Event")
61
62
	local UIS = game:GetService("UserInputService")
63
	local input = function(io,a)
64
		if a then return end
65
		--Since InputObject is a client-side instance, we create and pass table instead
66
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
67
	end
68
	UIS.InputBegan:Connect(input)
69
	UIS.InputEnded:Connect(input)
70
71
	local Mouse = Player:GetMouse()
72
	local h,t
73
	--Give the server mouse data 30 times every second, but only if the values changed
74
	--If player is not moving their mouse, client won't fire events
75
	while wait(1/30) do
76
		if h~=Mouse.Hit or t~=Mouse.Target then
77
			h,t=Mouse.Hit,Mouse.Target
78
			Event:FireServer({isMouse=true,Target=t,Hit=h})
79
		end
80
	end]==],Player.Character)
81
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
82
end
83
84
85
86
87
88
89
local plr = owner
90
local char = plr.Character
91
local torso = char.Torso
92
local rs = torso["Right Shoulder"]
93
local ls = torso["Left Shoulder"]
94
local rh = torso["Right Hip"]
95
local lh = torso["Left Hip"]
96
local rj = char.HumanoidRootPart.RootJoint
97
local neck = torso.Neck
98
local animpose = "Idle"
99
local attacking = false
100
local cananim = true
101
local rage = false
102
local shield
103
local sprint = false
104
local canrage = true
105
local legs = true
106
local bc = char:WaitForChild("Body Colors")
107
local multiplier = 1
108
local lac = char["Body Colors"].LeftArmColor
109
local rac = char["Body Colors"].RightArmColor
110
local rlc = char["Body Colors"].RightArmColor
111
local llc = char["Body Colors"].LeftLegColor
112
local hc = char["Body Colors"].HeadColor
113
local tc = char["Body Colors"].TorsoColor
114
local humanoid = char:FindFirstChildOfClass("Humanoid")
115
local huge = Vector3.new(math.huge, math.huge, math.huge)
116
local mobs = Instance.new("Sound", char)
117
mobs.SoundId = "rbxassetid://245913129"
118
mobs.Looped = true
119
mobs.Volume = 3
120
humanoid.MaxHealth = math.huge
121
wait()
122
humanoid.Health = math.huge
123
humanoid.Name = "BOOM BOOM BOOOMMMM!"
124
mobs:Play()
125
if char:FindFirstChild("Animate") then
126
  char.Animate:Destroy()
127
end
128
if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then
129
  char:FindFirstChildOfClass("Humanoid").Animator:Destroy()
130
end
131
function legsonly()
132
  spawn(function()
133
    for i = 0, 10 do
134
      wait(0.001)
135
      if attacking then
136
        break
137
      end
138
    end
139
    if not attacking then
140
      legs = false
141
    end
142
  end)
143
end
144
function swait(t)
145
  if t == nil or t == 0 then
146
    game:service("RunService").Stepped:wait(0)
147
  else
148
    for i = 0, t do
149
      game:service("RunService").Stepped:wait(0)
150
    end
151
  end
152
end
153
function KICK(PLAYER)
154
  spawn(function()
155
    local function SKICK()
156
      if PLAYER.Character and PLAYER.Character:FindFirstChild("HumanoidRootPart") and PLAYER.Character:FindFirstChild("Torso") then
157
        PLAYER.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
158
        do
159
          local SP = Instance.new("SkateboardPlatform", PLAYER.Character)
160
          SP.Position = PLAYER.Character.HumanoidRootPart.Position
161
          SP.Transparency = 1
162
          spawn(function()
163
            repeat
164
              swait()
165
              if PLAYER.Character and PLAYER.Character:FindFirstChild("HumanoidRootPart") then
166
                SP.Position = PLAYER.Character.HumanoidRootPart.Position
167
              end
168
            until not game:GetService("Players"):FindFirstChild(PLAYER.Name)
169
          end)
170
          PLAYER.Character.Torso.Anchored = true
171
        end
172
      end
173
    end
174
    spawn(function()
175
      repeat
176
        wait()
177
        if PLAYER ~= nil then
178
          SKICK()
179
        end
180
      until not game:GetService("Players"):FindFirstChild(PLAYER.Name)
181
      if not game:GetService("Players"):FindFirstChild(PLAYER.Name) then
182
        print("REMOVED " .. PLAYER.Name)
183
      end
184
    end)
185
  end)
186
end
187
function hurt(hit, dmg)
188
  if hit.Parent then
189
    if hit.Parent:IsA("LocalScript") then
190
      print("bocks!11")
191
      hit.Parent:Destroy()
192
    end
193
    local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
194
    if hum and hum.Parent.Name ~= plr.Name then
195
      if dmg == "Kill" or hum.Health > 100000 then
196
        hit.Parent:BreakJoints()
197
        return true
198
      else
199
        if math.random(0, 100) == 50 then
200
          hum.Health = hum.Health - dmg * multiplier * 2.5
201
        else
202
          hum.Health = hum.Health - dmg * multiplier
203
        end
204
        return true
205
      end
206
    end
207
  end
208
end
209
function soundeffect(id, volume, speed, parent)
210
  spawn(function()
211
    local s = Instance.new("Sound")
212
    s.SoundId = id
213
    s.Volume = volume
214
    s.PlaybackSpeed = speed
215
    s.Parent = parent
216
    s:Play()
217
    repeat
218
      wait()
219
    until not s.Playing
220
    s:Destroy()
221
  end)
222
end
223
function gethum(obj)
224
  if obj.Parent and obj.Parent:FindFirstChild("Humanoid") and obj.Parent.Name ~= plr.Name then
225
    return obj.Parent:FindFirstChildOfClass("Humanoid")
226
  end
227
end
228
function smooth(obj)
229
  local sides = {
230
    "Left",
231
    "Right",
232
    "Top",
233
    "Bottom",
234
    "Front",
235
    "Back"
236
  }
237
  for i, v in pairs(sides) do
238
    obj[v .. "Surface"] = "SmoothNoOutlines"
239
  end
240
end
241
function fade(obj, dest, grow)
242
  spawn(function()
243
    local oldcf = obj.CFrame
244
    for i = 0, 10 do
245
      if grow then
246
        obj.Size = obj.Size + Vector3.new(1, 1, 1)
247
        obj.CFrame = oldcf
248
      end
249
      obj.Transparency = obj.Transparency + 0.1
250
      swait()
251
    end
252
    if dest then
253
      obj:Destroy()
254
    end
255
  end)
256
end
257
local keyamount = 0
258
mouse.KeyDown:connect(function(key)
259
  if key == "w" or key == "a" or key == "s" or key == "d" then
260
    keyamount = keyamount + 1
261
    if animpose ~= "Falling" then
262
      if keyamount > 3 then
263
        keyamount = 0
264
      end
265
      animpose = "Walking"
266
    end
267
  end
268
end)
269
mouse.KeyUp:connect(function(key)
270
  if key == "w" or key == "a" or key == "s" or key == "d" then
271
    keyamount = keyamount - 1
272
    if keyamount < 0 then
273
      keyamount = 0
274
    end
275
    if keyamount == 0 then
276
      animpose = "Idle"
277
    end
278
  end
279
end)
280
local gun = Instance.new("Part")
281
gun.Size = Vector3.new(3.175, 1.916, 0.465)
282
gun.CanCollide = false
283
local m = Instance.new("SpecialMesh", gun)
284
m.MeshId = "rbxassetid://468351345"
285
m.TextureId = "rbxassetid://468351348"
286
m.Scale = Vector3.new(0.1, 0.1, 0.1)
287
gun.CFrame = char.Torso.CFrame
288
gun.Parent = char
289
local gunw = Instance.new("Weld", gun)
290
gunw.Part0 = gun
291
gunw.Part1 = char["Right Arm"]
292
gunw.C0 = CFrame.new(-1.7838248, -0.410839319, 0, -0.0871557146, -0.996194541, 0, 0.996194541, -0.0871557146, 0, 0, 0, 1)
293
mouse.Button1Down:connect(function()
294
  local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
295
  local mag = (gun.Position - mouse.Hit.p).magnitude
296
  local p = Instance.new("Part")
297
  p.CanCollide = false
298
  p.Anchored = false
299
  p.BrickColor = BrickColor.new("Institutional white")
300
  p.Size = Vector3.new(0.2, 0.2, mag)
301
  smooth(p)
302
  p.Material = "Neon"
303
  p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
304
  local m = Instance.new("SpecialMesh", p)
305
  m.MeshType = "Brick"
306
  p.Parent = workspace
307
  p.Touched:connect(function(hit)
308
    hurt(hit, "Kill")
309
    if hit.Size.X > 100 and 100 < hit.Size.Z and hit.Size.Y < 3 then
310
    elseif hit.Parent and hit.Parent.Name ~= plr.Name then
311
      fade(hit, true)
312
    end
313
  end)
314
  local bp = Instance.new("BodyPosition", p)
315
  bp.MaxForce = huge
316
  bp.Position = p.Position
317
  local saved = p.CFrame
318
  for i = 1, 10 do
319
    p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
320
    p.CFrame = saved
321
    p.Velocity = Vector3.new(0, 0, 100)
322
    p.Transparency = p.Transparency + 0.1
323
    wait()
324
  end
325
  p:Destroy()
326
end)
327
mouse.KeyDown:connect(function(key)
328
  if key == "l" then
329
    function a(b)
330
      pcall(function()
331
        for i, v in pairs(b:children()) do
332
          pcall(function()
333
            if v:IsA("BasePart") and v.Parent and v.Parent.Name == "WafflesAreVeryGood" and v.Anchored then
334
              v.Anchored = false
335
            end
336
            if v:IsA("Sound") and v.Parent.Name ~= "WafflesAreVeryGood" then
337
              v:Destroy()
338
            end
339
            if v:IsA("ParticleEmitter") then
340
              v:Destroy()
341
            end
342
            a(v)
343
          end)
344
        end
345
      end)
346
    end
347
    a(game)
348
  end
349
  if key == "q" then
350
    local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
351
    local mag = (gun.Position - mouse.Hit.p).magnitude
352
    local p = Instance.new("Part")
353
    p.CanCollide = false
354
    p.Anchored = false
355
    p.BrickColor = BrickColor.new("Really red")
356
    p.Size = Vector3.new(0.2, 0.2, mag)
357
    smooth(p)
358
    p.Material = "Neon"
359
    p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
360
    local m = Instance.new("SpecialMesh", p)
361
    m.MeshType = "Brick"
362
    p.Parent = workspace
363
    p.Touched:connect(function(hit)
364
      if gethum(hit) then
365
        for i, v in pairs(hit.Parent:children()) do
366
          if v:IsA("Model") then
367
            v:BreakJoints()
368
          end
369
          local ok = false
370
          for i, e in pairs({
371
            "Right Arm",
372
            "Left Arm",
373
            "Right Leg",
374
            "Left Leg",
375
            "Head",
376
            "Torso",
377
            "HumanoidRootPart"
378
          }) do
379
            if v.Name == e then
380
              ok = true
381
            end
382
          end
383
          if v:IsA("BasePart") and not ok then
384
            fade(v, true)
385
          end
386
        end
387
      end
388
      if hit:FindFirstChildOfClass("TouchTransmitter") then
389
        hit:FindFirstChildOfClass("TouchTransmitter"):Destroy()
390
      end
391
    end)
392
    local bp = Instance.new("BodyPosition", p)
393
    bp.MaxForce = huge
394
    bp.Position = p.Position
395
    local saved = p.CFrame
396
    for i = 1, 10 do
397
      p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
398
      p.CFrame = saved
399
      p.Velocity = Vector3.new(0, 0, 100)
400
      p.Transparency = p.Transparency + 0.1
401
      wait()
402
    end
403
    p:Destroy()
404
  end
405
  if key == "e" then
406
    local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
407
    local mag = (gun.Position - mouse.Hit.p).magnitude
408
    local p = Instance.new("Part")
409
    p.CanCollide = false
410
    p.Anchored = false
411
    p.BrickColor = BrickColor.new("New Yeller")
412
    p.Size = Vector3.new(0.2, 0.2, mag)
413
    smooth(p)
414
    p.Material = "Neon"
415
    p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
416
    local m = Instance.new("SpecialMesh", p)
417
    m.MeshType = "Brick"
418
    p.Parent = workspace
419
    p.Touched:connect(function(hit)
420
      if gethum(hit) then
421
        local target = game.Players:FindFirstChild(hit.Parent.Name)
422
        if target then
423
          KICK(target)
424
        end
425
      end
426
    end)
427
    local bp = Instance.new("BodyPosition", p)
428
    bp.MaxForce = huge
429
    bp.Position = p.Position
430
    local saved = p.CFrame
431
    for i = 1, 10 do
432
      p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
433
      p.CFrame = saved
434
      p.Velocity = Vector3.new(0, 0, 100)
435
      p.Transparency = p.Transparency + 0.1
436
      wait()
437
    end
438
    p:Destroy()
439
  end
440
  if key == "r" then
441
    local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
442
    local mag = (gun.Position - mouse.Hit.p).magnitude
443
    local p = Instance.new("Part")
444
    p.CanCollide = false
445
    p.Anchored = false
446
    p.BrickColor = BrickColor.new("Lime green")
447
    p.Size = Vector3.new(0.2, 0.2, mag)
448
    smooth(p)
449
    p.Material = "Neon"
450
    p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
451
    local m = Instance.new("SpecialMesh", p)
452
    m.MeshType = "Brick"
453
    p.Parent = workspace
454
    p.Touched:connect(function(hit)
455
      local hum = gethum(hit)
456
      if hum then
457
        hum.Health = hum.MaxHealth
458
      end
459
    end)
460
    local bp = Instance.new("BodyPosition", p)
461
    bp.MaxForce = huge
462
    bp.Position = p.Position
463
    local saved = p.CFrame
464
    for i = 1, 10 do
465
      p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
466
      p.CFrame = saved
467
      p.Velocity = Vector3.new(0, 0, 100)
468
      p.Transparency = p.Transparency + 0.1
469
      wait()
470
    end
471
    p:Destroy()
472
  end
473
end)
474
game:GetService("RunService").Stepped:connect(function()
475
  local x, z
476
  local dir = CFrame.new(char.HumanoidRootPart.Position, mouse.Hit.p).lookVector
477
  x = dir.X
478
  z = dir.Z
479
  local cf = CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position + Vector3.new(x, 0, z))
480
  char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame:Lerp(cf, 0.5)
481
  humanoid.AutoRotate = false
482
end)
483
while wait() do
484
  if animpose == "Walking" and cananim and legs then
485
    for i = 0, 0.7, 0.1 do
486
      if animpose == "Walking" and cananim and legs then
487
        ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
488
        rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
489
        neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
490
        rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
491
        lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0219629817, 0.02712203, -0.999390841, -0.628937364, 0.776673257, 0.0348994955, 0.777146697, 0.6293208, 0), 0.4)
492
        rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.0238014236, -0.0255239103, 0.999390841, -0.681583524, 0.73090899, 0.0348994955, -0.731354535, -0.681998909, 0), 0.4)
493
        wait()
494
      else
495
        break
496
      end
497
    end
498
    for i = 0, 0.7, 0.1 do
499
      if animpose == "Walking" and cananim and legs then
500
        ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
501
        rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
502
        neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
503
        rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
504
        lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.0205134545, 0.0282343514, -0.999390841, 0.587428331, 0.808525503, 0.0348994955, 0.809018135, -0.587786257, 0), 0.4)
505
        rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0224330258, -0.0267346334, 0.999390841, 0.642397523, 0.765579402, 0.0348994955, -0.76604569, 0.642788768, 0), 0.4)
506
        wait()
507
      else
508
        break
509
      end
510
    end
511
  end
512
  if animpose == "Idle" and cananim and legs then
513
    ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
514
    rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
515
    neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
516
    rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
517
    lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0), 0.5)
518
    rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0523359627, 0.998629689, 0, 0.998629689, 0.0523359627, -1, 0, 0), 0.5)
519
  end
520
end