I get an error on line 9 saying "Incomplete statement: expected assignment or a function call" I am not sure what is happen here never seen this before.

db = false
brick.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
	local player = game.Players:GetPlayerFromCharacter(hit.Parent)
	if not db then
		db = true
		if player.Character.MWinner.Value == true then
			giveReward(player)
			player.Character.MWinner.Value == false
				else
			end
			wait(5)
			db = false
		end
	end
end)

3 comments

0

MWinner is a bool value after the giveReward function I am trying to set the MWinner to false so it does not run the giveReward function again. This is in a script not a local script.

2

You have one too many "=" on line 9

0

Wow, Not sure how i missed that. Thank you very much.