RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a TweenService part that moves through another part it touches named "Point""
-- local script local part = script.Parent local tweenService = game:GetService("TweenService") local function movePart(otherPart) if otherPart.Name == "Point" then local info = TweenInfo.new(1, Enum.EasingStyle.Linear) local goal = otherPart.Position local tween = tweenService:Create(part, info, {Position = goal}) tween:Play() end end part.Touched:Connect(movePart)