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

How to get an asset ID from an decal ID?

Asked by 5 years ago

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

0
Show us your failed attempt. kingblaze_1000 359 — 5y
0
Ok, lol THELFCMAN 9 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
01        local Colours = script.Parent.Parent.Colours
02        local player = game.Players.LocalPlayer
03 
04        script.Parent.MouseButton1Click:Connect(function()
05                local rone = Colours.Wall1.R.Box.Text
06                local gone = Colours.Wall1.G.Box.Text
07                local bone = Colours.Wall1.B.Box.Text
08                local rtwo = Colours.Wall2.R.Box.Text
09                local gtwo = Colours.Wall2.G.Box.Text
10                local btwo = Colours.Wall2.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
View all 34 lines...

That is the firing script,

01game.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, decal1)
02local ChangeShop = workspace.Stores:FindFirstChild(shop)   
03if ChangeShop.Owner.Value == plr.Name then
04ChangeShop.Walls.Color = Color3.fromRGB(rone, gone, bone)
05ChangeShop.Walls2.Color = Color3.fromRGB(rtwo, gtwo, btwo)
06ChangeShop.Roof.Color = Color3.fromRGB(rthree, gthree, bthree)
07ChangeShop.Floor_Pad.Color = Color3.fromRGB(rfour, gfour, bone)
08ChangeShop.Walls3.Color = Color3.fromRGB(rfive, gfive, bfive)
09ChangeShop.Walls4.Color = Color3.fromRGB(rsix, gsix, bsix)
10ChangeShop.Floor1.Color = Color3.fromRGB(rseven, gseven, bseven)
11ChangeShop.Store_Sign.GUI_Part.Color = Color3.fromRGB(reight, geight, beight)
12ChangeShop.Store_Sign.GUI_Part.SurfaceGui.Frame.ShopName.Text = shopname
13ChangeShop.Store_Sign.GUI_Part.SurfaceGui.Frame.Owner.Text = ChangeShop.Owner.Value.."'s Shop"
14ChangeShop.Decal1.Decal.Texture = "http://www.roblox.com/asset/?id="..decal1
15 
16print("Done")
17end
18 
19end)
1that's the Recieving one
0
What can i do to make it get the asset ID? THELFCMAN 9 — 5y
Ad

Answer this question