Hey. I've made a team choose, and when they press a button a few events are happening, and when I tested, all the other events worked on the server client expect for one. I tried to make a player change his clothes when it presses, it appear only for the current client and not for the server client. The destroy part is working (First 2 lines) but the clone isn't. Here's the script :

script.Parent.MouseButton1Click:Connect(function()
	game.Players.LocalPlayer.Character.Shirt:Destroy()
	game.Players.LocalPlayer.Character.Pants:Destroy()
	wait(0.1)
	local policeShirt = game.ReplicatedStorage.PoliceShirt:Clone()
	policeShirt.Parent = game.Players.LocalPlayer.Character
	local policePants = game.ReplicatedStorage.PolicePants:Clone()
	policePants.Parent = game.Players.LocalPlayer.Character
end)

Can someone help?

5 comments

0

And I used a local script btw.

0

I think you should let server to Destroy() and Clone() all of the clothes.

0

What do you mean let the server?

1

I mean you can't do anything effect to the server from client(in this case local script) except the server. So you should fire some remote event to make the server do those stuff.

0

do exacly as block said