Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Beginning scripter in need of assistance?

Asked by 4 years ago
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?

0
Yes, this would still work. DeceptiveCaster 3761 — 4y
0
Also, this is an XY question, so please refrain from asking about solution Y rather than problem X in the future. DeceptiveCaster 3761 — 4y
0
Any errors? royaltoe 5144 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Yes, it should still work

0
this isnt an answer bruv, it should work but it not. royaltoe 5144 — 4y
0
i appreciate effort though royaltoe 5144 — 4y
Ad

Answer this question