How do I make a clickable sign?
Asked by
8 years ago Edited 8 years ago
Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.
So I am trying to make an object that can be clicked, and when clicked it will prompt the player to buy a gamepass. I have the script inside a ClickDetecter which is inside the object.
Here is what I tried but it didn't work.
1 | local player = game.Players.LocalPlayer |
3 | script.Parent.Clicker.ClickDetector.MouseClick:connect( function () |
4 | game:GetService( "MarketplaceService" ):PromptPurchase(player, id) |
If anyone could tell me what I am doing wrong or how to fix it I would be very grateful.
Thanks in advanced!