local config = script.Configuration
game.Workspace.Part.Touched:Connect(function(player)
if player:GetPlayerFromCharacter() then
if player:GetRankInGroup(config.GroupId) >= config.Rank then
game.Workspace.Part:Destroy()
end
end
end)
How might I make this script think the parameter as a player? (The script is inside the StarterCharacterScripts, if this may help.)

1 comment
I'm sorry, that you feel I'm disrespecting you; but actually I forgot to put it in the StarterCharacterScripts and it didn't work, so I'll accept your answer. Really sorry.