I need to know how I can make a list of players that can spawn in with some tools, a trail, a speed boost, a health boost, and a cash boost.
vipList = {"1Messi3903"}
game.Players.PlayerAdded:Connect(function(player)
for i, v in pairs(vipList) do
if player.Name == v then
local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name)
if cashmoney then
cashmoney.Value = cashmoney.Value + 15000
local char = player.Character
char.Humanoid.MaxHealth = char.Humanoid.MaxHealth + 500
wait()
char.Humanoid.Health = char.Humanoid.MaxHealth
local char = player.Character
if char then
local human = char:FindFirstChild("Humanoid")
if human then
human.WalkSpeed = human.WalkSpeed + 25
end
end
local char = player.Character
if char then
local human = char:FindFirstChild("Humanoid")
if human then
local trail = game.ServerStorage.Trail:Clone()
trail.Parent = char.Head
local attachment0 = Instance.new("Attachment",char.Head)
attachment0.Name = "TrailAttachment0"
local attachment1 = Instance.new("Attachment",char.HumanoidRootPart)
attachment1.Name = "TrailAttachment1"
trail.Attachment0 = attachment0
trail.Attachment1 = attachment1
end
end
game.ServerStorage.HoverBoard:Clone().Parent=player.Backpack
game.ServerStorage.HoverBoard:Clone().Parent=player.StarterGear
game.ServerStorage.OPGUN1:Clone().Parent=player.Backpack
game.ServerStorage.OPGUN1:Clone().Parent=player.StarterGear
game.ServerStorage.OPGUN2:Clone().Parent=player.Backpack
game.ServerStorage.OPGUN2:Clone().Parent=player.StarterGear
game.ServerStorage.OPGUN3:Clone().Parent=player.Backpack
game.ServerStorage.OPGUN3:Clone().Parent=player.StarterGear
game.ServerStorage.OPGUN4:Clone().Parent=player.Backpack
game.ServerStorage.OPGUN4:Clone().Parent=player.StarterGear
end)
