Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

= ls a valid member of boolvalue?

local replicatedStorage = game:GetService("ReplicatedStorage")

local remoteData = game:GetService("ServerStorage"):WaitForChild("RemoteData")

local cooldown = 1

replicatedStorage.Remotes.Lift.OnServerEvent:connect(function(player)

print("Fired")

if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end

local debounce remoteData[player.Name].Debounce

Problem Here! '=' if not debounce.Value then

print("Got past the debounce if statement")

debounce.Value = true

player.leaderstats.Strength.Value = player.leaderstats.Strength + 5 * (player.leaderstats.Rebirths.Value + 1)

wait(cooldown)

debounce.Value = false

end

end)

1 comment

0

CODE BLOCK

1 answer

Local values must equal something

local debounce remoteData[player.Name].Debounce

it should be something like this

local debounce = remoteData[player.Name].Debounce

1 comment

1

Thx

This discussion is preserved as it was. New answers, comments, and votes are closed.