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