Hii so im trying to make a very simple dress up menu i.e a player clicks a button and gets an accessory but suddenly after adding in multiple remote events (with different names) it stopped working and I’m not sure why.
here is what the client-side script looks like: (this works fine)
function F1()
print(‘So did it work?’)
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local remoteEvent = ReplicatedStorage:WaitForChild(“F1Change”)
local player = game.Players.LocalPlayer
remoteEvent:FireServer(player)
script.Parent.Parent.Parent.Enabled = false
print(player)
end
script.Parent.Activated:Connect(F1)
And here is the server script: (this seems to not work at all ~ doesn’t print anything or give the accessory but it also doesn’t return any errors)
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local remoteEvent = ReplicatedStorage:WaitForChild(“F1Change”)
local function outfit (player)
local name = player.name
print (name,“has activated the event”)
local accessory = game.ServerStorage.CPurple:Clone()
accessory.Parent = player.Character
--local humanoid = player.Character.Humanoid
--humanoid:AddAccessory(accessory)
--humanoid.hipheight = 4.2
end
remoteEvent.OnServerEvent:Connect(outfit())