Part not detecting collisions with baseplate

  1. What do you want to achieve? Keep it simple and clear!
    Get a part to detect when colliding with the baseplate

  2. What is the issue? Include screenshots / videos if possible!
    The collision detection seemingly doesn’t work for the baseplate, while working when touching the player

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’m not really sure what i can try to remedy this, I’ve tried making the part collectable and making sure canTouch is on
    I have had no luck looking for similar issues

The part is made under the player and i know its not due to it already being in the base plate as you spawn in the air

part collision detection code:

CharGround.Touched:Connect(function(otherPart: BasePart)
	if otherPart ~= Char then
		print("boing")
		Jumps = 1
	end
end)

Definitions of Char and CharGround

Char = Instance.new("Part")
Char.Name = plr.Name
Char.Size = Vector3.new(4,8,4)
Char.Position = Vector3.new(0,25,0)
Char.Parent = game.Workspace.PlayerContainer

CharGround = Instance.new("Part")
CharGround.Name = "groundcheck"
CharGround.Size = Vector3.new(3.9,0.1,3.9)
CharGround.Position = Vector3.new(0,22,0)
CharGround.Parent = Char
CharGround.Anchored = true
CharGround.CanCollide = false

the single line of code updating the position of CharGround using RunService.Heartbeat:

CharGround.Position = Char.Position - Vector3.new(0,Char.Size.Y/2+0.2,0)

I may have understood the question wrong, but I’m pretty sure that the .Touched event fires only when a part comes in contact with another part through physics, like gravity or player walking. When you change the position of an anchored part, it has no physical movement

2 Likes

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