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

How do i change vaule upon a gui script?

Asked by 4 years ago

So i made this but i don't know how to change the vaule would i write something like add? code

local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
local done = false
local disconnected = false
local deb = false
plr.Character.ChildAdded:Connect(function(x)
    mouse.Button1Down:Connect(function()
        if x.Name == "Dig" then -- change to the tool name
            if deb == false then
            disconnected = false
            if x.Parent == plr.Character then
                script.Parent.PutInStarterGui.Full.Visible = true
                script.Parent.PutInStarterGui.Full.Miniature:TweenSize(UDim2.new(1,0,1,0),"Out","Quad",1)
                wait(2)
                    if disconnected == false then
                        workspace.Main_Dig.Dig_event:FireServer(mouse.Hit.p)
                    end
                script.Parent.PutInStarterGui.Full.Miniature.Size = UDim2.new(0,0,1,0)
                script.Parent.PutInStarterGui.Full.Visible = false
            end
            else
                deb = false
            end
        end 
    end)
end)
mouse.Button1Up:Connect(function()
    disconnected = true
    script.Parent.PutInStarterGui.Full.Miniature.TextLabel.Text = script.Parent.LoadBarPercentage.Value
    script.Parent.PutInStarterGui.Full.Miniature.TextLabel.Text = script.Parent.LoadBarPercentage.Value.."%"
    script.Parent.PutInStarterGui.Full.Miniature.Size = UDim2.new((script.Parent.LoadBarPercentage.Value*.01),0,1,0)
    script.Parent.PutInStarterGui.Full.Visible = false
    deb = true
end)
0
which value do you want to change? Lazarix9 245 — 4y
0
the loadbarperentage value Deinonychusaurus 21 — 4y

Answer this question