I want to make a tool that when you click it switches to another gui that being a surface gui im making this for a security camera tablet and i need to know how to make this.
This is… incredibly vague… But I’ll do my best (I’ll describe the steps to you, it’s down to you to write them).
Begin with a tool, model it, and script it with a MouseButton1Click or MouseButton1Down. Not too sure where the SurfaceGui you’re referencing is, but either: bring the player to that part, use a camera, or bring the part to the player.
Instead of MouseButton1Click why cant i just use Tool.Activated? Also the surface gui will be on the tool itself its a tablet so yeah.
Yeah, that works fine too. I’d just have a camera positioned and change the player camera to that.
Thats a good idea But the thing i dont know how to make is how to make it go in order and loop once your got to the last surface gui im newer to scripting so these things are harder for me.
I’m still not too sure what you mean here, could you describe it in as much detail as you can?
Ok so to recap i want to make a tool where when you click it changes the surface gui on the tool since the tool is a tablet and when it gets to the last surface gui and you click again it needs to go back to the first surface gui and loop back through.
Oh, okay, I get it now. You could use a bunch of if statements and detect the name of the final GUI, and then display the first one again. Really, you’re looking at just making 1-2 scripts and however many GUI you want. Watch a few tutorials on UI design, it might help you understand.
So basicly lets assume there are 2 guis and i put inside the tool.activated
if surfacegui1.Enabled then
surfacegui2.Enabled = false
else
surfacegui2.Enabled = true
end