Wondering how can I make its so when you open up my gui it will bring the players camera on a part and if you click the next button it moves to the next part ( using it for a garage when selecting cars)
2 Likes
Sorry, I’m not typing the whole script up for you but basically:
- You wanna change the camera type to scriptable.
- Instead of TextLabel use a TextButton
- in the script use a gui.TextButton.MouseButton1Clicked:Connect(function()
- In that function, move the camera’s CFrame to the cam part (you can use TweenService to have the camera pan to the part instead of teleport there)
- Then you can just cycle through to the next cam parts
https://developer.roblox.com/en-us/api-reference/event/GuiButton/MouseButton1Click
That’s basically all there is to it! (Btw this will all go in a local script!)
1 Like
alright,
and yea I just realized I type textlabel not button (my bad)
1 Like