View difference between Paste ID: 8AdkdjV3 and 9ZMV2Zwv
SHOW: | | - or go back to the newest paste.
1-
local admins = {95112612}
1+
local admins = {203954852}
2
local mods = {26668495, 49415940, 62426538, 8921455, 86609039, 38547000}
3
local bae = {90069931, 70136511, 68949175, 55080976, 44893448, 31743327, 71931773, 29043630, 73824896, 83845511, 88993196, 45386364, 47506742, 67334235, 63763759, 60072384, 53649173, 65071036}
4
local lol = 0
5
local version = "1.6"
6
local emotesEnabled = true
7
local bs = game:GetService("DataStoreService"):GetDataStore("banService") 
8
local rs = game:GetService("DataStoreService"):GetDataStore("rewardService") 
9
local xps = game:GetService("DataStoreService"):GetDataStore("xpService")
10
 
11
local savedChat = script.Chat:clone()
12
local particles = script.Particles:clone()
13
script.Chat:remove()
14
local debris=game:GetService("Debris")
15
16
function fire(targetPart,heat,size,clr1,clr2)
17
	local newFire=Instance.new("Fire")
18
	newFire.Heat=heat
19
	newFire.Size=size
20
	newFire.Color=clr1
21
	newFire.SecondaryColor=clr2
22
	newFire.Parent=targetPart
23
	return newFire
24
end
25
26
function makeFab(player)
27
local hairs={13476917,13745548,14815761,65941351}
28
local hats={53039427,1032641,41453145,51244458,1031418,53040003,69434580,10770304}	
29
	if player ~= nil then
30
		if player.Character ~= nil then
31
			if player.Character:findFirstChild("Humanoid") then
32
				local targetCharacter = player.Character
33
				local targetTorso = player.Character.Torso
34
							local sound = Instance.new("Sound")
35
							sound.Parent = targetTorso
36
							sound.SoundId = "http://www.roblox.com/asset/?id=113952851"
37
							sound.Volume = 1
38
							sound:Play()
39
							debris:AddItem(sound,5)
40
							local fire1=fire(targetTorso,10,15,Color3.new(1,1/3,1),Color3.new(1,2/3,1))
41
							local fire2=fire(targetTorso,0,20,Color3.new(1,1,1),Color3.new(1,2/3,1))
42
							local fire3=fire(targetTorso,-10,15,Color3.new(1,1/3,1),Color3.new(1,2/3,1))
43
							debris:AddItem(fire1,5)
44
							debris:AddItem(fire2,5)
45
							debris:AddItem(fire3,5)
46
							wait(1)
47
							if targetCharacter and targetTorso then
48
								for i,v in ipairs(targetCharacter:GetChildren()) do
49
									if v and (v.className=="CharacterMesh" or v.className=="") then
50
										v:remove()
51
									end
52
								end
53
								for i,v in ipairs(targetTorso:GetChildren()) do
54
									if v and (v.className=="Decal") then
55
										v:remove()
56
									end
57
								end
58
								do
59
									local torsoMesh=Instance.new("CharacterMesh")
60
									torsoMesh.Name="Princess Torso"
61
									torsoMesh.BodyPart="Torso"
62
									torsoMesh.BaseTextureId=0
63
									torsoMesh.MeshId=54069300
64
									torsoMesh.OverlayTextureId=54069610
65
									torsoMesh.Parent=targetCharacter
66
									
67
									local leftArmMesh=Instance.new("CharacterMesh")
68
									leftArmMesh.Name="Princess Left Arm"
69
									leftArmMesh.BodyPart="LeftArm"
70
									leftArmMesh.BaseTextureId=0
71
									leftArmMesh.MeshId=54069504
72
									leftArmMesh.OverlayTextureId=54069610
73
									leftArmMesh.Parent=targetCharacter
74
									
75
									local rightArmMesh=Instance.new("CharacterMesh")
76
									rightArmMesh.Name="Princess Right Arm"
77
									rightArmMesh.BodyPart="RightArm"
78
									rightArmMesh.BaseTextureId=0
79
									rightArmMesh.MeshId=54069400
80
									rightArmMesh.OverlayTextureId=54069610
81
									rightArmMesh.Parent=targetCharacter
82
									
83
									local leftLegMesh=Instance.new("CharacterMesh")
84
									leftLegMesh.Name="Princess Left Leg"
85
									leftLegMesh.BodyPart="LeftLeg"
86
									leftLegMesh.BaseTextureId=0
87
									leftLegMesh.MeshId=-1
88
									leftLegMesh.OverlayTextureId=54069610
89
									leftLegMesh.Parent=targetCharacter
90
									
91
									local rightLegMesh=Instance.new("CharacterMesh")
92
									rightLegMesh.Name="Princess Right Leg"
93
									rightLegMesh.BodyPart="RightLeg"
94
									rightLegMesh.BaseTextureId=0
95
									rightLegMesh.MeshId=-1
96
									rightLegMesh.OverlayTextureId=54069610
97
									rightLegMesh.Parent=targetCharacter
98
									
99
									local hair=game:GetService("InsertService"):LoadAsset(hairs[math.random(1,#hairs)]):GetChildren()[1]
100
									hair.Parent=targetCharacter
101
									
102
									local hat=game:GetService("InsertService"):LoadAsset(hats[math.random(1,#hats)]):GetChildren()[1]
103
									hat.Parent=targetCharacter
104
								end
105
							end
106
							wait(1.5)
107
							if fire1 and fire2 and fire3 then
108
								fire1.Enabled=false
109
								fire2.Enabled=false
110
								fire3.Enabled=false
111
							end
112
						end			
113
			end
114
		end
115
	end
116
117
118
function makeReaper(player)
119
	if player ~= nil then
120
		if player.Character ~= nil then
121
			if player.Character:findFirstChild("Humanoid") then
122
				if player:findFirstChild("PlayerGui") ~= nil then
123
					if player.PlayerGui:findFirstChild("GUI") ~= nil then
124
						if player.PlayerGui.GUI:findFirstChild("Reaper") ~= nil then
125
						player.PlayerGui.GUI:findFirstChild("Reaper").Visible = true
126
						end	
127
					end 
128
				end
129
				local p = player.Character:GetChildren()
130
				for i = 1, #p do
131
					if p[i] ~= nil then
132
						if p[i].Parent ~= nil then
133
							if p[i].className == "Part" then 
134
								p[i].BrickColor = BrickColor.new("Really black")
135
								p[i].Transparency = 0
136
							end
137
							if p[i].className == "Hat" or p[i].className == "Shirt" or p[i].className == "Pants" or p[i].className == "CharacterMesh" then
138
								p[i].Parent = nil	
139
							end
140
						end
141
					end
142
				end
143
			game.ServerStorage.Tools.ReaperHat:clone().Parent = player.Character
144
			game.ServerStorage.Tools.ReaperCape:clone().Parent = player.Character
145
			if player.Character:findFirstChild("Body Colors") ~= nil then
146
			player.Character:findFirstChild("Body Colors").Parent = nil
147
			game.ServerStorage.Tools.ReaperColors:clone().Parent = player.Character	
148
			end
149
			end
150
		end
151
	end
152
end
153
154
function checkAdmin(player)
155
	for i = 1, #admins do
156
		if admins[i] == player.userId then
157
			return true
158
		end
159
	end
160
	return false
161
end
162
163
function checkMod(player)
164
	for i = 1, #mods do
165
		if mods[i] == player.userId then
166
			return true
167
		end
168
	end
169
	return false
170
end
171
172
function checkBae(player)
173
		if bae == player.userId then
174
			return true	
175
		end
176
	return false
177
end
178
179
function matchPlayer(str)
180
	local result = nil
181
182
	local players = game.Players:GetPlayers()
183
184
	for i = 1,#players do
185
		if (string.find(string.lower(players[i].Name), string.lower(str)) == 1) then
186
			if (result ~= nil) then return nil end
187
			result = players[i]
188
		end
189
	end
190
191
	return result
192
end
193
194
195
196
function onPlayerJoin(player)
197
	repeat wait() until player.Character ~= nil
198
	player.CameraMaxZoomDistance = 20
199
	player.HealthDisplayDistance = 1000
200
	player.NameDisplayDistance = 1000
201
	_G.sendMessage(player.Name .. " has entered the server.", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
202
	local m = Instance.new("BoolValue")
203
	m.Name = "Muted"
204
	m.Parent = player
205
	m.Value = false
206
	local m = Instance.new("IntValue")
207
	m.Name = "Chance"
208
	m.Parent = player
209
	m.Value = 1
210
	player.Chatted:connect(function(msg)
211
		if string.sub(msg, 1, 8) == "/version" then	
212
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
213
			_G.sendMessage("Version: " .. version, player, "Local", Color3.new(255/255, 255/255, 127/255))
214
			else
215
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
216
			end
217
		elseif string.sub(msg, 1, 5) == "/help" or string.sub(msg, 1, 5) == "/cmds" then	
218
			if checkAdmin(player) or checkBae(player) then
219
			_G.sendMessage("Commands: /version /mute /unmute /kick /kill /reaper /play /c /reward10000 /reward25000 /reward50000", player, "Local", Color3.new(255/255, 255/255, 127/255))
220
			elseif checkMod(player) then
221
			_G.sendMessage("Commands: /version /mute /unmute /kick /kill /reaper /play", player, "Local", Color3.new(255/255, 255/255, 127/255))	
222
			else
223
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
224
			end	
225
		elseif string.sub(msg, 1, 5) == "/mute" then	
226
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
227
				local findPlayer = matchPlayer(string.sub(msg, 7))
228
				if findPlayer ~= nil then
229
				_G.sendMessage(player.Name .. " has muted [" .. tostring(findPlayer) .. "]", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
230
				findPlayer.Muted.Value = true
231
				else
232
				_G.sendMessage("Player: [" .. string.sub(msg, 7) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
233
				end	
234
			else
235
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
236
			end			
237
		elseif string.sub(msg, 1, 7) == "/unmute" then	
238
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
239
				local findPlayer = matchPlayer(string.sub(msg, 9))
240
				if findPlayer ~= nil then
241
				_G.sendMessage(player.Name .. " has unmuted [" .. tostring(findPlayer) .. "]", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
242
				findPlayer.Muted.Value = false
243
				else
244
				_G.sendMessage("Player: [" .. string.sub(msg, 7) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
245
				end	
246
			else
247
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
248
			end	
249
		elseif string.sub(msg, 1, 5) == "/kick" then	
250
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
251
				local findPlayer = matchPlayer(string.sub(msg, 7))
252
				if findPlayer ~= nil then
253
				_G.sendMessage(player.Name .. " has kicked [" .. tostring(findPlayer) .. "]", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
254
				findPlayer:remove()
255
				else
256
				_G.sendMessage("Player: [" .. string.sub(msg, 7) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
257
				end	
258
			else
259
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
260
			end	
261
		elseif string.sub(msg, 1, 4) == "/ban" then	
262
			if checkAdmin(player) or checkBae(player) then
263
				local findPlayer = string.sub(msg, 6)
264
				_G.sendMessage(player.Name .. " has banned [" .. tostring(findPlayer) .. "]", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
265
				bs:SetAsync(tostring(findPlayer), true)				
266
				if game.Players:findFirstChild(tostring(findPlayer)) ~= nil then
267
				game.Players:findFirstChild(tostring(findPlayer)):remove()
268
				end	
269
			else
270
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 0))				
271
			end	
272
		elseif string.sub(msg, 1, 6) == "/unban" then	
273
			if checkAdmin(player) or checkBae(player) then
274
				local findPlayer = string.sub(msg, 8)
275
				_G.sendMessage(player.Name .. " has pardoned [" .. tostring(findPlayer) .. "]", "Console", "Global", Color3.new(255/255, 255/255, 0))
276
				bs:SetAsync(tostring(findPlayer), false)				
277
			else
278
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 0))				
279
			end	
280
		elseif string.sub(msg, 1, 4) == "/fus" then		
281
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
282
				local findPlayer = matchPlayer(string.sub(msg, 6))
283
				if findPlayer ~= nil then
284
				_G.sendMessage(player.Name .. " has turned [" .. tostring(findPlayer) .. "] into the dragonborn!", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
285
				game.ServerStorage.Tools.FUS:clone().Parent = findPlayer.Backpack
286
				else
287
				_G.sendMessage("Player: [" .. string.sub(msg, 6) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
288
				end					
289
			else
290
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
291
			end	
292
		elseif string.sub(msg, 1, 3) == "/tp" then		
293
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
294
				local findPlayer = matchPlayer(string.sub(msg, 5))
295
				if findPlayer ~= nil then
296
				--_G.sendMessage(player.Name .. " has turned [" .. tostring(findPlayer) .. "] into the dragonborn!", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
297
					if player.Character ~= nil and findPlayer.Character ~= nil then
298
						if player.Character:findFirstChild("Torso") ~= nil	and findPlayer.Character:findFirstChild("Torso") ~= nil then
299
						player.Character.Torso.CFrame = findPlayer.Character.Torso.CFrame + Vector3.new(0, 5, 0)
300
						end
301
					end	
302
				else
303
				_G.sendMessage("Player: [" .. string.sub(msg, 5) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
304
				end					
305
			else
306
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
307
			end				
308
		elseif string.sub(msg, 1, 6) == "/knife" then		
309
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
310
				local findPlayer = matchPlayer(string.sub(msg, 8))
311
				if findPlayer ~= nil then
312
				_G.sendMessage(player.Name .. " has given [" .. tostring(findPlayer) .. "] a knife!", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
313
				game.ServerStorage.Tools.Knife:clone().Parent = findPlayer.Backpack
314
				else
315
				_G.sendMessage("Player: [" .. string.sub(msg, 8) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
316
				end					
317
			else
318
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
319
			end		
320
		elseif string.sub(msg, 1, 4) == "/gun" then		
321
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
322
				local findPlayer = matchPlayer(string.sub(msg, 6))
323
				if findPlayer ~= nil then
324
				_G.sendMessage(player.Name .. " has given [" .. tostring(findPlayer) .. "] a gun!", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
325
				game.ServerStorage.Tools.Gun:clone().Parent = findPlayer.Backpack
326
				else
327
				_G.sendMessage("Player: [" .. string.sub(msg, 6) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
328
				end					
329
			else
330
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
331
			end	
332
		elseif string.sub(msg, 1, 8) == "/fastgun" then		
333
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
334
				local findPlayer = matchPlayer(string.sub(msg, 10))
335
				if findPlayer ~= nil then
336
				_G.sendMessage(player.Name .. " has given [" .. tostring(findPlayer) .. "] a fast gun!", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
337
				game.ServerStorage.Tools["Fast Gun"]:clone().Parent = findPlayer.Backpack
338
				else
339
				_G.sendMessage("Player: [" .. string.sub(msg, 10) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
340
				end					
341
			else
342
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
343
			end				
344
		elseif string.sub(msg, 1, 6) == "/image" then		
345
			if checkAdmin(player) or checkBae(player) then
346
				local findPlayer = string.sub(msg, 8)
347
				_G.sendMessage("Now displaying image: " .. string.sub(msg, 8), player, "Local", Color3.new(255/255, 255/255, 127/255))
348
					local p = game.Players:GetChildren()
349
					for i = 1, #p do
350
					if p[i].PlayerGui.GUI:findFirstChild("IMAGE") then p[i].PlayerGui.GUI:findFirstChild("IMAGE"):Destroy() end
351
					if findPlayer == " " or findPlayer == "" or findPlayer == nil then
352
					else	
353
					
354
					local imageLabel = Instance.new("ImageLabel")
355
					imageLabel.Position = UDim2.new(0.25, 0, 0, 0)
356
					imageLabel.Size = UDim2.new(0.5, 0, 0, 600)
357
					imageLabel.Image = "rbxassetid://" .. (tonumber(string.sub(msg, 8)) - 1)
358
					imageLabel.Parent = p[i].PlayerGui.GUI
359
					imageLabel.BackgroundTransparency = 1
360
					imageLabel.Name = "IMAGE"
361
					coroutine.resume(coroutine.create(function()
362
					while imageLabel ~= nil do
363
					wait()
364
					imageLabel.Rotation = imageLabel.Rotation + 2
365
					
366
					end
367
					end))
368
					end
369
				end					
370
			else
371
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
372
			end												
373
		elseif string.sub(msg, 1, 5) == "/play" then	
374
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
375
			_G.sendMessage("Now playing: " .. string.sub(msg, 7), player, "Local", Color3.new(255/255, 255/255, 127/255))
376
			if workspace:findFirstChild("Music") then
377
			workspace:findFirstChild("Music"):Stop()
378
			wait()
379
				if workspace:findFirstChild("Music") then
380
				workspace:findFirstChild("Music"):Destroy()	
381
				end
382
			end
383
			if string.sub(msg, 7) ~= " " and string.sub(msg, 7) ~= "" and string.sub(msg, 7) ~= nil then
384
			local song = Instance.new("Sound")
385
			song.Parent = workspace
386
			song.SoundId = "http://www.roblox.com/asset/?id=" .. string.sub(msg, 7)
387
			song.Volume = 1
388
				if checkAdmin(player) or checkBae(player) then
389
				song.Looped = true
390
				else
391
				song.Looped = false	
392
				game:GetService("Debris"):AddItem(song, 122)	
393
				end
394
			song.Name = "Music"
395
			song:Play()
396
			wait()
397
				if song then
398
				song:Play()
399
				end
400
			end	
401
			else
402
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
403
			end									
404
		elseif string.sub(msg, 1, 5) == "/kill" then	
405
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
406
				local findPlayer = matchPlayer(string.sub(msg, 7))
407
				if findPlayer ~= nil then
408
				_G.sendMessage(player.Name .. " has slain [" .. tostring(findPlayer) .. "]", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
409
				findPlayer.Character.Humanoid.Health = 0
410
				else
411
				_G.sendMessage("Player: [" .. string.sub(msg, 7) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
412
				end	
413
			else
414
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
415
			end	
416
		elseif string.sub(msg, 1, 5) == "/gear" then	
417
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
418
				local findPlayer = player
419
				if findPlayer ~= nil then
420
				--_G.sendMessage(player.Name .. " has slain [" .. tostring(findPlayer) .. "]", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
421
				--findPlayer.Character.Humanoid.Health = 0
422
				local x = game:GetService("InsertService"):LoadAsset(string.sub(msg, 7)) x.Parent = game.Workspace x:makeJoints() local xx = x:GetChildren() xx[1].Parent = player.Backpack wait(0.1) x.Parent = nil
423
				end	
424
			else
425
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
426
			end				
427
			
428
		elseif string.sub(msg, 1, 7) == "/reaper" then	
429
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
430
				local findPlayer = matchPlayer(string.sub(msg, 9))
431
				if findPlayer ~= nil then
432
				_G.sendMessage(player.Name .. " has transformed [" .. tostring(findPlayer) .. "] into the Reaper!", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
433
				makeReaper(findPlayer)
434
				else
435
				_G.sendMessage("Player: [" .. string.sub(msg, 9) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
436
				end	
437
			else
438
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
439
			end	
440
		elseif string.sub(msg, 1, 8) == "/explode" then	
441
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
442
				local findPlayer = matchPlayer(string.sub(msg, 10))
443
				if findPlayer ~= nil then
444
				_G.sendMessage(player.Name .. " exploded [" .. tostring(findPlayer) .. "]", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
445
				if findPlayer.Character ~= nil then
446
					if findPlayer.Character:findFirstChild("Torso") ~= nil then
447
					local e = Instance.new("Explosion")
448
					e.BlastPressure = 1000
449
					e.BlastRadius = 10
450
					e.Parent = findPlayer.Character.Torso	
451
					e.Position = findPlayer.Character.Torso.Position								
452
					end
453
				end
454
455
				else
456
				_G.sendMessage("Player: [" .. string.sub(msg, 10) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
457
				end	
458
			else
459
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
460
			end
461
				elseif string.sub(msg, 1, 4) == "/fab" then	
462
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
463
				local findPlayer = matchPlayer(string.sub(msg, 6))
464
				if findPlayer ~= nil then
465
				_G.sendMessage(player.Name .. " has turned [" .. tostring(findPlayer) .. "] into a pretty pink princess!", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
466
				makeFab(findPlayer)
467
				else
468
				_G.sendMessage("Player: [" .. string.sub(msg, 6) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
469
				end	
470
			else
471
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
472
			end	
473
		elseif string.sub(msg, 1, 7) == "/effect" then	
474
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
475
				local findPlayer = string.sub(msg, 9)
476
				if player.Character:findFirstChild("WeaponObject") ~= nil then
477
				local par = particles:Clone()	
478
				par.Parent = player.Character:findFirstChild("WeaponObject")
479
				par.Texture = "http://www.roblox.com/asset/?id=" .. findPlayer
480
				end	
481
			else
482
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
483
			end	
484
		elseif string.sub(msg, 1, 7) == "/bigwep" then	
485
			if checkAdmin(player) or checkMod(player) or checkBae(player) then
486
				--local findPlayer = string.sub(msg, 9)
487
				if player.Character:findFirstChild("WeaponObject") ~= nil then
488
				player.Character:findFirstChild("WeaponObject").Mesh.Scale = Vector3.new(5,5,5)
489
				end	
490
			else
491
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
492
			end													
493
		elseif string.sub(msg, 1, 2) == "/c" then	
494
			if checkAdmin(player) or checkBae(player) then
495
				local findPlayer = matchPlayer(string.sub(msg, 4))
496
				if findPlayer ~= nil then
497
				_G.sendMessage(player.Name .. " gave [" .. tostring(findPlayer) .. "] 5000 credits", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
498
					local d = game.ServerStorage.PlayerDataService:findFirstChild(findPlayer.DataString.Value)
499
					if d then
500
					d.RealCredits.Value = d.RealCredits.Value + 5000
501
					d.Credits.Value = d.Credits.Value + 5000
502
					end
503
				else
504
				_G.sendMessage("Player: [" .. string.sub(msg, 7) .. "] not found.", player, "Local", Color3.new(255/255, 255/255, 127/255))	
505
				end	
506
			else
507
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
508
			end			
509
		elseif string.sub(msg, 1, 12) == "/reward25000" then	
510
			if checkAdmin(player) or checkBae(player) then
511
				local findPlayer = string.sub(msg, 14)
512
				_G.sendMessage("You rewarded [" .. tostring(findPlayer) .. "] 25000 credits", player, "Local", Color3.new(255/255, 255/255, 127/255))
513
				rs:SetAsync(findPlayer, 25000)	
514
			else
515
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
516
			end	
517
		elseif string.sub(msg, 1, 12) == "/reward50000" then	
518
			if checkAdmin(player) or checkBae(player) then
519
				local findPlayer = string.sub(msg, 14)
520
				_G.sendMessage("You rewarded [" .. tostring(findPlayer) .. "] 50000 credits", player, "Local", Color3.new(255/255, 255/255, 127/255))
521
				rs:SetAsync(findPlayer, 50000)	
522
			else
523
				
524
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
525
			end		
526
		elseif string.sub(msg, 1, 13) == "/reward100000" then	
527
			if checkAdmin(player) or checkBae(player) then
528
				local findPlayer = string.sub(msg, 15)
529
				_G.sendMessage("You rewarded [" .. tostring(findPlayer) .. "] 100000 credits", player, "Local", Color3.new(255/255, 255/255, 127/255))
530
				rs:SetAsync(findPlayer, 100000)	
531
			else
532
				
533
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
534
			end	
535
		elseif string.sub(msg, 1, 13) == "/reward300000" then	
536
			if checkAdmin(player) or checkBae(player) then
537
				local findPlayer = string.sub(msg, 15)
538
				_G.sendMessage("You rewarded [" .. tostring(findPlayer) .. "] 300000 credits", player, "Local", Color3.new(255/255, 255/255, 127/255))
539
				rs:SetAsync(findPlayer, 300000)	
540
			else
541
				
542
			--_G.sendMessage("No permissions to use commands.", player, "Local", Color3.new(255/255, 255/255, 127/255))				
543
			end				
544
		elseif string.sub(msg, 1, 3) == "/xp" then	
545
			if checkAdmin(player) or checkBae(player) then
546
				
547
				local findPlayer = string.sub(msg, 15)
548
				_G.sendMessage("You set [" .. tostring(findPlayer) .. "]'s rank to " .. tonumber(string.sub(msg, 5, 13))/1000, player, "Local", Color3.new(255/255, 255/255, 127/255))
549
				xps:SetAsync(findPlayer, tonumber(string.sub(msg, 5, 13)))	
550
			else		
551
			end
552
			
553
		elseif string.sub(msg, 1, 15) == "/disable radios" then	
554
			if checkAdmin(player) or checkBae(player) or checkMod(player) then
555
				_G.sendMessage("Radios have been disabled for this round.", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
556
				local p = game.Players:GetChildren()
557
				for i = 1, #p do 
558
					if p[i] ~= nil then
559
						if p[i].Character ~= nil then
560
							if p[i].Character:findFirstChild("TwistedRadio") ~= nil then
561
							p[i].Character:findFirstChild("TwistedRadio"):Destroy()	
562
								if p[i].Character:findFirstChild("Torso") ~= nil then
563
									if p[i].Character.Torso:findFirstChild("Music") ~= nil then
564
									p[i].Character.Torso:findFirstChild("Music"):Stop()
565
									wait()
566
										if p[i].Character.Torso:findFirstChild("Music") ~= nil then
567
										p[i].Character.Torso:findFirstChild("Music"):Destroy()	
568
										end
569
									end
570
								end
571
							end
572
						end
573
					end
574
				end
575
			else		
576
			end	
577
		elseif string.sub(msg, 1, 14) == "/toggle emotes" then	
578
			if checkAdmin(player) or checkBae(player) or checkMod(player) then
579
				if emotesEnabled then
580
				emotesEnabled = false
581
				_G.sendMessage("Emotes disabled", player, "Local", Color3.new(255/255, 255/255, 127/255))
582
				else	
583
				emotesEnabled = true	
584
				_G.sendMessage("Emotes enabled", player, "Local", Color3.new(255/255, 255/255, 127/255))
585
				end	
586
			end		
587
																		
588
		elseif string.sub(msg, 1, 3) == "/e " and player ~= nil and player.Character ~= nil then	
589
		_G.sendMessage("Performing emote...", player, "Local", Color3.new(255/255, 255/255, 127/255))	
590
			if checkAdmin(player) or checkMod(player) or checkBae(player) or (game:GetService("GamePassService"):PlayerHasPass(player, 280891134) and emotesEnabled) then --if game:GetService("GamePassService"):PlayerHasPass(player, 182499700) then
591
			local t = player.Character:FindFirstChild'Ani'
592
			local h = player.Character:FindFirstChild'Humanoid'
593
			if t ~= nil and h ~= nil then
594
			local tt = h:LoadAnimation(t)
595
			tt:Stop()
596
			wait()
597
				if t ~= nil then
598
				t.Parent = nil
599
				end
600
			end
601
			
602
			if string.sub(msg, 1, 8) == "/e twerk" then
603
			
604
			local a = Instance.new("Animation",player.Character)
605
			a.Name = "Ani"
606
			a.AnimationId = "rbxassetid://277485142"
607
			local h = player.Character:FindFirstChild'Humanoid'
608
			local t = h:LoadAnimation(a)
609
			t:Play()	
610
			
611
			elseif string.sub(msg, 1, 11) == "/e superman" then
612
			
613
			local a = Instance.new("Animation",player.Character)
614
			a.Name = "Ani"
615
			a.AnimationId = "rbxassetid://277929891"
616
			local h = player.Character:FindFirstChild'Humanoid'
617
			local t = h:LoadAnimation(a)
618
			t:Play()	
619
				
620
			
621
			elseif string.sub(msg, 1, 7) == "/e fist" then
622
			
623
			local a = Instance.new("Animation",player.Character)
624
			a.Name = "Ani"
625
			a.AnimationId = "rbxassetid://280872840"
626
			local h = player.Character:FindFirstChild'Humanoid'
627
			local t = h:LoadAnimation(a)
628
			t:Play()	
629
			
630
			elseif string.sub(msg, 1, 10) == "/e shuffle" then
631
			
632
			local a = Instance.new("Animation",player.Character)
633
			a.Name = "Ani"
634
			a.AnimationId = "rbxassetid://277955949"
635
			local h = player.Character:FindFirstChild'Humanoid'
636
			local t = h:LoadAnimation(a)
637
			t:Play()	
638
			
639
			elseif string.sub(msg, 1, 6) == "/e wdf" and (checkAdmin(player) or checkMod(player) or checkBae(player)) then
640
			
641
			local a = Instance.new("Animation",player.Character)
642
			a.Name = "Ani"
643
			a.AnimationId = "rbxassetid://277597389"
644
			local h = player.Character:FindFirstChild'Humanoid'
645
			local t = h:LoadAnimation(a)
646
			t:Play()	
647
			
648
			
649
			elseif string.sub(msg, 1, 8) == "/e twist" then
650
			
651
			local a = Instance.new("Animation",player.Character)
652
			a.Name = "Ani"
653
			a.AnimationId = "rbxassetid://280865087"
654
			local h = player.Character:FindFirstChild'Humanoid'
655
			local t = h:LoadAnimation(a)
656
			t:Play()	
657
			end		
658
			end
659
		else
660
			local cMute = player:findFirstChild("Muted")
661
			if cMute ~= nil then
662
				if cMute.Value == false then
663
					if checkAdmin(player) then
664
					_G.sendMessage(msg, player, "Global", Color3.new(0, 255/255, 0))
665
					else
666
						if checkBae(player) then
667
						_G.sendMessage(msg, player, "Global", Color3.new(255/255, 111/255, 207/255))								
668
						else
669
						if checkMod(player) or player.userId == lol then
670
						_G.sendMessage(msg, player, "Global", Color3.new(102/255, 204/255, 255/255))	
671
						else
672
							if game:GetService("GamePassService"):PlayerHasPass(player, 182499700) or player.Name == "XxgalexywolfxX" then
673
							_G.sendMessage(msg, player, "Global", Color3.new(247/255, 53/255, 56/255))									
674
							elseif game:GetService("GamePassService"):PlayerHasPass(player, 177131975) or player.Name == "alberta12" or player.Name == "DarkEtherz" then
675
							_G.sendMessage(msg, player, "Global", Color3.new(243/255, 214/255, 69/255))	 	 
676
							else
677
							_G.sendMessage(msg, player, "Global", Color3.new(255/255, 255/255, 255/255))		
678
							end		
679
						end	
680
						end
681
					end
682
				else
683
				_G.sendMessage("You have been muted.", player, "Local", Color3.new(255/255, 255/255, 127/255))			
684
				end		
685
			end			
686
		end	
687
	end)
688
end
689
690
_G["sendMessage"] = function(msg, sender, type, color)
691
	if type == "Global" then
692
		if sender == "Console" then
693
			local p = game.Players:GetChildren()
694
				for i = 1, #p do
695
					if p[i].Character then
696
							local gui = p[i].PlayerGui:findFirstChild("GUI")
697
							
698
							if gui ~= nil then
699
								
700
								local chats = gui.Chats:GetChildren()
701
								for x = 1, #chats do
702
									chats[x].Position = chats[x].Position + UDim2.new(0, 0, 0, -15)
703
									if chats[x].Position.Y.Offset <= -15 then
704
										chats[x]:remove()
705
									end
706
								end
707
								
708
								local newChat = savedChat:clone()	
709
								newChat.Parent = gui.Chats
710
								if sender == "Console" then
711
								newChat.Text = "[CONSOLE]:"	
712
								else
713
									newChat.Text = sender.Name .. ":"	
714
									if game:GetService("GamePassService"):PlayerHasPass(sender, 298766936) or sender.Name == "XxgalexywolfxX" then
715
									newChat.Text = "[MVP] ".. sender.Name .. ":"										
716
									elseif game:GetService("GamePassService"):PlayerHasPass(sender, 298766143) or sender.Name == "alberta12" or sender.Name == "DarkEtherz" then
717
									newChat.Text = "[VIP] ".. sender.Name .. ":"												
718
									end
719
									if checkAdmin(sender) then
720
									newChat.Text = "[Owner] ".. sender.Name .. ":"	
721
									elseif checkMod(sender) or sender.userId == lol then
722
									newChat.Text = "[Mod] ".. sender.Name .. ":"	 	
723
									elseif checkBae(sender) then
724
									newChat.Text = "$Pro$ ".. sender.Name .. ":"	 										
725
									end
726
								end
727
								
728
								newChat.TextColor3 = color	
729
								newChat.Text = newChat.Text .. " " .. msg 
730
								
731
								if string.len(msg) >= 300 then
732
								newChat.Text = sender.Name .. ":" .. " Message too long."
733
								end	
734
							end
735
					end	
736
				end
737
						
738
		else
739
		if sender.Character ~= nil then
740
			if sender.Character:findFirstChild("Role") then
741
			local p = game.Players:GetChildren()
742
				for i = 1, #p do
743
					if p[i].Character then
744
							local gui = p[i].PlayerGui:findFirstChild("GUI")
745
							
746
							if gui ~= nil then
747
								
748
								local chats = gui.Chats:GetChildren()
749
								for x = 1, #chats do
750
									chats[x].Position = chats[x].Position + UDim2.new(0, 0, 0, -15)
751
									if chats[x].Position.Y.Offset <= -15 then
752
										chats[x]:remove()
753
									end
754
								end
755
								
756
								local newChat = savedChat:clone()	
757
								newChat.Parent = gui.Chats
758
								if sender == "Console" then
759
								newChat.Text = "[CONSOLE]:"	
760
								else
761
									newChat.Text = sender.Name .. ":"	
762
									if game:GetService("GamePassService"):PlayerHasPass(sender, 298766936) or sender.Name == "XxgalexywolfxX" then
763
									newChat.Text = "[MVP] ".. sender.Name .. ":"										
764
									elseif game:GetService("GamePassService"):PlayerHasPass(sender, 298766143) or sender.Name == "alberta12" or sender.Name == "DarkEtherz" then
765
									newChat.Text = "[VIP] ".. sender.Name .. ":"												
766
									end
767
									if checkAdmin(sender) then
768
									newChat.Text = "[Owner] ".. sender.Name .. ":"	
769
									elseif checkMod(sender) or sender.userId == lol then
770
									newChat.Text = "[Mod] ".. sender.Name .. ":"	
771
									elseif checkBae(sender) then
772
									newChat.Text = "$Pro$ ".. sender.Name .. ":"									 		
773
									end
774
								end
775
								
776
								newChat.TextColor3 = color	
777
								newChat.Text = newChat.Text .. " " .. msg 
778
								
779
								if string.len(msg) >= 300 then
780
								newChat.Text = sender.Name .. ":" .. " Message too long."
781
								end	
782
							end
783
						end
784
				end
785
			
786
			else	
787
				
788
		local p = game.Players:GetChildren()
789
				for i = 1, #p do
790
					if p[i].Character then
791
							local gui = p[i].PlayerGui:findFirstChild("GUI")
792
							local r = p[i].Character:findFirstChild("Role")
793
							if gui ~= nil and r == nil then
794
								
795
								local chats = gui.Chats:GetChildren()
796
								for x = 1, #chats do
797
									chats[x].Position = chats[x].Position + UDim2.new(0, 0, 0, -15)
798
									if chats[x].Position.Y.Offset <= -15 then
799
										chats[x]:remove()
800
									end
801
								end
802
								
803
								local newChat = savedChat:clone()	
804
								newChat.Parent = gui.Chats
805
								if sender == "Console" then
806
								newChat.Text = "[CONSOLE]:"	
807
								else
808
									newChat.Text = sender.Name .. ":"	
809
									if game:GetService("GamePassService"):PlayerHasPass(sender, 298766936) then
810
									newChat.Text = "[MVP] ".. sender.Name .. ":"										
811
									elseif game:GetService("GamePassService"):PlayerHasPass(sender, 298766143) or sender.Name == "alberta12" or sender.Name == "DarkEtherz" then
812
									newChat.Text = "[VIP] ".. sender.Name .. ":"												
813
									end
814
									if checkAdmin(sender) then
815
									newChat.Text = "[Owner] ".. sender.Name .. ":"	
816
									elseif checkMod(sender) or sender.userId == lol then
817
									newChat.Text = "[Mod] ".. sender.Name .. ":"	
818
									elseif checkBae(sender) then
819
									newChat.Text = "$Pro$ ".. sender.Name .. ":"									 		
820
									end
821
								end
822
								
823
								newChat.TextColor3 = color	
824
								newChat.Text = newChat.Text .. " " .. msg 
825
								
826
								if string.len(msg) >= 300 then
827
								newChat.Text = sender.Name .. ":" .. " Message too long."
828
								end	
829
							end
830
						end									
831
				end
832
				end
833
			end
834
		end
835
836
			
837
	elseif type == "Local" then	
838
	local p = sender
839
	local gui = p.PlayerGui:findFirstChild("GUI")
840
		if gui ~= nil then
841
		local chats = gui.Chats:GetChildren()
842
			for x = 1, #chats do
843
			chats[x].Position = chats[x].Position + UDim2.new(0, 0, 0, -15)
844
				if chats[x].Position.Y.Offset <= -15 then
845
				chats[x]:remove()
846
				end
847
			end
848
		end
849
				
850
		local newChat = savedChat:clone()	
851
		newChat.Parent = gui.Chats
852
		newChat.Text = "[CONSOLE]:"
853
		newChat.TextColor3 = color	
854
					
855
		newChat.Text =  newChat.Text .. " " .. msg 			
856
	end
857
end
858
859
function onPlayerLeave(player)
860
	_G.sendMessage(player.Name .. " has left the server.", "Console", "Global", Color3.new(255/255, 255/255, 127/255))
861
end
862
863
game.Players.ChildAdded:connect(onPlayerJoin)
864
game.Players.ChildRemoved:connect(onPlayerLeave)