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
COMMUNITY QUESTION
How to link/conbine starterGui with serverstorage?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

11 comments
Use a remote event.
If you need help setting it up just let me know.
i need help on that too
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.
is there a need to change the script format?
just change serverstorage to replicatedstorage, let me know if that works.
ok i brb
hang on this script is at startergui
i dont follow? is this a tool or just a gui
Startergui. ReplicatedStorage > Boombox(Part) > RadioGui.Frame
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.