How to link/conbine starterGui with serverstorage?
Asked by
5 years ago Edited 5 years ago
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