How to tween a part so it rotates tilting a bit to the left?

Hello,

Pretty simple stuff, how would I go about tweening a part so it rotates tilting to the left a little bit after getting triggered by a ProximityPrompt?

Example footage of the movement I’m looking to do:

I’ve tried everything to achieve this. Tried editing some free models from the toolbox that have rotating scripts, looked up threads on this, but nothing really worked or covered what I’m trying to do. I’d appreciate your help on this!

make a rotate left whit a tweenservice

And how exactly would I do or go about doing that? I’ve tried with already made scripts but nothing really gave the exact rotation as in the example video.

look this vid:How To Use ROBLOX TweenService (Smooth Movement) - YouTube

I know how to move parts with TweenService, what I’m wanting to know now is how would I rotate the part a little bit with TweenService?

You need to change the variables.

local proxpromp = yourproximityprompthere

local part = theparthere

local info = TweenInfo.new(0.2,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0)

local alreadyTriggered = false

proxpromp.Triggered:Connect(function()
    if alreadyTriggered == false then
        alreadyTriggered = true
        
        local goals = {
        CFrame = part.CFrame * CFrame.Angles(math.rad(10),0,0)
        }
        
        local tween = game:GetService("TweenService"):Create(part,info,goals)
        tween:Play()
    end
end)

Let me know what this does. (and send me a screenshot)

math.rad converts degrees to radians, just for future reference.

2 Likes

Does exactly what I wanted, rotates the part tilting it a slight bit. Thank you so much! :slight_smile: