EngediKimHyeYoung / Roblox

0 stars 0 forks source link

붉은 벽돌 밟으면 휴먼토치됨 ㅎㅎ #23

Open EngediKimHyeYoung opened 3 years ago

EngediKimHyeYoung commented 3 years ago

script.Parent.Color = Color3.fromRGB(255, 0 ,0)

local firePad = script.Parent local padPressed = false local fire = Instance.new("Fire")

function FireEffect(otherPart) local character = otherPart.Parent local humanoid = character:FindFirstChild("Humanoid")

print(character)
print(humanoid)
if humanoid ~= nil then
    if not padPressed then
        padPressed = true
        fire.Parent = otherPart
        fire.Heat = 7
        fire.Size = 7
    end
end

end

firePad.Touched:Connect(FireEffect)

image