so i have this problem where the .Touched event runs as soon as i press play, instead of waiting for the ball to touch it first. here's my script: (ignore the game.Workspace... twice, i had a bug where if i made it local something it would just affect the player instead)
local part = script.Parent
part.Touched:Connect(function(hit)
local ball = hit.Parent:FindFirstChild("Ball")
if ball then
game.Workspace.Ball.Anchored = true
game.Workspace.Ball.BrickColor = BrickColor.new("Gold")
end
end)

3 comments
Is this the whole script. If yes, what is the part and where is it located? Also, is the Ball in workspace and the ball is a sphere or a model?
the part is just a basic part, located in the workspace.
the ball is a sphere in the workspace too