Hi,
Making a Killbrick is overly difficult.
There are two versions I use the first being simpler,
The second being more complex but gives a better chance of working.
Here is the first one (Simple)
03 | local trapPart = script.Parent |
04 | trapPart.CanCollide = false |
06 | local function onPartTouch(otherPart) |
07 | local partParent = otherPart.Parent |
08 | local humanoid = partParent:FindFirstChildWhichIsA( "Humanoid" ) |
14 | trapPart.Touched:Connect(onPartTouch) |
Here is the second script (Advanced)
03 | weld = Instance.new( "Weld" ) |
13 | local HitPos = x.Position |
17 | local CJ = CFrame.new(HitPos) |
19 | local C 0 = x.CFrame:inverse() *CJ |
21 | local C 1 = y.CFrame:inverse() * CJ |
37 | function onTouched(part) |
39 | local h = part.Parent:findFirstChild( "Humanoid" ) |
45 | children = h.Parent:children() |
49 | if (children [ i ] .className = = "Part" and children [ i ] .Name ~ = "Torso" ) then stick(children [ i ] , h.Parent.Torso) end |
51 | if (children [ i ] .className = = "Hat" ) then stick(children [ i ] .Handle, h.Parent.Torso) end |
55 | h.Parent.Head.Velocity = h.Parent.Head.Velocity + Vector 3. new( 5 , 0 , 0 ) |
63 | script.Parent.Touched:connect(onTouched) |
hope this helps ????
If this is what you are looking for, please click accept answer so the site knows that it has been answered