Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Beginning scripter in need of assistance?

local Brick = game.Workspace.KillBlock

local function PlayerTouched(Part)
	local Parent = Part.Parent
	if game.Players:GetPlayerFromCharacter(Parent) then
		Parent.Humanoid.Health = 0
	end
end

Brick.Touched:connect(PlayerTouched)

So I took a script from a separate question lower in the feed, but would this script still work, since I replaced the part in question with a part called "KillBlock"? if it wouldn't still work, what do I need to change to get it to work?

3 comments

0

Yes, this would still work.

0

Also, this is an XY question, so please refrain from asking about solution Y rather than problem X in the future.

0

Any errors?

1 answer

Yes, it should still work

2 comments

0

this isnt an answer bruv, it should work but it not.

0

i appreciate effort though

This discussion is preserved as it was. New answers, comments, and votes are closed.