View difference between Paste ID: a92adcKs and bPa12ZzC
SHOW: | | - or go back to the newest paste.
1-
local Grab = Instance.new("Tool", owner.Backpack)
1+
function rgb(RED,GREEN,BLUE)
2-
Grab.Name = "Grab"
2+
    local Count = 1 / 255
3-
 
3+
    --Red Count
4-
local P = Instance.new("Part", Grab)
4+
    local red = Count * RED
5-
P.Name = "Handle"
5+
    --Green Count
6-
P.Size = Vector3.new(1,1,1)
6+
    local green = Count * GREEN
7-
P.Transparency = 1
7+
    --Blue Count
8-
P.CanCollide = false
8+
    local blue = Count * BLUE
9
    --Give Color3
10-
local S = Instance.new("Part", Grab)
10+
    local FColor = Color3.new(red,green,blue)
11-
S.Name = "S"
11+
    return FColor
12-
S.Size = Vector3.new(5.5,5,5.5)
12+
end
13-
S.Transparency = 0.5
13+
14-
S.CanCollide = false
14+
owner.Character.Humanoid:RemoveAccessories()
15-
S.Shape = Enum.PartType.Cylinder
15+
16-
S.TopSurface = Enum.SurfaceType.Smooth
16+
local AdminHat = Instance.new("Model", owner.Character)
17-
S.BottomSurface = Enum.SurfaceType.Smooth
17+
AdminHat.Name = "AdminHat"
18
19-
local W1 = Instance.new("Weld", Grab)
19+
local HatMain = Instance.new("Part", AdminHat)
20-
W1.Name = "W1"
20+
HatMain.Name = "HatMain"
21-
W1.Part0 = P
21+
HatMain.Color = rgb(0, 180, 245)
22-
W1.Part1 = S
22+
HatMain.Size = Vector3.new(0.8,1.25,1.25)
23-
W1.C0 = CFrame.fromOrientation(0,0,80.1) + Vector3.new(0,0,-5)
23+
HatMain.Position = Vector3.new(0,5,0)
24
HatMain.Rotation = Vector3.new(0, 0, 90)
25-
local P2 = Instance.new("Part", Grab)
25+
HatMain.CanCollide = true
26-
P2.Name = "Handle"
26+
HatMain.Anchored = true
27-
P2.Size = Vector3.new(1,1,1)
27+
HatMain.Shape = Enum.PartType.Cylinder
28-
P2.Transparency = 1
28+
HatMain.TopSurface = Enum.SurfaceType.Smooth
29-
P2.CanCollide = false
29+
HatMain.BottomSurface = Enum.SurfaceType.Smooth
30
31-
local W2 = Instance.new("Weld", Grab)
31+
local HatBand = Instance.new("Part", AdminHat)
32-
W2.Name = "W2"
32+
HatBand.Name = "HatBand"
33-
W2.Part0 = S
33+
HatBand.Color = rgb(245, 235, 5)
34-
W2.Part1 = P2
34+
HatBand.Size = Vector3.new(0.1,1.3,1.3)
35-
W2.C0 = CFrame.fromOrientation(0,0,-80.1) + Vector3.new(0,0,-1)
35+
HatBand.Position = Vector3.new(0,(5 - 0.8) + 0.5 ,0)
36
HatBand.Rotation = Vector3.new(0, 0, 90)
37-
local plr = Instance.new("ObjectValue", Grab)
37+
HatBand.CanCollide = true
38-
plr.Name = "plr"
38+
HatBand.Anchored = true
39
HatBand.Shape = Enum.PartType.Cylinder
40-
db = false
40+
HatBand.TopSurface = Enum.SurfaceType.Smooth
41
HatBand.BottomSurface = Enum.SurfaceType.Smooth
42-
S.Touched:Connect(function(c)
42+
43-
	if db then
43+
local HatBottom = Instance.new("Part", AdminHat)
44-
		if c.Parent:FindFirstChild("HumanoidRootPart") then
44+
HatBottom.Name = "HatBottom"
45-
			plr.Value = c.Parent
45+
HatBottom.Color = rgb(0, 180, 245)
46-
		elseif c.Parent:FindFirstChild("Torso") then
46+
HatBottom.Size = Vector3.new(0.1,2,2)
47-
			plr.Value = c.Parent
47+
HatBottom.Position = Vector3.new(0,(5 - 0.8) + 0.35 ,0)
48-
		elseif c.Parent:FindFirstChild("UpperTorso") then
48+
HatBottom.Rotation = Vector3.new(0, 0, 90)
49-
			plr.Value = c.Parent
49+
HatBottom.CanCollide = true
50
HatBottom.Anchored = true
51
HatBottom.Shape = Enum.PartType.Cylinder
52-
end)
52+
HatBottom.TopSurface = Enum.SurfaceType.Smooth
53
HatBottom.BottomSurface = Enum.SurfaceType.Smooth
54-
Grab.Activated:Connect(function()
54+
55-
	if plr.Value == nil then
55+
local PrimaryPart = HatMain
56-
		db = true
56+
local Parts = {HatBand,HatBottom}
57-
	else
57+
local Parts2 = {HatMain,HatBand,HatBottom}
58-
		plr.Value = nil
58+
for i = 1, #Parts do
59
	if Parts[i]:IsA('BasePart') then
60-
end)
60+
		local weld = Instance.new("Weld")
61
		weld.Part0 = PrimaryPart
62-
Grab.Deactivated:Connect(function()
62+
		weld.Part1 = Parts[i]
63-
	db = false
63+
		weld.C0 = PrimaryPart.CFrame:inverse()
64-
end)
64+
		weld.C1 = Parts[i].CFrame:inverse()
65
		weld.Parent = PrimaryPart
66-
while true do
66+
67-
	if plr.Value == nil then
67+
end
68-
		local a = 1
68+
for i,v in pairs(Parts2) do
69-
	else
69+
	v.Anchored = false
70-
		if plr.Value:FindFirstChild("HumanoidRootPart") then
70+
	v.Material = "SmoothPlastic"
71-
			plr.Value:FindFirstChild("HumanoidRootPart").CFrame = P2.CFrame
71+
end
72-
		elseif plr.Value:FindFirstChild("Torso") then
72+
73-
			plr.Value:FindFirstChild("Torso").CFrame = P2.CFrame
73+
local weld = Instance.new("Weld")
74-
		elseif plr.Value:FindFirstChild("UpperTorso") then
74+
weld.Part0 = owner.Character.Head
75-
			plr.Value:FindFirstChild("UpperTorso").CFrame = P2.CFrame
75+
weld.Part1 = PrimaryPart
76
weld.C0 = CFrame.new(0,-4.1,0)
77
weld.C1 = PrimaryPart.CFrame:inverse()
78-
	wait(0.001)
78+
weld.Parent = PrimaryPart
79-
end
79+
80
local Music = Instance.new("Sound", HatBottom)
81
Music.SoundId = "rbxassetid://" .. 3877007341
82
Music.Volume = 1
83
Music.Looped = true
84
Music:Play()
85
86
-- Instances:
87
local AdminGui = Instance.new("ScreenGui")
88
local Main = Instance.new("ImageLabel")
89
local Button1 = Instance.new("ImageLabel")
90
local TextButton = Instance.new("TextButton")
91
local Button2 = Instance.new("ImageLabel")
92
local TextButton_2 = Instance.new("TextButton")
93
local Button3 = Instance.new("ImageLabel")
94
local TextButton_3 = Instance.new("TextButton")
95
local Button4 = Instance.new("ImageLabel")
96
local TextButton_4 = Instance.new("TextButton")
97
--Properties:
98
AdminGui.Name = "AdminGui"
99
AdminGui.Parent = owner:WaitForChild("PlayerGui")
100
AdminGui.ResetOnSpawn = false
101
102
Main.Name = "Main"
103
Main.Parent = AdminGui
104
Main.BackgroundColor3 = Color3.new(1, 1, 1)
105
Main.BackgroundTransparency = 1
106
Main.Position = UDim2.new(0.75, 0, 0.5, 0)
107
Main.Size = UDim2.new(1, 0, 1, 0)
108
Main.Image = "rbxassetid://2851920938"
109
Main.ImageColor3 = Color3.new(0.176471, 0.760784, 1)
110
Main.ScaleType = Enum.ScaleType.Slice
111
Main.SliceCenter = Rect.new(25, 25, 25, 25)
112
113
Button1.Name = "Button1"
114
Button1.Parent = Main
115
Button1.AnchorPoint = Vector2.new(0.5, 0.5)
116
Button1.BackgroundColor3 = Color3.new(1, 1, 1)
117
Button1.BackgroundTransparency = 1
118
Button1.Position = UDim2.new(0.425000012, 0, 0.100000001, 0)
119
Button1.Size = UDim2.new(0.800000012, 0, 0.0500000007, 0)
120
Button1.Image = "rbxassetid://2851920938"
121
Button1.ImageColor3 = Color3.new(0.0588235, 0.517647, 1)
122
Button1.ScaleType = Enum.ScaleType.Slice
123
Button1.SliceCenter = Rect.new(25, 25, 25, 25)
124
125
TextButton.Parent = Button1
126
TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
127
TextButton.BackgroundTransparency = 1
128
TextButton.Size = UDim2.new(0.275000006, 0, 1, 0)
129
TextButton.Font = Enum.Font.SourceSans
130
TextButton.Text = "Reset All"
131
TextButton.TextColor3 = Color3.new(0, 0, 0)
132
TextButton.TextScaled = true
133
TextButton.TextSize = 14
134
TextButton.TextWrapped = true
135
136
Button2.Name = "Button2"
137
Button2.Parent = Main
138
Button2.AnchorPoint = Vector2.new(0.5, 0.5)
139
Button2.BackgroundColor3 = Color3.new(1, 1, 1)
140
Button2.BackgroundTransparency = 1
141
Button2.Position = UDim2.new(0.425000012, 0, 0.159999996, 0)
142
Button2.Size = UDim2.new(0.800000012, 0, 0.0500000007, 0)
143
Button2.Image = "rbxassetid://2851920938"
144
Button2.ImageColor3 = Color3.new(0.0588235, 0.517647, 1)
145
Button2.ScaleType = Enum.ScaleType.Slice
146
Button2.SliceCenter = Rect.new(25, 25, 25, 25)
147
148
TextButton_2.Parent = Button2
149
TextButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
150
TextButton_2.BackgroundTransparency = 1
151
TextButton_2.Size = UDim2.new(0.275000006, 0, 1, 0)
152
TextButton_2.Font = Enum.Font.SourceSans
153
TextButton_2.Text = "Invisible"
154
TextButton_2.TextColor3 = Color3.new(0, 0, 0)
155
TextButton_2.TextScaled = true
156
TextButton_2.TextSize = 14
157
TextButton_2.TextWrapped = true
158
159
Button3.Name = "Button3"
160
Button3.Parent = Main
161
Button3.AnchorPoint = Vector2.new(0.5, 0.5)
162
Button3.BackgroundColor3 = Color3.new(1, 1, 1)
163
Button3.BackgroundTransparency = 1
164
Button3.Position = UDim2.new(0.425000012, 0, 0.219999999, 0)
165
Button3.Size = UDim2.new(0.800000012, 0, 0.0500000007, 0)
166
Button3.Image = "rbxassetid://2851920938"
167
Button3.ImageColor3 = Color3.new(0.0588235, 0.517647, 1)
168
Button3.ScaleType = Enum.ScaleType.Slice
169
Button3.SliceCenter = Rect.new(25, 25, 25, 25)
170
171
TextButton_3.Parent = Button3
172
TextButton_3.BackgroundColor3 = Color3.new(1, 1, 1)
173
TextButton_3.BackgroundTransparency = 1
174
TextButton_3.Size = UDim2.new(0.275000006, 0, 1, 0)
175
TextButton_3.Font = Enum.Font.SourceSans
176
TextButton_3.Text = "Visible"
177
TextButton_3.TextColor3 = Color3.new(0, 0, 0)
178
TextButton_3.TextScaled = true
179
TextButton_3.TextSize = 14
180
TextButton_3.TextWrapped = true
181
182
Button4.Name = "Button4"
183
Button4.Parent = Main
184
Button4.AnchorPoint = Vector2.new(0.5, 0.5)
185
Button4.BackgroundColor3 = Color3.new(1, 1, 1)
186
Button4.BackgroundTransparency = 1
187
Button4.Position = UDim2.new(0.425000012, 0, 0.280000001, 0)
188
Button4.Size = UDim2.new(0.800000012, 0, 0.0500000007, 0)
189
Button4.Image = "rbxassetid://2851920938"
190
Button4.ImageColor3 = Color3.new(0.0588235, 0.517647, 1)
191
Button4.ScaleType = Enum.ScaleType.Slice
192
Button4.SliceCenter = Rect.new(25, 25, 25, 25)
193
194
TextButton_4.Parent = Button4
195
TextButton_4.BackgroundColor3 = Color3.new(1, 1, 1)
196
TextButton_4.BackgroundTransparency = 1
197
TextButton_4.Size = UDim2.new(0.275000006, 0, 1, 0)
198
TextButton_4.Font = Enum.Font.SourceSans
199
TextButton_4.Text = "Tp All Here"
200
TextButton_4.TextColor3 = Color3.new(0, 0, 0)
201
TextButton_4.TextScaled = true
202
TextButton_4.TextSize = 14
203
TextButton_4.TextWrapped = true
204
-- Scripts:
205
function SCRIPT_MFXZ78_FAKESCRIPT() -- Main.ButtonFunctions 
206
	local script = Instance.new('Script')
207
	script.Parent = Main
208
	local Button1 = script.Parent.Button1.TextButton
209
	local Button2 = script.Parent.Button2.TextButton
210
	local Button3 = script.Parent.Button3.TextButton
211
	local Button4 = script.Parent.Button4.TextButton
212
	
213
	Button1.MouseButton1Click:Connect(function()
214
		for i,plr in pairs(game.Players:GetPlayers()) do
215
			if plr ~= owner then
216
				plr:LoadCharacter()
217
			end
218
		end
219
	end)
220
	
221
	Button2.MouseButton1Click:Connect(function()
222
		for i,P in pairs(owner.Character:GetChildren()) do
223
			if P.ClassName == "Part" and P.Name ~= "HumanoidRootPart" then
224
				P.Transparency = 1
225
				if P:FindFirstChild("face") then
226
					P:FindFirstChild("face").Transparency = 1
227
				end
228
			elseif P.ClassName == "MeshPart" then
229
				P.Transparency = 1
230
			elseif P.ClassName == "Accessory" then
231
				P.Handle.Transparency = 1
232
			end
233
		end
234
		if owner.Character:FindFirstChild("AdminHat") then
235
			for i,P in pairs(owner.Character.AdminHat:GetChildren()) do
236
				if P.ClassName == "Part" then
237
					P.Transparency = 1
238
				end
239
			end
240
		end
241
	end)
242
	
243
	Button3.MouseButton1Click:Connect(function()
244
		for i,P in pairs(owner.Character:GetChildren()) do
245
			if P.ClassName == "Part" and P.Name ~= "HumanoidRootPart" then
246
				P.Transparency = 0
247
				if P:FindFirstChild("face") then
248
					P:FindFirstChild("face").Transparency = 0
249
				end
250
			elseif P.ClassName == "MeshPart" then
251
				P.Transparency = 0
252
			elseif P.ClassName == "Accessory" then
253
				P.Handle.Transparency = 0
254
			end
255
		end
256
		if owner.Character:FindFirstChild("AdminHat") then
257
			for i,P in pairs(owner.Character.AdminHat:GetChildren()) do
258
				if P.ClassName == "Part" then
259
					P.Transparency = 0
260
				end
261
			end
262
		end
263
	end)
264
	
265
	Button4.MouseButton1Click:Connect(function()
266
		for i,plr in pairs(game.Players:GetPlayers()) do
267
			if plr.Character ~= nil then
268
				if plr.Character:FindFirstChild("HumanoidRootPart") and owner.Character:FindFirstChild("HumanoidRootPart") then
269
					 plr.Character:FindFirstChild("HumanoidRootPart").CFrame = owner.Character.HumanoidRootPart.CFrame
270
				end
271
			end
272
		end
273
	end)
274
end
275
coroutine.resume(coroutine.create(SCRIPT_MFXZ78_FAKESCRIPT))
276
function SCRIPT_QDQQ78_FAKESCRIPT() -- AdminGui.RemoveOnRespawn 
277
	local script = Instance.new('Script')
278
	script.Parent = AdminGui
279
	owner.CharacterAdded:Wait()
280
	script.Parent:Remove()
281
end
282
coroutine.resume(coroutine.create(SCRIPT_QDQQ78_FAKESCRIPT))