-
What do you want to achieve?
I want to make the player transform into objects in my game -
What is the issue? Include screenshots / videos if possible!
https://gyazo.com/51bb5c1b71a324edb64e7bc2fd1b7b61 With the method I am using motor6D, but the orignal root part is colliding with any parts thus it’s incorrect -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried using Player.Character = Model, But this resets the camera subjects therefore every time the player wants to transform it resets the camera and it’s ugly
The code I use is :
local char = plr.Character
local humanoid = char.Humanoid
local Root = char.HumanoidRootPart
local Glass = game.ServerStorage.Glass:Clone()
Glass.Parent = workspace
local Joint = Instance.new("Motor6D")
Joint.Parent = Root
Joint.Part0 = Root
Joint.Part1 = Glass.HumanoidRootPart
Joint.C0 = CFrame.new(0,-2,0)
for i,v in ipairs(char:GetDescendants()) do
if v:IsA("Part") or v:IsA("Decal") then
v.Transparency = 1
end
end