Im trying to take a paper morph, and be able to "change" parts in it.(for example, I want to turn some parts inside the paper morph transparent).,I have a gui, hooked up to a remote serverevent, that in turn is hook up to another remote event(as seen below) the main problem I am having is getting the morph on the player to change. not the original morph itself but heres the problem:
local BindableEvent = game.Workspace:WaitForChild("BindableEvent")
BindableEvent.Event:Connect(function()--this is from a remote event-- game.Workspace.NAME OF PLAYER.Chest.Dapart.Brickcolor = BrickColor.new("Really red") end)
I dont know how I can specify the player to finish this directory. If I put my own name in then it works fine BUT how can I get the name of the player who made the change to their characters morph?
BindableEventto do this, use a
RemoteEvent. Also, please format your code in code block by pressing the blue Lua icon and pasting the code in between the tildes.
local RemoteEvent = game.Workspace:WaitForChild("RemoteEvent") RemoteEvent.OnServerEvent:Connect(function(player) player.Character.Chest.Dapart.BrickColor = BrickColor.new("Really red") end)