View difference between Paste ID: gYTCFLrt and Dmxyret1
SHOW: | | - or go back to the newest paste.
1-
--https://github.com/Mokiros/roblox-FE-compatibility
1+
local hopperbintwo = Instance.new("HopperBin")
2-
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2+
hopperbintwo.BinType = "Hammer"
3-
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3+
hopperbintwo.Parent = game.Players.THECREATOR20029.Backpack
4-
local RealPlayer = Player
4+
5-
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
5+
6
gui1.Parent= game.Workspace.THECREATOR20029.Head
7
gui1.Adornee= game.Workspace.THECREATOR20029.Head
8-
gui1.Parent= game.Players.LocalPlayer.Character.Head
8+
gui1.Size=UDim2.new(100,100,100,100)
9-
gui1.Adornee= game.Players.LocalPlayer.Character.Head
9+
10-
gui1.Size=UDim2.new(30,25,30,30)
10+
gui1.AlwaysOnTop = true
11
text1=Instance.new("ImageLabel")
12-
gui1.AlwaysOnTop = false
12+
text1.Image = "http://www.roblox.com/asset/?id=314412658" --[[Face Image Source (If you wish to change the face to a different decal put it in there]]
13
text1.Size=UDim2.new(1,0,1,0)
14-
text1.Image = "http://www.roblox.com/asset/?id=540371958" --[[Face Image Source (If you wish to change the face to a different decal put it in there]]
14+
15
text1.BackgroundTransparency = 1
16
text1.Parent=gui1
17
18
--{{Made by Strazos}}--
19
20-
--Ugh,BOOGIE BOMB YESH.FORTNITE FUCK YEAH
20+
21-
function sandbox(var,func)
21+
22-
	local env = getfenv(func)
22+
23-
	local newenv = setmetatable({},{
23+
24-
		__index = function(self,k)
24+
25-
			if k=="script" then
25+
26-
				return var
26+
27-
			else
27+
28-
				return env[k]
28+
29
local weld = Instance.new("Weld",torso)
30-
		end,
30+
31-
	})
31+
32-
	setfenv(func,newenv)
32+
33-
	return func
33+
34
lleg.Transparency = 1
35-
cors = {}
35+
36-
mas = Instance.new("Model",game:GetService("Lighting"))
36+
37-
Tool0 = Instance.new("Tool")
37+
38-
Part1 = Instance.new("Part")
38+
39-
SpecialMesh2 = Instance.new("SpecialMesh")
39+
40-
Part3 = Instance.new("Part")
40+
41-
BillboardGui4 = Instance.new("BillboardGui")
41+
42-
Script5 = Instance.new("Script")
42+
43-
ImageLabel6 = Instance.new("ImageLabel")
43+
44-
CylinderMesh7 = Instance.new("CylinderMesh")
44+
45-
Part8 = Instance.new("Part")
45+
46-
Weld9 = Instance.new("Weld")
46+
47-
Weld10 = Instance.new("Weld")
47+
48-
Weld11 = Instance.new("Weld")
48+
49-
BlockMesh12 = Instance.new("BlockMesh")
49+
50-
IntValue13 = Instance.new("IntValue")
50+
51-
IntValue14 = Instance.new("IntValue")
51+
52-
StringValue15 = Instance.new("StringValue")
52+
53-
BoolValue16 = Instance.new("BoolValue")
53+
54-
Script17 = Instance.new("Script")
54+
55-
LocalScript18 = Instance.new("LocalScript")
55+
56-
SpecialMesh19 = Instance.new("SpecialMesh")
56+
57-
SpecialMesh20 = Instance.new("SpecialMesh")
57+
58-
LocalScript21 = Instance.new("LocalScript")
58+
59-
LocalScript22 = Instance.new("LocalScript")
59+
60-
LocalScript23 = Instance.new("LocalScript")
60+
61-
LocalScript24 = Instance.new("LocalScript")
61+
62-
ScreenGui25 = Instance.new("ScreenGui")
62+
63-
Frame26 = Instance.new("Frame")
63+
64-
TextButton27 = Instance.new("TextButton")
64+
65-
TextButton28 = Instance.new("TextButton")
65+
66-
TextButton29 = Instance.new("TextButton")
66+
67-
TextButton30 = Instance.new("TextButton")
67+
68-
Script31 = Instance.new("Script")
68+
69-
LocalScript32 = Instance.new("LocalScript")
69+
70-
Sound33 = Instance.new("Sound")
70+
71-
Sound34 = Instance.new("Sound")
71+
72-
StringValue35 = Instance.new("StringValue")
72+
73-
Tool0.Name = "Tactical Shotgun"
73+
74-
Tool0.Parent = mas
74+
75-
Part1.Parent = Tool0
75+
76-
Part1.BrickColor = BrickColor.new("Bright bluish green")
76+
77-
Part1.Anchored = true
77+
78-
Part1.FormFactor = Enum.FormFactor.Custom
78+
79-
Part1.Size = Vector3.new(0.510000467, 1.18000245, 1.34999704)
79+
80-
Part1.CFrame = CFrame.new(6.70000076, 0.590013027, -9.69999599, 1, 0, 0, 0, 1, 0, 0, 0, 1)
80+
81-
Part1.Color = Color3.new(0, 0.560784, 0.611765)
81+
82-
Part1.Position = Vector3.new(6.70000076, 0.590013027, -9.69999599)
82+
83-
Part1.Color = Color3.new(0, 0.560784, 0.611765)
83+
local Music = SFX(281194387)
84-
SpecialMesh2.Parent = Part1
84+
85-
SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1"
85+
86-
SpecialMesh2.Scale = Vector3.new(0.25, 0.25, 0.25)
86+
87-
SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=126534866"
87+
88-
SpecialMesh2.MeshType = Enum.MeshType.FileMesh
88+
89-
SpecialMesh2.Scale = Vector3.new(0.25, 0.25, 0.25)
89+
90-
Part3.Name = "Barrel"
90+
91-
Part3.Parent = Tool0
91+
92-
Part3.BrickColor = BrickColor.new("Really black")
92+
93-
Part3.Transparency = 1
93+
94-
Part3.Rotation = Vector3.new(-90, 0, 0)
94+
95-
Part3.Anchored = true
95+
96-
Part3.FormFactor = Enum.FormFactor.Custom
96+
97-
Part3.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
97+
98-
Part3.CFrame = CFrame.new(6.79500008, 0.98001498, -10.4250021, 1, 0, -0, 0, 0, 1, 0, -1, 0)
98+
99-
Part3.BottomSurface = Enum.SurfaceType.Smooth
99+
100-
Part3.TopSurface = Enum.SurfaceType.Smooth
100+
101-
Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
101+
102-
Part3.Position = Vector3.new(6.79500008, 0.98001498, -10.4250021)
102+
103-
Part3.Orientation = Vector3.new(-90, 0, 0)
103+
104-
Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
104+
105-
BillboardGui4.Name = "Light"
105+
106-
BillboardGui4.Parent = Part3
106+
107-
BillboardGui4.Size = UDim2.new(5.29999995, 0, 5.29999995, 0)
107+
108-
BillboardGui4.Active = true
108+
109-
BillboardGui4.Adornee = Part3
109+
110-
Script5.Parent = BillboardGui4
110+
111-
table.insert(cors,sandbox(Script5,function()
111+
112-
script.Parent.Adornee = script.Parent.Parent
112+
113-
end))
113+
114-
ImageLabel6.Name = "Light"
114+
115-
ImageLabel6.Parent = BillboardGui4
115+
116-
ImageLabel6.Transparency = 1
116+
117-
ImageLabel6.Size = UDim2.new(1, 0, 1, 0)
117+
118-
ImageLabel6.Visible = false
118+
119-
ImageLabel6.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
119+
120-
ImageLabel6.BackgroundTransparency = 1
120+
121-
ImageLabel6.Image = "http://www.roblox.com/asset/?id=42416376"
121+
122
 
123
local ScreenGui = Instance.new("ScreenGui")
124
local TextButton = Instance.new("TextButton")
125
 
126
-- Properties
127-
CylinderMesh7.Parent = Part3
127+
128-
CylinderMesh7.Scale = Vector3.new(3.9375, 3.0625, 3.62499994)
128+
129-
CylinderMesh7.Scale = Vector3.new(3.9375, 3.0625, 3.62499994)
129+
130-
Part8.Name = "Handle"
130+
131-
Part8.Parent = Tool0
131+
TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
132-
Part8.BrickColor = BrickColor.new("Black")
132+
133-
Part8.Transparency = 1
133+
134-
Part8.Rotation = Vector3.new(0, 15, 0)
134+
135-
Part8.Anchored = true
135+
136-
Part8.FormFactor = Enum.FormFactor.Custom
136+
137-
Part8.Size = Vector3.new(0.800000012, 0.800000012, 0.800000012)
137+
138-
Part8.CFrame = CFrame.new(6.78499985, 0.468012989, -9.25, 0.965925634, -1.62808846e-07, 0.25881961, 1.62807055e-07, 1, 2.14409219e-08, -0.25881961, 2.14273292e-08, 0.965925634)
138+
139-
Part8.BottomSurface = Enum.SurfaceType.Smooth
139+
140-
Part8.TopSurface = Enum.SurfaceType.Smooth
140+
141-
Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
141+
142-
Part8.Position = Vector3.new(6.78499985, 0.468012989, -9.25)
142+
143-
Part8.Orientation = Vector3.new(0, 15, 0)
143+
144-
Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
144+
145-
Weld9.Parent = Part8
145+
146-
Weld9.C0 = CFrame.new(0, 0, 0, -1.00000191, -1.5067078e-06, -9.84804558e-08, -1.01587557e-06, 0.999997854, -2.52425416e-05, -8.14032717e-07, -2.34245799e-05, -0.999998748)
146+
147-
Weld9.C1 = CFrame.new(0, 0, 0, -1.00000191, -1.5067078e-06, -9.84804558e-08, -1.01587557e-06, 0.999997854, -2.52425416e-05, -8.14032717e-07, -2.34245799e-05, -0.999998748)
147+
148-
Weld9.Part0 = Part8
148+
149-
Weld9.Part1 = Part8
149+
150-
Weld10.Parent = Part8
150+
151-
Weld10.C0 = CFrame.new(0, 0, 0, -1, -1.26128168e-06, 3.57787826e-07, -1.26129044e-06, 0.99999994, -2.43186951e-05, -3.57757187e-07, -2.42888927e-05, -0.99999994)
151+
152-
Weld10.C1 = CFrame.new(0, 0, 0, -1, -1.26128168e-06, 3.57787826e-07, -1.26129044e-06, 0.99999994, -2.43186951e-05, -3.57757187e-07, -2.42888927e-05, -0.99999994)
152+
153-
Weld10.Part0 = Part8
153+
154-
Weld10.Part1 = Part8
154+
155-
Weld11.Parent = Part8
155+
156-
Weld11.C0 = CFrame.new(0, 0, 0, -0.000490181032, 0.999999642, 7.29662133e-07, 0.999998808, 0.000490319042, -0.000502735376, -0.00050124526, 4.34723916e-07, -0.999996543)
156+
157-
Weld11.C1 = CFrame.new(0, 0, 0, -0.000490181032, 0.999999642, 7.29662133e-07, 0.999998808, 0.000490319042, -0.000502735376, -0.00050124526, 4.34723916e-07, -0.999996543)
157+
--This is a localscript; you will need to have access to using scripts wherever you want this
158-
Weld11.Part0 = Part8
158+
p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
159-
Weld11.Part1 = Part8
159+
160-
BlockMesh12.Parent = Part8
160+
161-
BlockMesh12.Offset = Vector3.new(0, 0.00104166672, 0)
161+
162-
BlockMesh12.Scale = Vector3.new(0.25, 0.0416666679, 0.0416666679)
162+
163-
BlockMesh12.Scale = Vector3.new(0.25, 0.0416666679, 0.0416666679)
163+
164-
IntValue13.Name = "Ammo"
164+
165-
IntValue13.Parent = Tool0
165+
166-
IntValue13.Value = 999
166+
167-
IntValue14.Name = "MaxAmmo"
167+
168-
IntValue14.Parent = Tool0
168+
169-
IntValue14.Value = 999
169+
170-
StringValue15.Name = "StringValue"
170+
171-
StringValue15.Parent = Tool0
171+
172-
BoolValue16.Name = "VisibleB"
172+
173-
BoolValue16.Parent = Tool0
173+
174-
Script17.Name = "WeldArm"
174+
175-
Script17.Parent = Tool0
175+
176-
table.insert(cors,sandbox(Script17,function()
176+
177-
Tool = script.Parent
177+
178
local bv = Instance.new("BodyVelocity", torso) 
179
bv.velocity = Vector3.new(0,0.1,0) 
180-
local arms = nil
180+
181-
local torso = nil
181+
182-
local weld33 = nil -- right arm
182+
183-
local weld55 = nil -- left arm
183+
184-
local welds = {}
184+
185
if speed > maxspeed then 
186
speed = maxspeed 
187
end 
188
elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then 
189-
colors = {26,}
189+
190
if speed < 0 then 
191-
function Equip(mouse)
191+
192-
wait(0.01)
192+
193-
arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
193+
194-
torso = Tool.Parent:FindFirstChild("Torso")
194+
195-
if arms ~= nil and torso ~= nil then
195+
196-
local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
196+
197-
if sh ~= nil then
197+
198-
local yes = true
198+
199-
if yes then
199+
200-
yes = false
200+
201-
sh[1].Part1 = nil
201+
202-
sh[2].Part1 = nil
202+
203-
local weld1 = Instance.new("Weld") -- left arm
203+
204-
weld55 = weld1
204+
205-
weld1.Part0 = torso
205+
206-
weld1.Parent = torso
206+
207-
weld1.Part1 = arms[1]
207+
208-
weld1.C1 = CFrame.new(-0.35, 0.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
208+
209-
welds[1] = weld1
209+
210-
local weld2 = Instance.new("Weld") -- right arm
210+
211-
weld33 = weld2
211+
212-
weld2.Part0 = torso
212+
213-
weld2.Parent = torso
213+
214-
weld2.Part1 = arms[2]
214+
215-
weld2.C1 = CFrame.new(-0.75, 0.5, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
215+
216-
welds[2] = weld2
216+
217
end 
218
elseif key:lower() == "w" then 
219-
else
219+
220-
print("sh")
220+
221
ctrl.b = -1 
222-
else
222+
223-
print("arms")
223+
224
elseif key:lower() == "d" then 
225
ctrl.r = 1 
226
end 
227-
function Unequip(mouse)
227+
228-
if arms ~= nil and torso ~= nil then
228+
229-
local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
229+
230-
if sh ~= nil then
230+
231-
local yes = true
231+
232-
if yes then
232+
233-
yes = false
233+
234-
sh[1].Part1 = arms[1]
234+
235-
sh[2].Part1 = arms[2]
235+
236-
welds[1].Parent = nil
236+
237-
welds[2].Parent = nil
237+
238
end)
239
Fly()