How would i achieve this? I want it to float towards the player.
i already have these
you may try using BillboardGui.
these really look like ordinary UI so i mistaken
if you are focusing on “float to player”,
you can do every frame (pseudocode)
local t=0.5
coin.Position = lerp(coin.Position, player.Position, t)
You can find the 2D position of the destroyed material on screen through
Camera | Documentation - Roblox Creator Hub (takes GUI insert into account)
or
Camera | Documentation - Roblox Creator Hub (ignores GUI insert)
From getting the 2D position on screen, you can create all the coins on there as ImageLabel UIs, and tween them out in random directions. Then, just tween towards the center of the screen (as the player will always be in the center) and then delete them.
this is done by using a part that has a billboard GUI located in it. The part can be thrown out with a little added velocity to the part as it is parented to the workspace. Then if you want to move it towards player for pickup that is in range use a tween to position or alignposition
Thank you so much it worked
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.