Hey Developers!
I am new at scripting and I made one script, but it doesn’t work it says “MouseButton1Down” is not valid member of ImageLabel"
I would love if someone told me whats wrong. thanks
here is the script:
local CarParams = game.ReplicatedStorage:WaitForChild("GetCarParams"):InvokeServer(script.Parent.Name)
local CarImage = script.Parent.CarImage
local ShowBoughtFrame = script.Parent.Parent.Parent.Parent.Parent.ShowBuyFrame
script.Parent.CarName.Text = CarParams.Name
script.Parent.Cost.Text = CarParams.Cost
script.Parent.MouseButton1Down:Connect(function()
ShowBoughtFrame:Fire(CarParams.Name, CarParams.Cost, CarParams.Power, script.Parent.CarImage)
end)