Hello, I am trying to make a system like Group recruiting plaza where a player inputs an ID for a decal and it then changes on their stall, the problem i am facing is i am getting a failed to load error as I am not using asset ID, How can i get the asset ID from a players input?, Thanks
01 | local Colours = script.Parent.Parent.Colours |
02 | local player = game.Players.LocalPlayer |
03 |
04 | script.Parent.MouseButton 1 Click:Connect( function () |
05 | local rone = Colours.Wall 1. R.Box.Text |
06 | local gone = Colours.Wall 1. G.Box.Text |
07 | local bone = Colours.Wall 1. B.Box.Text |
08 | local rtwo = Colours.Wall 2. R.Box.Text |
09 | local gtwo = Colours.Wall 2. G.Box.Text |
10 | local btwo = Colours.Wall 2. B.Box.Text |
11 | local rthree = Colours.Ceiling.R.Box.Text |
12 | local gthree = Colours.Ceiling.G.Box.Text |
13 | local bthree = Colours.Ceiling.B.Box.Text |
14 | local rfour = Colours.Platform.R.Box.Text |
15 | local gfour = Colours.Platform.G.Box.Text |
That is the firing script,
01 | game.ReplicatedStorage.ChangeShop.OnServerEvent:Connect( function (plr, shop, rone, gone, bone,rtwo, gtwo, btwo, rthree, gthree, bthree, rfour, gfour, bfour, rfive, gfive, bfive, rsix, gsix, bsix, rseven, gseven, bseven, reight, geight, beight, shopname, decal 1 ) |
02 | local ChangeShop = workspace.Stores:FindFirstChild(shop) |
03 | if ChangeShop.Owner.Value = = plr.Name then |
04 | ChangeShop.Walls.Color = Color 3. fromRGB(rone, gone, bone) |
05 | ChangeShop.Walls 2. Color = Color 3. fromRGB(rtwo, gtwo, btwo) |
06 | ChangeShop.Roof.Color = Color 3. fromRGB(rthree, gthree, bthree) |
07 | ChangeShop.Floor_Pad.Color = Color 3. fromRGB(rfour, gfour, bone) |
08 | ChangeShop.Walls 3. Color = Color 3. fromRGB(rfive, gfive, bfive) |
09 | ChangeShop.Walls 4. Color = Color 3. fromRGB(rsix, gsix, bsix) |
10 | ChangeShop.Floor 1. Color = Color 3. fromRGB(rseven, gseven, bseven) |
11 | ChangeShop.Store_Sign.GUI_Part.Color = Color 3. fromRGB(reight, geight, beight) |
12 | ChangeShop.Store_Sign.GUI_Part.SurfaceGui.Frame.ShopName.Text = shopname |
13 | ChangeShop.Store_Sign.GUI_Part.SurfaceGui.Frame.Owner.Text = ChangeShop.Owner.Value.. "'s Shop" |
14 | ChangeShop.Decal 1. Decal.Texture = "http://www.roblox.com/asset/?id=" ..decal 1 |
15 |
16 | print ( "Done" ) |
17 | end |
18 |
19 | end ) |
1 | that's the Recieving one |