ImageLabel wont change to the weapons texture id

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    To change the texture id when this button is clicked on
  2. What is the issue? Include screenshots / videos if possible!
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I haven’t found any yet or i don’t think there is at all
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
    i havent read alot so i like to keep focus on whats important i thought this would work but it doesnt
--local script
local Game = game
sp = script.Parent
local sps = script.Parent.Parent.Parent.GearFrame.GearLabel
local spss = Game:GetService("ReplicatedStorage"):WaitForChild("Items").AmethystPeriastron

sp.MouseButton1Click:Connect(function()
sps = spss.TextureId
print("Remote Fired")    
local remote = game:GetService("ReplicatedStorage"):WaitForChild("GiveGear")
    remote:FireServer("Giver Gear","Two Seater Rainbow Magic Carpet")
end)

pretty sure its because

sps isnt GearLabel.Image, you’re telling it to change something to the textureid but it doesnt know what

in short :

--local script
local Game = game
sp = script.Parent
local sps = script.Parent.Parent.Parent.GearFrame.GearLabel
local spss = Game:GetService("ReplicatedStorage"):WaitForChild("Items").AmethystPeriastron

sp.MouseButton1Click:Connect(function()
sps.Image = spss.TextureId
print("Remote Fired")    
local remote = game:GetService("ReplicatedStorage"):WaitForChild("GiveGear")
    remote:FireServer("Giver Gear","Two Seater Rainbow Magic Carpet")
end)

then what would i do idk alot about coding but i do know a bit

change sps to sps.Image so then it actually changes the image

yep it works now thanks man appreciate it