Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I script a camera going around a part when clicked?

Asked by 8 years ago

Hello, I'm trying to figure out how I can use camera manipulation when a part is clicked (Which has a ClickDetector) But I'm not sure how, I know how to script a camera going around an object, and stop that camera when a TextButton is clicked. And I know how to script a clickable part, but I'm not sure how to combine them both, I know that in order to have the camera go around an object, it needs to be in a Local Script, but for the ClickDetector, it needs to be in a Script. If I didn't mention this already, what I'm trying to create is when you click on a model, the camera will go around the model, than TextButtons will appear, and they'll say Buy and Back, so when you press the Back button, it'll stop the camera manipulation from rotating the camera, and goes to the character, while the Buy button is the button where you buy the model, which I also know how to do...

Thank you,

Hope you understood my question :)
0
i'm pretty sure this calls for a remote event http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial theCJarmy7 1293 — 8y
0
Hello, I have resently tried doing this, but I can't seem to get a hang of it. :/ NanotechSci 40 — 8y
0
Hmm... I'm not the best equipped scripter, but a remote event/function seems to be the best way to do this. just try it, and can you post the camera/click/gui code? theCJarmy7 1293 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

Call the MouseClick event client side then access the camera via a local script for the camera manipulation.

Ad

Answer this question