RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"can you fix this script"
Sure, here's the corrected script. It seems like you were trying to make a door transparent if a player's rank in a group is equal to or higher than 247. ```lua local groupId = 16994825 local door = workspace.doors local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) if player:IsInGroup(groupId) then local rank = player:GetRankInGroup(groupId) if rank >= 247 then door.Transparency = 1 end end end) ``` In this script, I have connected a function to the PlayerAdded event of the Players service. This function checks if the player is in the group and if their rank is 247 or higher. If both conditions are met, the door's transparency is set to 1, making it invisible.