Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago
Edited 2 years ago

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.

0
My Bad, I forgot to add a Code Block. JxstNoob 0 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

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

Ad

Answer this question