Script Has A Error That I Cant Find

Here Is My Script

script.AddPoints.OnServerEvent:connect(function(plr)
	if plr.threepass == true then
		plr.leaderstats.Steps.Value = plr.leaderstats.Steps.Value + 3*plr.Boost.Value
	else if plr.twopass == true then
			plr.leaderstats.Steps.Value = plr.leaderstats.Steps.Value + 2*plr.Boost.Value
		else if plr.Boost.Value == 0 then
				plr.leaderstats.Steps.Value = plr.leaderstats.Steps.Value + 1
			else 
				plr.leaderstats.Steps.Value = plr.leaderstats.Steps.Value + 1 * plr.Boost.Value
				end
	
end)

Try removing the space between else and if

1 Like

Ah thank you that worked! :slight_smile:

1 Like

Anytime! If you have anymore issues don’t be afraid to make another post!

1 Like