What do you want to achieve? I want to make it so the script is able to find a part, so I can make the function work
What is the issue? The script is not able to find the part
My script:
game.Workspace.barrier.Touched:Connect(function(hit)
if hit:FindFirstChild(“Humanoid”) then
wait(2)
winnerIndex = true
print(“Player is now in winnerIndex”)
end
end)
The only thing that fixed it (I think) is moving it from ClientUI to workspace