You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want It where It where It well propery morph the packman modal to the player when they spawn in the game -
What is the issue? Include screenshots / videos if possible!
I’m having issue with the Camera part of the player morphin when it morph the player when joining the game the Camera to far away from the player in i can see the morp clone on the spwner it just that the camera is not aimming at it heres one screenshot of it doing it
in also when i try to turn the Camera with my mouse it glitch the camera in heres a screeenshot of whats inside the morph model
-
What solutions have you tried so far? Did you look for solutions on the Creator Hub?
I tryed added an if statment for the Camera part of it to see if that would fix it
heres my script for the morph system
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local packmanTemplate = workspace:WaitForChild("packman"):WaitForChild("Model")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
task.wait(0.1)
if character then
character:Destroy()
end
local packmanClone = packmanTemplate:Clone()
packmanClone.Name =player.Name
packmanClone.Parent = workspace
if not packmanClone.PrimaryPart then
packmanClone.PrimaryPart = packmanClone:FindFirstChildWhichIsA("BasePart")
end
local spawnLocation = workspace:FindFirstChild("SpawnLocation")
if spawnLocation and packmanClone.PrimaryPart then
packmanClone:SetPrimaryPartCFrame(spawnLocation.CFrame + Vector3.new(0, 3, 0))
end
player.Character = packmanClone
if packmanClone:FindFirstChild("Humanoid") then
packmanClone.Humanoid.CameraOffset = Vector3.new(0, 0, 0)
packmanClone.Humanoid:ChangeState(Enum.HumanoidStateType.Physics)
packmanClone.Humanoid:MoveTo(Vector3.new(0,0,0))
end
end)
end)

