Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

I keep getting attempt to concatenate string with Instance what does it mean? SOLVED

Asked by 3 years ago
Edited 3 years ago
local inter = game.ReplicatedFirst.Round.Inter
local T = script.Parent
local intert = game.ReplicatedFirst.Round.Time.Value
local Start = game.ReplicatedFirst.Round.Starting
local selmap = game.ReplicatedFirst.Round.CurrentMap.Value

T.Text = "Game Starting."
T.Text = "Map: "..selmap --line with error

This is my code and if I run it, it gives the Players.Player1.PlayerGui.RoundDis.Frame.TextLabel.Start:8: attempt to concatenate string with Instance Error message in output

I realized all I needed to do was do local selmap = game.ReplicatedFirst.Round.CurrentMap.Value.Name

0
Maybe try printing what selmap is in a print() statement JoRyJuKy 32 — 3y
0
wait a minute is current map a string? jgftr7 74 — 3y
1
maybe try doing tostring(selmap) greatneil80 2647 — 3y
1
oh I just saw the word "instance", try tostring(selmap.Name) greatneil80 2647 — 3y
View all comments (2 more)
0
Current map is a object value DevvUnknown 3 — 3y
0
Thanks everyone for the help! DevvUnknown 3 — 3y

Answer this question