How would I go about making a train, that when it reaches a certain point on the track the driver is awarded some in game money?
What sorta code would I use?
local train = game.Workspace.Train
if train.Position = (23, 5, -89) then
game.Player.leaderstats.Tokens.Value + 10
else
So you want to make a train driving system and I guess trigger a function when the player makes it to the end of the route? I’m not interested in giving free code out if you haven’t provided any code to show your attempt.
Im no scripter so I have no idea how you would do the train part, although for the rewards part you could do that if a body part of the player is at the end part of the route then they are rewarded.