My Usage of RemoteEvent for Communication between the GUI and Clickdetector

Hello,

I’m currently trying to make a GUI tween when the player clicks on a NPC, I figured out a way, however I don’t know if this is the best way of doing this or not.

ServerScript that I’m using:
image

Localscript that I’m using:

Any help would be much appreciated.

You don’t need to use remote events in this scenario. Just use a local script that will detect when the the player clicks on the detector then tween the frame.

Detector.MouseClick:Connect(function(Player))
    Frame:TweenPosition(Blah)
end
1 Like