Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

GUI(Bought With DevProduct) Showing up in Studio but Not in game?

Ok, So basically I have a DevProduct that you can buy to send a server-wide message(Telling Everyone about the purchase). When I purchase it in roblox studio, It works and makes the pop-up show up for everyone. When I use it in roblox, It does not and only the pop-up does not work. Does anyone have any idea on what is wrong?

Code:

script.Parent.Position = UDim2.new(0.5,0,-0.5,0)
script.Parent.Visible = true
game.ReplicatedStorage.Events.EveryoneSeeServerAd.OnClientEvent:Connect(function()
	script.Parent.Visible = true
	script.Parent.Position = UDim2.new(0.5,0,0.5,0)
end)

script.Parent.Confirm.MouseButton1Click:Connect(function(plr)
	script.Parent.Visible = false
	game.ReplicatedStorage.Events.plusCashone:FireServer()
	game:GetService("TeleportService"):Teleport(script.Parent.Confirm.GameID.Value, plr)
	
end)
script.Parent.Cancel.MouseButton1Click:Connect(function()
	script.Parent:TweenPosition(UDim2.new(0.5,0,-0.5,0))
	wait(1)
	script.Parent.Visible = false
end)

I Can add more code if needed.

1 comment

0

My Bad, I forgot to add a Code Block.

1 answer

FIX: I Forgot to filter it, and the filtertext was a pcall not showing up the error message. It works now!

This discussion is preserved as it was. New answers, comments, and votes are closed.