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

How to make the reflectance random ? READ BELOW

Asked by
Bulvyte 388 Moderation Voter
8 years ago

this is just an example, so you don't say it's a "request" don't change this script i just need 5-11 lines to know how to do it ?

    if target ~= nil then
        if ready == true then
            ready = false
            Laser(turret.Position,target.Character.Torso.Position)
            target.Character.Humanoid:TakeDamage(set.damage)
            target.Character:findFirstChild("Head").Reflectance(math.random)
            target.Character:findFirstChild("Torso").Reflectance(math.random)
            target.Character:findFirstChild("Right Arm").Reflectance(math.random)
            target.Character:findFirstChild("Right Leg").Reflectance(math.random)
            target.Character:findFirstChild("Left Arm").Reflectance(math.random)
            target.Character:findFirstChild("Left Leg").Reflectance(math.random)
            wait(0.1)
            target.Character:findFirstChild("Head").Reflectance = 0
            target.Character:findFirstChild("Torso").Reflectance = 0
            target.Character:findFirstChild("Right Arm").Reflectance = 0
            target.Character:findFirstChild("Right Leg").Reflectance = 0
            target.Character:findFirstChild("Left Arm").Reflectance = 0
            target.Character:findFirstChild("Left Leg").Reflectance = 0
            turret.Fire:Play()
            wait(set.shotcooldown)
            ready = true
        end
    end
    target = nil
end)

thanks !

Answer this question