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.
FIX: I Forgot to filter it, and the filtertext was a pcall not showing up the error message. It works now!