local button = script.Parent
local S = game.ServerStorage:WaitForChild("Boombox").Radio.Frame -- how to link startergui with serverstoarage.
local mp = game:GetService("MarketplaceService")

button.MouseButton1Click:Connect(function()
	local plr = game.Players.LocalPlayer
	if mp:PlayerOwnsAsset(plr,5426305) then
		S.Visible = true
	else
		S.Visible = false
	end
end)

--Note that thare is a screengui with a part in the serverstorage

11 comments

0

Use a remote event.

0

If you need help setting it up just let me know.

0

i need help on that too

0

Oh wait, just put the boombox in replicated storage. Its accessible by server or client so you should be able to access it with a local script.

0

is there a need to change the script format?

0

just change serverstorage to replicatedstorage, let me know if that works.

0

ok i brb

0

hang on this script is at startergui

0

i dont follow? is this a tool or just a gui

0

Startergui. ReplicatedStorage > Boombox(Part) > RadioGui.Frame

0

if this is a tool why not just give the player the boombox when they purchase the product? i dont really understand why you're doing it this way.