-- ORGINAL FIRST SCRIPT
for i = 120,0,-1 do
status.Value = "Game In Progress:"..i
if game.ReplicatedStorage.Finished.Value == "yes" then
i=0
end
-- ORIGINAL SECOND SCRIPT
script.parent.Touched:connect(function()
local Fin = game.ReplicatedStorage.Finished
Fin.Value = "yes"
end)
-- FIXED FIRST SCRIPT
script.Parent.Touched:Connect(function(HIT)
if HIT.Parent:FindFirstChild("Humanoid") then
local Fin = game.ReplicatedStorage.Finished
Fin.Value = "yes"
print("ixgottouvhed")
end
end)
-- FIXED SECOND SCRIPT
for i = 120,0,-1 do
status.Value = "Game In Progress:"..i
wait(1)
if game.ReplicatedStorage.Finished.Value == "yes" then break end
end
The first script is an excerpt from a larger script. It basically keeps track of the round time, and the round automatically ends if the string value "Finished" is yes.
The other script is under a part that when touched, makes the string value "Finished"
Why does nothing happen when i touch the part the second script is under?
EDIT: I got the problem fixed, but here's the code for any one who has this problem in the future.
Thanks to all that helped.

1 comment
You forgot to uppercase the 'P' in 'Parent' on line 1. XP