Theres blue outlines under the info
words, and at the end)
it shows an error underline, what do i fix?
local par = script.Parent
local remote = par.RemoteEvent
local ShirtId1 = 14548206090
local PantsId1 = 14555518246
local ShirtId2 = 7427540084
local PantsId2 = 7389912372
local ShirtId3 = 7427532866
local PantsId3 = 7389742860
local MIN_RANK1 = 10
local MIN_RANK2 = 10
local MIN_RANK3 = 10
local GROUP_ID = 5901406
remote.OnServerEvent:Connect(function(player)
local success, roles = pcall(function()
return player:GetRolesInGroup(GROUP_ID)
end)
if info == "Button1" then
if player:GetRankInGroup(GROUP_ID) >= MIN_RANK1 then
local character = player.Character
if character then
local shirt = character:FindFirstChild("Shirt")
local pants = character:FindFirstChild("Pants")
if shirt then
shirt:Destroy()
end
if pants then
pants:Destroy()
end
local newShirt = Instance.new("Shirt")
newShirt.ShirtTemplate = "rbxassetid://" .. ShirtId1
newShirt.Parent = character
local newPants = Instance.new("Pants")
newPants.PantsTemplate = "rbxassetid://" .. PantsId1
newPants.Parent = character
end
if info == "Button3" then
if player:GetRankInGroup(GROUP_ID) >= MIN_RANK2 then
local character = player.Character
if character then
local shirt = character:FindFirstChild("Shirt")
local pants = character:FindFirstChild("Pants")
if shirt then
shirt:Destroy()
end
if pants then
pants:Destroy()
end
local newShirt = Instance.new("Shirt")
newShirt.ShirtTemplate = "rbxassetid://" .. ShirtId2
newShirt.Parent = character
local newPants = Instance.new("Pants")
newPants.PantsTemplate = "rbxassetid://" .. PantsId2
newPants.Parent = character
end
if info == "Button3" then
if player:GetRankInGroup(GROUP_ID) >= MIN_RANK3 then
local character = player.Character
if character then
local shirt = character:FindFirstChild("Shirt")
local pants = character:FindFirstChild("Pants")
if shirt then
shirt:Destroy()
end
if pants then
pants:Destroy()
end
local newShirt = Instance.new("Shirt")
newShirt.ShirtTemplate = "rbxassetid://" .. ShirtId3
newShirt.Parent = character
local newPants = Instance.new("Pants")
newPants.PantsTemplate = "rbxassetid://" .. PantsId3
newPants.Parent = character
end
end
end
end)