Issues When Changing Weld's Position?

I don’t think that I should be able to walk through walls but that’s whats happening. On the wiki it tells you to simply update the position of a part to update the weld constraint’s position.

When I update the position in a Heartbeat event, it allows me to walk through walls like a superhero and I’m no supernoob. The script is below as well as a video clip. The heartbeat event runs when the flashlight is on and you can see in the video that collisions work fine until the flashlight turns on

I also found out that movement doesn’t replicate when the weld is getting updated

Script:

RunService.Heartbeat:Connect(function()
   for _, light in pairs(tool.Light:GetChildren()) do
	  light.Size = lightSize[light] * (scale or 1)
	  light.Position = toolOrigin.Position + -toolOrigin.CFrame.rightVector * light.Size.Y / 2
   end
end)

Video:

1 Like

I might be wrong when I say this but maybe its because the light is attached to your body and the actual light is cancolide = false which will affect the person