Some meshes that move with delay

Why with the eyes and the weapons (RightGrip attachment, EyesGrip attachment) it works and no with my others attachments for Hair, UpperTorso ?

There is a delay for my UpperTorsoGrip, HairGrip but no for EyesGrip for example, they have the same script.

It works for the client but not for the server.

https://gyazo.com/3115471b5ea49166f4eaffc5160e247a

Scripts :

game:GetService("RunService").Heartbeat:Connect(function()
	script.Parent.CFrame = script.Parent.Parent.TransformedWorldCFrame
end)
1 Like

I recommend using Weld. Where Part0 is the part itself and Part1 is the head.
Docs: Weld | Documentation - Roblox Creator Hub

Weld between which objects ? My grip with my accessories ?

Between hat and head. You can also change position.

2 Likes

So I link with a weld the handle of my accessories to the part of the character (hands, head, toros, etc.) ?

image

Yes, the same is done for the default character (attachment of accessories via weld)

local rs = game:GetService("ReplicatedStorage")
local rf = game:GetService("ReplicatedFirst")
local event = rs.Events.UI.MainMenu.AddElementsBSP

event.OnServerEvent:Connect(function(plr)
	local char = plr.Character
	local currentRankFromDB = plr.FromDB.Rank
	local accessories = rf.Morphs.BSP:FindFirstChild(currentRankFromDB.Value)
	
	if accessories then
		for k, obj in pairs(accessories:GetChildren()) do 
			local o = obj:Clone()
			o.Parent = char
			
			local weld = Instance.new("Weld", o)
			weld.Part0 = o.Handle
			
			if o.Name == "Gilet" then 
				weld.Part1 = char.UpperTorso
			elseif o.Name == "Etiquette" then 
				weld.Part1 = char.UpperTorso
			elseif o.Name == "Casquette" then 
				weld.Part1 = char.Head
			elseif o.Name == "GlassesEyes" then 
				weld.Part1 = char.Head
			elseif o.Name == "GlreenEyes" then 
				weld.Part1 = char.Head
			elseif o.Name == "Helmet" then 
				weld.Part1 = char.Head
			end
		end
	end
end)

https://gyazo.com/9814dff9adf19c46395609646900a0a9





To give you an idea what are accessories.

Do you have CanColide disabled or enabled?

Ah no lol, alright I will fix it.


Same problem.

Did you disable cancolide all?

Yes yes, I disabled it in my script when I give the accessory.

Why do you have 2 welds?
image

It’s auto, I did not created it, I think it’s the acessory which created it.

Can you show its properties? Maybe it’s just a conflict.

image

I think it’s a solution : https://gyazo.com/4b8304883bdafba2877727b2097ffa46

I used the plugin “Edit Rig” and I weld the head to the “Casquette” for example.
image

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.