Hello can someone help me how to make a message like in the video after a robux purchase. how can i make a message pop up with a plop sound after a robux purchase
Here is a video
I assume you already have a script that gives you whatever you bought, so just add a line that makes the Thank you UI visible and then play a plop sound that you uploaded to roblox. It is recommended to use a RemoteEvent for this as well. Here is an example of a local script that achieves this:
local replicatedStorage = game:GetService("ReplicatedStorage")
local openThankMessage = replicatedStorage:WaitForChild("remoteEvents").openThankMessage -- Change to the name of the RemoteEvent you created that you put in a remoteEvents folder.
local sound = script.Sound -- Change to the name of your sound object that is a child of your script.
local thankMessage = script.Parent -- Assuming you put the LocalScript into the thankMessage object/UI
openThankMessage.OnClientEvent:Connect(function()
thankMessage.Visible = true
sound:Play()
end)
Then put the following lines into the script that also would give the item that they bought:
local replicatedStorage = game:GetService("ReplicatedStorage")
local openThankMessage = replicatedStorage:WaitForChild("remoteEvents").openThankMessage -- Change to the name of the RemoteEvent you created that you put in a remoteEvents folder.
openThankMessage:FireClient(player)
This should work, but you can let me know if it doesn’t by providing the error it gave!
If it did work however, then please mark this as a solution so that everyone knows its solved!
Can you make me a tut video pls
Use MarketplaceService.ProcessReceipt, so that whenever buys something, you could just clone the GUI to the player
local MPS = game:GetService("MarketplaceService")
MPS.ProcessReceipt = function(info)
local player = game.Players:GetPlayerFromUserId(info.PlayerId)
local GUI = whatever
GUI:Clone().Parent = player.PlayerGui.ScreenGui
end)
Pls Video Tutorial i don’t know where I need to put in
first script goes in one of these
and sceond goes to serverscriptservice
Where I need to put in what script
They gave you all the code you need man
Click the plus button, add a localscript, that is where you put it.
Ok i understand i need to try it
Where i need to put the scripts in where?
Can any make a video tutorial please
Dude, like seriously, tell me honestly, from how much time are you developing ? You got so many sources. It seems you’re developing from very short time, maybe days, I recommend you to clear your doubts and learn basic scripting, because I see you don’t know what’s a StarterPlayer or ServerScriptService. How come can you even script then ? If you don’t know where to add a script to make a script, how can you make a script ? So maybe try learning and forget about this message system rn. I may seem kinda rude or you know off-topic, but I just want to tell you basic things. Strengthen these things, then you’ll understand on your own. I see you got so many good solutions but still you’re asking for tutorials. Even I posted and you ignored. Please try to understand the scripting and eventually you’ll learn
i dont undertsnd englisch ggod im german
Don’t ask for a full video tutorial, it’s not the appropriate way to go about asking for help. Just use the resources give (like literally they answered all your questions) and learn.
Sie müssen versuchen, zu lernen. Es ist in Ordnung, wenn dein Englisch schlecht ist, aber du musst trotzdem versuchen, es zu lernen, anstatt die Leute einfach zu bitten, alles für dich zu tun.
For the mod overlords, I’m trying to help them understand.