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

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

Asked by 5 years ago

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

Closed as Not Constructive by User#24403

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 5 years ago

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.

Ad