This is only a snippet, but I'm getting an error on line 4. Worked before, but I replaced the model with a newer version and it broke.
function onTouched(Brick)
if enabled == true then
local Player = Brick.Parent:findFirstChild("Humanoid")
local Character = game:GetService('Players'):GetPlayerFromCharacter(Player.Parent)

1 comment
This is a style mistake but not an error.