Okay so basically I'm making a system where you put an ID in a TextBox and it'll load an image, and everything around that is fine, but whenever I put the ID for the image in through script, it doesn't like it and it doesn't load, but when I put it in through Studio, it loads fine, although I've noted that it alters the number, however the amount subtracted is inconsistent - sometimes it gives me a reduction of 3, other times it gives me a reduction of 7.

Code:

local event = script.Parent.Parent.Parent.Parent.ChangeImageID 

event.OnServerEvent:Connect(function(player, ID)
	script.Parent.Image = "rbxasset://"..ID
end)

Local Script:

local event = script.Parent.Parent.Parent.Booth.Value.ChangeImageID

script.Parent.Apply.MouseButton1Click:Connect(function()
	local ID = script.Parent.Text
	event:FireServer(ID)
end)

If anyone can help me, that would be really appreciated.

Thanks.

3 comments

0

can you provide the code for this?

0

can you show us the local script so we can see the information you send

0

It's just the ID, not that important, but sure