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

Changing material changes roblox physics?

Asked by 5 years ago
Edited 5 years ago
script.Parent.CornerWedgeAlpha.Touched:Connect(function()
        if debounce2 == false then 
            debounce2 = true
        for i,v in pairs (script.Parent:GetDescendants()) do
            if v:IsA("Part") or v:IsA("CornerWedgePart") then
        local fire = Instance.new("Fire") 
        fire.Parent = v
            end
        end
end
    local explosion = Instance.new("Explosion")
        explosion.Parent = script.Parent.Part
        explosion.BlastPressure = 40000
end)

^ this explodes like normal

script.Parent.CornerWedgeAlpha.Touched:Connect(function()
        if debounce2 == false then 
            debounce2 = true
        for i,v in pairs (script.Parent:GetDescendants()) do
            if v:IsA("Part") or v:IsA("CornerWedgePart") then
v.Material = ("Corroded Metal")         
local fire = Instance.new("Fire") 
        fire.Parent = v
            end
        end
end
    local explosion = Instance.new("Explosion")
        explosion.Parent = script.Parent.Part
        explosion.BlastPressure = 40000
end)

^ this explodes with much less force

do materials have effects on mass or is my script wrong in some way?

0
denseness isn't weight 129Steve129 7 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Lets say you have ice. An ice part will float on water better then a brick part. There are physical properties associated with the different materials. Ice is less dense then brick. You can open the CustomPhysicalProperties section of a part to see the different material properties.

Ad

Answer this question