This is my code, I want it to set the vehicle speed to "200" when I chat go and to "0" when I chat stop, can't understand why this doesn't work.
game.Players.PlayerAdded:connect(function(player)
if player.Name == "Player" then
player.Chatted:connect(function(msg)
if msg == "go" then
game.Workspace.xTranquil.Taxi.VehicleSeat.MaxSpeed = "200"
elif msg == "stop" then
game.Workspace.xTranquil.Taxi.VehicleSeat.Maxspeed = "0"
end)
end
end)

1 comment
Helping out yumtaste here, you're missing a normal "end" after line 7. Feel free to upvote this if it helped. He did answer your question though.