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

= ls a valid member of boolvalue?

Asked by 5 years ago

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)

0
CODE BLOCK Gameplayer365247v2 1055 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Local values must equal something

local debounce remoteData[player.Name].Debounce

it should be something like this

local debounce = remoteData[player.Name].Debounce
1
Thx 60x20x1x1x1x1 6 — 5y
Ad

Answer this question