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?
05 game.Players.LocalPlayer.Chatted:connect( function( Message ) 06 if RN >= 2 then 07 if ToolSelected and Message:lower():match( '/import ' ) or Message:lower():match( ':import ' ) then 08 if Message:sub( 9, 12 ) == 'wjkg' then return; end 09 Container = game:GetService( 'ReplicatedStorage' ).Import:InvokeServer( Message:sub( 9, 12 ) ) 10 11 if Container and Container:IsA( 'Model' ) and #Container:GetChildren() > 0 then 12 Container.Parent = workspace 13 Core.Selection.Clear() 14 repeat wait() Core.Selection.Add( Container:GetChildren() ) until #Core.Selection.Items == #Container:GetChildren() 15 end 16 end 17 end 18 end )
all this part wont work after "if RN >= 2 then", no errors, even if you have this rank