In my game I have rounds. What i want to happen is when someone dies they drop an item. I have already done that but I want them to drop it when the round is happening only. The infovalue is a gui at the top of the screen.
--Made by 1Messi3903
plr = game.Players.LocalPlayer
status = game.ReplicatedStorage.InfoValue.Value
script.Parent.MouseClick:connect(function()
i = 120, 0, -1
if status = i..' seconds remaining!' then
plr.leaderstats.Points.Value = plr.leaderstats.Points.Value + 5
wait()
script.Parent.Parent:Destroy()
end)

5 comments
I see there is an error in line 6. Look: when you want to determinate a value of a variable,you need to use 1 equal (=),but when you want to check for true or false, you need to use 2 equals (==). The 6th line should be like this:
if status==i..'seconds remaining!' then
I see there is an error in line 6. Look: when you want to determinate a value of a variable,you need to use 1 equal (=),but when you want to check for true or false, you need to use 2 equals (==). The 6th line should be like this:
I don't understand what the "i = 120, 0, -1" part is for. It looks like a for loop, but it is not cuz it does not have the word for and do and a end to close it. I'm confused.
It is a timer. It goes from 120 seconds down to 0 and when it hits 0 the round ends