i wanted to make that rank or higher rank be able to use import script but it doesn't work, i have rank but still...
local player = game.Players.LocalPlayer
local RN = player:GetRankInGroup(808191)
game.Players.LocalPlayer.Chatted:connect( function( Message )
if RN >= 2 then
if ToolSelected and Message:lower():match( '/import ' ) or Message:lower():match( ':import ' ) then
if Message:sub( 9, 12 ) == 'wjkg' then return; end
Container = game:GetService( 'ReplicatedStorage' ).Import:InvokeServer( Message:sub( 9, 12 ) )
if Container and Container:IsA( 'Model' ) and #Container:GetChildren() > 0 then
Container.Parent = workspace
Core.Selection.Clear()
repeat wait() Core.Selection.Add( Container:GetChildren() ) until #Core.Selection.Items == #Container:GetChildren()
end
end
end
end )
what do i do?
