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

How Can I Make Two Client-Side Scripts Communicate?

Asked by
crueluu 169
4 years ago
Edited 4 years ago

I Want To Make A Button Which When Clicked Should Start A Scene Using Camera Tweening,But The Problem Is That The Camera's Tweening Script Is Also A Local Script And Its In StarterPlayerScripts While The Gui Script Is In StarterGui, Can Someone Give Me A Method On How To Communicate Between Local Scripts?

Note: I Placed The Camera local Script In StarterPlayerScripts To Avoid The Camera Script Restarting Every Time The Player Restarts.

Thank You For Reading.

2
You could communicate with BindableEvents, you could do the button.InputBegan in the Camera Script, or you could make the Camera Script a module script blowup999 659 — 4y
0
ok Thanks Im Going To Go Try It! crueluu 169 — 4y

Answer this question