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

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

Answer this question