i was script in and i got a this error:bad argument #3 to 'Text' (string expected, got nil) the script is:
while true do
local id = game.ReplicatedStorage.id:InvokeServer()
if id[0] == 'game_tp' then
script.Parent.Visible = true
end
if id[0] ~= 'game_tp' then
script.Parent.Visible = false
end
wait(0.1)
script.Parent.dec.Text = id[2]
script.Parent.mapname.Text = id[1]
end
this is the sever script:
function id()
return {game.ServerScriptService.game_cmds_Value, game.ServerStorage.guis.map.map_no_id.thegui.mapname.Text, game.ServerStorage.guis.map.map_no_id.thegui.dec.Text}
end
game.ReplicatedStorage.id.OnServerInvoke = id

1 comment
You have to check what server invoke is i think?