So me working with Cookie Studios are working on a new game
But if we make a textbox that displays any image with the id written in the textbox
Please Help.
SCRIPT IMAGE OF THE PICKIMAGE FUNCTION
script:
local event = game.ReplicatedStorage.Events.SetCompanyInfo
local things = script.Parent.MainFrame
local function checkErrorText()
if things.Naming.TextBox.Text ~= "" then
if string.len(things.Naming.TextBox.Text) < 5 then
things.Naming.ERROR.Visible = true
game.ReplicatedStorage.Events.SetCompanyInfo:FireServer("Cname", "")
else
things.Naming.ERROR.Visible = false
game.ReplicatedStorage.Events.SetCompanyInfo:FireServer("Cname", things.Naming.TextBox.Text)
end
end
end
local function pickImage()
if things.LogoPicking.TextBox.Text ~= "" then
things.LogoPicking.ImageLabel.Image = "rbxassetid://" .. things.LogoPicking.TextBox.Text
game.ReplicatedStorage.Events.SetCompanyInfo:FireServer("Cname", "rbxassetid://" .. things.LogoPicking.TextBox.Text)
end
end
things.StartPage.CountinueButton.MouseButton1Click:Connect(function()
things.Naming.Visible = true
things.StartPage.Visible = false
end)
things.Naming.TextBox.Changed:Connect(checkErrorText)
things.Naming.CountinueButton.MouseButton1Click:Connect(function()
if things.Naming.TextBox.Text ~= "" and things.Naming.ERROR.Visible == false then
things.LogoPicking.Visible = true
things.Naming.Visible = false
end
end)
things.LogoPicking.TextBox.Changed:Connect(pickImage)
things.LogoPicking.Help.MouseButton1Click:Connect(function()
script.Parent.LogoPickHelp.Visible = true
end)
script.Parent.LogoPickHelp.CountinueButton.MouseButton1Click:Connect(function()
script.Parent.LogoPickHelp.Visible = false
end)
Batch Thumbnail invalid thumbnail size for type=Asset&id=6399522603&w=135&h=135&filters=: Valid sizes for type Asset are 150x150, 294x144, 420x420, 480x270, 768x432
btw i am using the roblox image to use the images!
local event = game.ReplicatedStorage.Events.SetCompanyInfo
local things = script.Parent.MainFrame
local function checkErrorText()
if things.Naming.TextBox.Text ~= "" then
if string.len(things.Naming.TextBox.Text) < 5 then
things.Naming.ERROR.Visible = true
game.ReplicatedStorage.Events.SetCompanyInfo:FireServer("Cname", "")
else
things.Naming.ERROR.Visible = false
game.ReplicatedStorage.Events.SetCompanyInfo:FireServer("Cname", things.Naming.TextBox.Text)
end
end
end
local function pickImage()
if things.LogoPicking.TextBox.Text ~= "" then
local image = string.format("rbxthumb://type=Asset&id=%s&w=150&h=150", things.LogoPicking.TextBox.Text)
things.LogoPicking.ImageLabel.Image = image
game.ReplicatedStorage.Events.SetCompanyInfo:FireServer("Cname", image)
end
end
things.StartPage.CountinueButton.MouseButton1Click:Connect(function()
things.Naming.Visible = true
things.StartPage.Visible = false
end)
things.Naming.TextBox.Changed:Connect(checkErrorText)
things.Naming.CountinueButton.MouseButton1Click:Connect(function()
if things.Naming.TextBox.Text ~= "" and things.Naming.ERROR.Visible == false then
things.LogoPicking.Visible = true
things.Naming.Visible = false
end
end)
things.LogoPicking.TextBox.Changed:Connect(pickImage)
things.LogoPicking.Help.MouseButton1Click:Connect(function()
script.Parent.LogoPickHelp.Visible = true
end)
script.Parent.LogoPickHelp.CountinueButton.MouseButton1Click:Connect(function()
script.Parent.LogoPickHelp.Visible = false
end)