Animated ui popup on mouse click

I want to make it so a UI popup drops down from the top of your screen when you click your mouse

Let me know if you need any thing from my side, I am willing to provide any script and so on.

2 Likes

Use UserInputService to get the player’s mouse click connection and use :TweenPosition() to make the wanted popup drop down from the top of the screen

It looks like you’re making a simulator game, do you need the server to do anything after each click?

Im not quite sure what you mean by that?

1 Like

Thank you for your suggestion, how can I randomize where the UI will “Land”?

1 Like

math.random(0,100)/100 (gets a random decimal from 0 to 1, with steps of 0.01)

Because UserInputService has to be on the client side, anything the server needs to do, like give a point to the player, needs to be done by using a RemoteEvent.

I already have created a “Click = Point” System, I just want to make it so that when you click and receive that point, the UI drops down

Get when the point’s value goes up then the UI drops down, basically something like this

local oldval = valuelocation.Value

valuelocation.Changed:Connect(function(newval)
if newval > oldval then
--script here
end
end)

Assuming you are using NumberValues for storing points

This is kind of unnecessary, if there already is a click script on the client side, we don’t need to go back and forth.