1. BrickPlanet Forum
  2. Game & Scripting Discussion
  3. Kill brick script, Speed brick script
Kill brick script, Speed brick script
Hivemind
Level 10
Joined Nov 12th 2022
Posts 216
Posted Feb 23rd 2023 at 3:05AM

-- Kill Brick by Hivemind (Parry#8624) function onTouched(part)

if part:IsA("Player") then part.Health = 0 end

end

script.Parent.Touched:Connect(onTouched)

-- Speed Brick by Hivemind (Parry#8624) local desiredSpeed = 10

function onTouched(part) if part:IsA("Player") then part.WalkSpeed = desiredSpeed end end

script.Parent.Touched:Connect(onTouched)

Either insert these scripts into the brick you want to become a kill brick / speed brick or change "script.Parent" to your desired part

PurpleSecretAgent
Level 8
Joined Nov 14th 2022
Posts 568
Posted Feb 25th 2023 at 8:52PM
Originally posted by Hivemind on Feb 23rd 2023 at 3:05AM

-- Kill Brick by Hivemind (Parry#8624) function onTouched(part)

if part:IsA("Player") then part.Health = 0 end

end

script.Parent.Touched:Connect(onTouched)

-- Speed Brick by Hivemind (Parry#8624) local desiredSpeed = 10

function onTouched(part) if part:IsA("Player") then part.WalkSpeed = desiredSpeed end end

script.Parent.Touched:Connect(onTouched)

Either insert these scripts into the brick you want to become a kill brick / speed brick or change "script.Parent" to your desired part

I'll copy those and paste them to keep it in my memo, thanks.

viv
Level 4
Joined Feb 4th 2023
Posts 11
Posted Feb 26th 2023 at 1:58PM

thanks

madstingray
Level 7
Joined Nov 12th 2022
Posts 823
Posted Feb 26th 2023 at 4:42PM

thank

Immersive
Level 7
Joined Dec 3rd 2022
Posts 28
Posted Feb 27th 2023 at 12:10PM

Thank You!

Search Forum

Thread Info

Replies
4
Views
47
Created Feb 23rd 2023
Last Reply Feb 27th 2023