Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I locate the player using the GUI's character without local scripts?

I'm trying to make a GUI that when you press a button it changes your body colors and face to the pre-set decal and body colors inside the button, it's done with local scripts but the problem is well, its local, nobody else can see it which defeats the point, so how would I find the player using the GUI's character without these local scripts? Heres my code:

script.Parent.MouseButton1Down:Connect(function()
	game.Players.LocalPlayer.Character:FindFirstChild("Body Colors"):Destroy()
	local colors = script.Parent:FindFirstChild("Body Colors"):Clone()
	colors.Parent = game.Players.LocalPlayer.Character
	game.Players.LocalPlayer.Character.Head.face:Destroy()
	local face = script.Parent.face:Clone()
	face.Parent = game.Players.LocalPlayer.Character.Head
end)

2 comments

0

I would create a module script with a pre-set id's and color id's. By pressing the Button an Remote Event would be linked trough an Local script which would change the characters apparance on the server so everybody can see the differences...

0

Problem is, I'm very new with module scripts and I don't know how I would do that, is it possible you could demonstrate?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.