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

ServerScriptService.Remotes:25: 'end' expected (to close 'function' at line 5) near '<eof>'?

local replicatedStorage = game:GetService("ReplicatedStorage")

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

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

print("Finded")

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

local debounce remoteData[player.Name].Debounce

'=' if not debounce then

print("Find Debounce Value")

debounce.Value = true

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

end

1 answer

Based on the script you given, on line 3, you were supposed to close a "function" or event you made. use end) instead of end at the last line.

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