#Dumbell
1 messages · Page 1 of 1 (latest)
unanchor it
btw do you dont need a custom output to see errors, type /console in chat and it should give you everything you need
hes using the mobile roblox studio
its a fan made roblox studio on roblox
u first have to locate where ur stat is held
and when the tool is activated you change that stat by 1
Oh that's cool
let me write an example out rq
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
bro
** You are now Level 1! **
to fix ur anchor issue just unanchor ur tool
im. mobile
just copy and paste it
i did and it didn’t work
i did put animation
and leaderstst
and the script to get strength
but nothing happend
use that 1 i sent u
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"
wait it didnt work
yes
including ur data
im mobile
studio lite
where is ur data held
wdym?
like ur stats
dms me
send me ur leaderstat code
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
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
i currently dont have time
PLS BRO
what games did u make?
there should be a server script inside of a tool
and just paste that code inside the server script
and ur dumbbell will work
ill try
for ur animation u just need an animation with the correct name under the script