If you want the Menu to work, you'll have to use UserInputService to open the menu, as there is no possible way to open the menu by clicking it.
Next, if you want to spawn the object on the player's mouse you'll have to use game.Players.LocalPlayer:GetMouse() and set that equal to a variable, and then use Mouse.Hit(.p) or Mouse.Origin and set the objects position/CFrame equal to that.
For the images, you'll have to create those yourself or use Roblox Image Endpoints for pre-existing images.
Do some research on these and your game will work fine.
Examples
UserInputService
game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent)
if not gameProcessedEvent then
if input.KeyCode == Enum.KeyCode.Z then
print("Pressed Z")
end
end
end)
Mouse
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
game:GetService("RunService").RenderStepped:Connect(function()
print(mouse.Hit.p, mouse.Origin, mouse.Hit)
end
Image Endpoints
Dev Forum
Hope this helped! Feel free to select this as an answer if this helped you!
Do some research, watch some youtube videos, test things with the services and other things and it'll work out eventually!
Documentation + API
2 comments
I'd use something that gets the mouse position and then on a click it spawns
this isnt really specific