My script That sets an image to an image you clicked doesn't work, Help Anyone?
1 | local event = game.ReplicatedStorage.Events.Tattoo |
3 | event.onServerEvent:Connect( function (player) |
4 | print ( "recieved event" ) |
5 | workspace [ player.Name ] .ChestPieceCore.Tattoo.TImage.Image = player.PlayerGui.CGUI.MainFrame.Tattoos.WhichTattoo.Value |
So this script is an event everything works, all locations of things are right, both of the lines that should print, they print, if you want to know this is what the script does, It recieved event, prints "recieved event", and then its supposed to set a image(TImage) in a surfacegui(Tattoo) to a string value that in the local script the string value text gets set to the image address of the image you clicked, here is the local script if it helps,
1 | local event = game.ReplicatedStorage.Events.Tattoo |
3 | function leftClick(mouse) |
5 | script.Parent.Parent.WhichTattoo.Value = script.Parent.Image |
7 | script.Parent.MouseButton 1 Click:connect(leftClick) |
If you don't understand or have any questions, just ask, thankyou for your help, NSMascot