how do i make a ImageButton that when u click a part from serverstorage called Sword1 clone its self and puts it self in replicated storage and also rename its self to sword and when u click a diffrent button it delets it self
i dont want u guys just to do all work u can explain or send me a link to some wiki or something
I'll try to explain it step by step.
How do I use clone?
brick = workspace.Part -- the part you want to clone. dest = game.ReplicatedStorage -- this is the destination. --=={{ lets get started }}==-- brickc = brick:Clone() -- "brickc" is the literal clone, its like doing b = Instance.new("Part") brickc.Parent = dest -- putting the cloned brick in the destination which is ReplicatedStorage
Ok, But how do I make it when I click a button?
button = Instance.new("TextButton") -- this will be your button, but for reference i'm making a button --=={{ lets get started }}==-- function myfunction() -- function that will run when you click the button. print"Oh no, I've been bamboozled!" -- prints "Oh no, I've been bamboozled!" in console end -- ends function button.MouseButton1Click:connect(myfunction) --[[ button is the variable for your button. MouseButton1Click is an event that fires when the button is clicked with mouse 1. ":connect" starts up the function which is "myfunction"]]
And just incase you wan't to do more research...
And just incase you wan't to do more research I've linked all of the sources that would help you.
Lastly, If you have any more questions please ask me.
and if this was not the solution you we're looking for, I'd be more then happy to help you.