Hi guys, pls help me with this. When my NPC get the gorund, doesn’t update his property FloorMaterial. After 20 seconds It change to Plastic, es very weir.
I intented with a new NPC and It is the same thing. Pls view the movie:
What do you recomend me?
AVCOIL3D
(AVCOIL)
January 27, 2024, 10:33pm
2
Can I see the code used so I can help you out?
Hi, I just used Linear Velocity and then destroyed it
local AttachmentT = Instance.new("Attachment", Target_Character.HumanoidRootPart)
local LVT = Instance.new("LinearVelocity", AttachmentT)
LVT.MaxForce = 99999--math.huge --
LVT.VectorVelocity = Character.HumanoidRootPart.CFrame.LookVector * 260 +Vector3.new(0,260,0)
LVT.Attachment0 = AttachmentT
delay(0.1, function(dt)
LVT.VectorVelocity = Vector3.new(0,0,0)
game.Debris:AddItem(AttachmentT, 0.5)
end)
AVCOIL3D
(AVCOIL)
January 28, 2024, 1:41am
4
I would try using the humanoids :MoveTo() function and see if its update afterwards.