So I’m trying to make a character customaztion, but the new character can’t walk, jump, e.t.c, and the camera is not in the correct place
-- Server Script
local event = game.ReplicatedStorage:WaitForChild('John')
event.OnServerEvent:Connect(function(player, char)
local character = game.ReplicatedStorage[char]:Clone()
if not character then return end
character.Parent = workspace
player.Character:Destroy()
player.Character = character
workspace.Camera.CameraSubject = character.Humanoid
workspace.Camera.CameraType = Enum.CameraType.Fixed
end)
-- local script
script.Parent.MouseButton1Click:Connect(function()
local debounce = false
if debounce == true then return end
debounce = true
local char = 'JohnCharacter'
local event = game.ReplicatedStorage:WaitForChild('John')
event:FireServer(char)
script.Parent.Parent.Visible = false
end)
Help appreciated!