How would I change the speed? I’m using TranslateBy
I have no idea what this is, and have never EVER used it. Just use tweening or SetPrimaryPartCFrame
It is a way to make a model move (anything in the model) Link to more info: Model | Documentation - Roblox Creator Hub
Description:
Shifts a Model
by the given Vector3
offset, preserving the Model
's orientation. If another BasePart
or Terrain
already exists at the new position then the Model
will overlap said object.
The translation is applied in world space rather than object space, meaning even if the model’s parts are orientated differently it will still move along the standard axis.
Still, you’re moving in increments of 3, which is the issue. Just use CFrame:Lerp(), Tweening, or SetPrimaryPartCFrame.
That all works. I just need to fix the touched event
Edit: i tried to make it slower and it still doesn’t work
No, nothing is done with the touched event. It’s the fact you’re not touching the part in the first place.
What do you mean? (30 characters)
I mean what I mean, the player is not touching the part to begin with. You need to modify the code you use to move the model so that the player touches the part. .Touched is not broken, your code is.
How is my code broken? I don’t understand
I am sorry, but I have explained this numerous times. The player doesn’t touch the part because you are using bad technique. I am done here.
local seat = ---
seat.ChildAdded:Connect(function(child)
if child and child:IsA("Weld") then
--Code
end
end)