#Dumbell

1 messages · Page 1 of 1 (latest)

tawny ocean
#

how can i make it like i get + 1 strength i got the leaderstat but idk how to make it to spawn in my hand with an animation if someone have it pls tell me how to get it too

wicked olive
#

unanchor it

snow jungle
#

btw do you dont need a custom output to see errors, type /console in chat and it should give you everything you need

harsh pasture
#

its a fan made roblox studio on roblox

harsh pasture
#

and when the tool is activated you change that stat by 1

snow jungle
harsh pasture
#

let me write an example out rq

harsh pasture
# tawny ocean how can i make it like i get + 1 strength i got the leaderstat but idk how to ma...
local equipped = false
local debuff = false
local globalSettings = {
    CurlDelay = 1;
}

script.Parent.Equipped:Connect(function()
    currentPlayer = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
    equipped = true
end)

script.Parent.Unequipped:Connect(function()
    equipped = false
end)

script.Parent.Activated:Connect(function()
    if equipped == true and debuff == false then
        local pathToStat = nil -- change nil to the path of where ur stats should be
        debuff = true
        
        pathToStat.Value += 1
        
        task.wait(globalSettings.CurlDelay)
        debuff = false
    end
end)```
#

this should be inside of a server script inside of the tool

tawny ocean
#

bro

whole sealBOT
#

studio** You are now Level 1! **studio

harsh pasture
#

to fix ur anchor issue just unanchor ur tool

tawny ocean
#

im. mobile

harsh pasture
#

just copy and paste it

tawny ocean
#

i did put animation

#

and leaderstst

#

and the script to get strength

#

but nothing happend

harsh pasture
#

use that 1 i sent u

tawny ocean
#

alr wait like 10 min

harsh pasture
# tawny ocean alr wait like 10 min
local equipped = false
local debuff = false
local globalSettings = {
    CurlDelay = 1;
}

script.Parent.Equipped:Connect(function()
    currentPlayer = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
    equipped = true
end)

script.Parent.Unequipped:Connect(function()
    equipped = false
end)

script.Parent.Activated:Connect(function()
    if equipped == true and debuff == false then
        local pathToStat = nil -- change nil to the path of where ur stats should be
        local pathToCurl = script:FindFirstChild("CurlAnimation") -- make a animation in the script and name it CurlAnimation
        if currentPlayer.Character then
            if currentPlayer.Character:FindFirstChildWhichIsA("Humanoid") then
                pathToCurl = currentPlayer.Character:FindFirstChildWhichIsA("Humanoid"):FindFirstChild("Animator"):LoadAnimation(pathToCurl)
            else
                return
            end
        else
            return
        end
        debuff = true
        
        pathToCurl:Play()
        pathToStat.Value += 1
        
        task.wait(globalSettings.CurlDelay)
        debuff = false
    end
end)```
#

this includes an animation

#

just make a new animation under the script and name it "CurlAnimation"

tawny ocean
#

wait it didnt work

harsh pasture
#

did u edit the script

#

where i told u to

#

..

tawny ocean
#

yes

harsh pasture
#

including ur data

tawny ocean
#

im mobile

harsh pasture
#

yes but

#

u can still view the code

tawny ocean
#

studio lite

harsh pasture
#

where is ur data held

tawny ocean
#

wdym?

harsh pasture
#

like ur stats

tawny ocean
#

yes

#

gui or leaderstat?

tawny ocean
harsh pasture
#

send me ur leaderstat code

tawny ocean
#

wait

#
    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = player

    local strength = Instance.new("IntValue")
    strength.Name = "Strength"
    strength.Value = 0
    strength.Parent = leaderstats
end)```
#

@harsh pasture

harsh pasture
# tawny ocean ```game.Players.PlayerAdded:Connect(function(player) local leaderstats = Ins...
local equipped = false
local debuff = false
local globalSettings = {
    CurlDelay = 1;
}

script.Parent.Equipped:Connect(function()
    currentPlayer = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
    equipped = true
end)

script.Parent.Unequipped:Connect(function()
    equipped = false
end)

script.Parent.Activated:Connect(function()
    if equipped == true and debuff == false then
        local pathToStat = currentPlayer.leaderstats.Strength -- change nil to the path of where ur stats should be
        local pathToCurl = script:FindFirstChild("CurlAnimation") -- make a animation in the script and name it CurlAnimation
        if pathToCurl ~= nil then
            if currentPlayer.Character then
                if currentPlayer.Character:FindFirstChildWhichIsA("Humanoid") then
                    pathToCurl = currentPlayer.Character:FindFirstChildWhichIsA("Humanoid"):FindFirstChild("Animator"):LoadAnimation(pathToCurl)
                else
                    return
                end
            else
                return
            end
        end
        debuff = true
        
        if pathToCurl ~= nil then
            pathToCurl:Play()
        end
        pathToStat.Value += 1
        
        task.wait(globalSettings.CurlDelay)
        debuff = false
    end
end)```
#

that should work now

#

i edited it to work with ur leaderstats

tawny ocean
#

can u join my game?

#

and

#

make

#

it

#

please

harsh pasture
#

i currently dont have time

tawny ocean
#

PLS BRO

harsh pasture
#

this is how it should look

tawny ocean
#

what games did u make?

harsh pasture
#

there should be a server script inside of a tool

#

and just paste that code inside the server script

#

and ur dumbbell will work

tawny ocean
#

ill try

harsh pasture
#

for ur animation u just need an animation with the correct name under the script

tawny ocean
#

what game did u create

#

your user developer

harsh pasture
#

this is how it should look

tawny ocean
#

HELP

#

HELLOO

#

what games did u create?

#

@harsh pasture BRO PLS TELL ME HOW CAN I MAKE A SAVING DATA TO SAVE MY CASH