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

String value error?!

Asked by
Hero_ic 502 Moderation Voter
8 years ago

so I am using this script

print("The winner is "..workspace.WinnerName.Value"!")

*attempt to call field 'Value' (a string value) *but it is giving me this error. any help? ~Thanks KIHeros.

1 answer

Log in to vote
2
Answered by 8 years ago

You forgot to concatenate the "!", so Lua thought it was syntax sugar for a function call (Which it is)

print("The winner is "..workspace.WinnerName.Value.."!")
0
thanks! I always make the stupidest errors :/ Hero_ic 502 — 8y
0
lol... those simple errors are killer dragonkeeper467 453 — 8y
Ad

Answer this question