Exactly what i wanted! Also 'Linear' easing style works better
@NetheriteSTUDIOS
2 жыл бұрын
Honestly- you deserve more subs
@yuhriandraikou2024
9 күн бұрын
subbed
@tist203
2 жыл бұрын
Thanks -- this works good. When trying to just loop the tween it resets the position or will not move but connecting to function once tween complete is working good.
@PinEXE
2 жыл бұрын
thanks
@fantasydevelopment759
Жыл бұрын
Thx it is exactly what I was looking for! But i'm tweening the C0 of a weld constraint. In my case, i am making an effect that follows the player and rotates at same time.
@Dev_OnCake
Жыл бұрын
You can generally use this method on any object that can be rotated. For example, you could use it to create a GUI compass.
@elbunnydabest
Жыл бұрын
Why not use -1 repeat count in TweenInfo? Basically the same but without repeating the function.
@MrNoobSB
7 ай бұрын
how do you make it where your avatar spins instead of a part?
@snowthe5th
Жыл бұрын
script: local tweenservice = game:GetService("TweenService") local function rotateFunc() local part = script.Parent local rotationSoeed = 5 local tweenInfo = TweenInfo.new(rotationSoeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In) local goal = {CFrame = part.CFrame * CFrame.Angles(0, math.rad(120), 0)} local rotatePart = tweenservice:Create(part, tweenInfo, goal) rotatePart:Play() rotatePart.Completed:Connect(rotateFunc) end rotateFunc()
@artificialintelligencebird
Жыл бұрын
ty
@somerandomdude5922
7 ай бұрын
how would I make it tween upwards at the same time?
@HayFatYT
6 ай бұрын
Great video, but why don't you say "Z" as "Zee", you said "zed".
@Dev_OnCake
6 ай бұрын
In short, the British pronounce “Z” as /zɛd/ (zed) whereas Americans pronounce it as /ziː/ (zee). I am not British or American. But I would like to honor the memory of Zed from Pulp Fiction by pronouncing Z this way. 😉 kzitem.info/news/bejne/lqKCl62mp5afinY
@HayFatYT
6 ай бұрын
@@Dev_OnCake Oh yea, I forgot the British say things differently.
@vrothyl
Жыл бұрын
It works but I have this weird thing happening. It will randomly slow to a stop and then slowly start spinning again - I'm guessing it does it at every 120 increment. I've slowed my item considerably (I'm trying to make a spiral staircase infinitely spin, so I don't need it going fast) so it takes a couple moments for it to get to that 120 mark and stop, but the pauses are really irking me as I'm building a showcase. I've changed it to 180 as two stops is better than three and I could play it off as the staircase stopping to let you on (it's not supposed to be functional) but it's still not really what I'm going for. Regardless, this tutorial is the closest I've gotten to what I'm looking for so any advice would be appreciated!
@Dev_OnCake
Жыл бұрын
Since you are making a staircase, you should not use this method to accomplish a rotation as this method does not take physics into account! Use a Constraint instead: create.roblox.com/docs/physics/mechanical-constraints
@tomassummers45
Жыл бұрын
how do you make it so it rotates on a key press?
@Dev_OnCake
Жыл бұрын
There are several solutions to this problem and the easiest one I can think of right now would be to simply create a second script with a ProximityPrompt and then use it to enable or disable the tween script. In my test experience (link in the description!) I use for example such a ProximityPrompt to rotate parts.
@user-wl1pe4mn2p
Ай бұрын
Create a part insert a proximity prompt customise your proximity prompt then inside of proximity prompt create a script type this inside of script Local part = workspace.Part Local proximityprompt = script.Parent proximityprompt.Triggered:Connect(function() Local TweenService = game:GetService(“TweenService”) Local TweenInfo = TweenInfo.new(5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut) Local RotationParam= {CFrame = part.CFrame * CFrame.Angles(0, math.rad(120), 0)} Local Rotation = TweenService:Create(part, TweenInfo, RotationParam) Rotation:Play()
Пікірлер: 20