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’m making a morph -
What is the issue? Include screenshots / videos if possible!
When the player morphs their camera is stuck in place -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I did but no work
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Server (Module script)
local Morph = {}
function Morph:morphInto(target : Player, morphModel : Model)
local isR6 = script.Parent:GetAttribute("R6")
local OldCharacter = target.Character
local morphRoot = morphModel:FindFirstChild("HumanoidRootPart")
morphRoot.Anchored = false
morphModel:PivotTo(morphRoot.CFrame)
target.Character = morphModel
print("Is R6: " .. tostring(isR6))
if isR6 then
local animateR6 = script:WaitForChild("R6"):WaitForChild("Animate")
animateR6:Clone().Parent = target.Character
else
local animateR15 = script:WaitForChild("R15"):WaitForChild("Animate")
animateR15:Clone().Parent = target.Character
end
local camera = script.Parent.GetCamera:InvokeClient(target) -- nil
camera.CameraSubject = morphModel:FindFirstChildWhichIsA("Humanoid")
end
return Morph
Local script
game.ReplicatedStorage.MorphService.GetCamera.OnClientInvoke = function()
return workspace.CurrentCamera
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.