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!
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.
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.