I have a bot, (model, that moves around and damages on touch). I want to make it when it touches a brick, it is sent back to the position it spawned in. I don't have much experience with this, so I could use some help. This is it so far.
model = Bot script.Parent.Touched:connect(function(touched) if touched == model then touched.Position = UDim2.new() --position end)
You can't use UDim2 for 3D positioning. Instead you should be using Vector3.
In the end your code should look like this:
model = Bot script.Parent.Touched:connect(function(touched) if touched == model then touched.Position = Vector3.new()--position end end)