Hello guys.
I have this script, but how can I make it so that it detects other parts, and not just a player?
while true do script.Parent.CFrame = script.Parent.CFrame +Vector3.new(0.1,0,0) wait() end script.Parent.Touched:connect(function(hit) print(hit.Name .. " was touched") end)
Thanks