How to make a moving part in roblox studio (tut) Free script

Опубликовано: 16 Май 2026
на канале: Sillic
46
0

Like and subscribe for more tut :)

-------- Script --------

local TweenService = game:GetService("TweenService") -- make all the parts the name you that is your part
local RunService = game:GetService("RunService")

local Part = script.Parent
local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, -1, true)

local tween = TweenService:Create(Part, tweenInfo, {
CFrame = Part.CFrame * CFrame.new(0,11,0)
})

tween:Play()


local lastPosition = Part.Position

RunService.Stepped:Connect(function (_, deltaTime)
local currentPosition = Part.Position
local deltaPosition = currentPosition - lastPosition

local velocity = deltaPosition / deltaTime

Part.AssemblyLinearVelocity = velocity

lastPosition = currentPosition
end)

--------------- Info ---------------

My roblox group- https://web.roblox.com/groups/1363346...

My discord-   / discord  

Roblox profile- https://web.roblox.com/users/98783625...

Brothers channel- https://www.youtube.com/@SplyceGT/fea...

Brothers TikTok-   / splycegt