![]() ![]() You can apply that rotation to the position by multiplying it by another CFrame. You need to check the Orientation property of your doors and make sure that Orientation is preserved in your final CFrames. In your example, the tweens you have made are trying to move door 1 to Position (1226.993, 131.187, -769.185) and Orientation (0, 0, 0). It could just be that the CFrames you have defined are missing rotation information. Local Tween2Close = TweenService:Create(Door2,TweenInformationIn,Door2Close) Local TweenClose = TweenService:Create(Door1, TweenInformationIn, Door1Close) Local Tween2Open = TweenService:Create(Door2, TweenInformationIn,Door2Open) Local Tween1Open = TweenService:Create(Door1, TweenInformationIn, Door1Open) ![]() Local TweenInformationIn = TweenInfo.new( My Code: TweenService = game:GetService("TweenService") ![]() What should happen |><| what happened |^^| But This keeps happening and i don't know why! They rotate into the gap rather than sliding. In theory, the doors should slide into the walls like in the Maze Runner. You should find a better solution to your problem that isn't a removed feature if you haven't already.So I'm building a Maze Runner game for ROBLOX and I've gotten to scripting the doors, so I utilized ROBLOX's built in "TweenService()" to do it. (I did not test this solution in Studio though, so it isn't guranteed to work especially since DPad isn't meant to be used anymore supposedly. ![]() If this is the case, open the command bar/line and run this command: = Note: It's possible that the DPad option won't appear in the dropdown in the Properties window since it was removed. If you really really need it though for whatever reason, that's how- just set StarterPlayer (a service you can find next to StarterPack in the Explorer). However, it does also say in the documentation that DPad was removed from the app and that it should not be used. This also prevents them from changing the movement type to something else if it is not set to UserChoice. It says that you can use StarterPlayer.DevTouchMovementMode to set what way the player moves (Thumbstick, Tap to Move, DPad, etc) when they join. See the Movement Modes section of that link. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |