Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make this line in my script work? Can't figure out the proper way to put it.

How do I make the stuff in line 3 worded properly? So that it finds the Players Car in the workspace.

game.ReplicatedStorage.ArrowLeft.OnServerEvent:Connect(function(plr)
	local plrName = plr.Name
	game.Workspace[plrName"'s Car"].Body.ELS.Lightbar.on.Value = 11
end)

1 answer

✓ Accepted answer
 game.Workspace[plrName .. "'s Car"].Body.ELS.Lightbar.on.Value = 11

You use 2 periods (..) to combine the 2 strings.

1 comment

0

Thanks, forgot about this. I took a break for like a year.

This discussion is preserved as it was. New answers, comments, and votes are closed.