how to make a castle bridge entrance tween ?
So, i've started working on a castle bridge entrance, my goal is to make it rotate at a 90 degree angle, my issue is it's not working, please provide me with some tips to solve this problem. (keep in mind that it's a local script in the StarterGui because i am working on a pop up letter Gui so the player is aware that he can interact with this item and what key he should press)
01 | local uis = game:GetService( "UserInputService" ) |
03 | local service = game:GetService( "TweenService" ) |
04 | local part = game.Workspace.part 1 |
06 | local info = TweenInfo.new( 5 , Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0 , false ) |
08 | local open = { CFrame = part.CFrame * CFrame.Angles( 0 , 0 , math.rad( 90 )) } |
10 | local create = service:Create(part, info, open) |
12 | uis.InputBegan:Connect( function (input, proccesed) |
13 | if input.KeyCode = = Enum.KeyCode.E and proccesed and inRange then |