So, I was playing around with changing a player's appearance via CharacterAppearance and I've stumbled upon an issue. It works perfectly fine in studio, but it doesn't want to work in-game. Tried multiple different things, but nothing seems to work. It's been FE'd, so I honestly don't know what the issue is. Here's what I've got:
Server Script:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ChangeEvent = ReplicatedStorage:WaitForChild("ChangeEvent")
local Players = game:GetService("Players")
local function changed(plr)
plr.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1"
local Pos = plr.Character:GetPrimaryPartCFrame()
plr:LoadCharacter()
plr.Character:SetPrimaryPartCFrame(Pos)
print("Changed")
end
ChangeEvent.OnServerEvent:Connect(changed)
Local Script:
local UserInputService = game:GetService("UserInputService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Event = ReplicatedStorage:WaitForChild("ChangeEvent")
local function change(inputObject, gameProcessed)
if inputObject.KeyCode == Enum.KeyCode.E then
Event:FireServer()
print("Key Pressed")
end
end
UserInputService.InputBegan:Connect(change)

2 comments
Thanks a bunch, your fix worked like a charm. It functions as it should now.
No problem, if you want you can go ahead and accept my answer then the thread will be closed to responses, good luck!