I'm a newbie to lua right now and I looked at the error and I never knew what that error meant but I do know what other errors mean.
local dialog = script.Parent dialog.DialogChoiceSelected:connect(function(player, choice) -- Check the player has a stats object local stats = player:FindFirstChild('leaderstats') if not stats then return end
local KOs = stats:FindFirstChild('KOs')
if not KOs then return end
if choice == dialog.DialogChoice['YES'] then
if KOs.Value >= 1500 then
game.ReplicatedStorage.Weapon6:Clone().Parent = player.Backpack
KOs.Value = KOs.Value - 1500
Now here's the output
Workspace.Dilinz Fifto.Head.Dialog.Script:15: 'end' expected (to close 'if' at line 12) near ''

2 comments
I have another problem. 14:33:36.884 - Workspace.Dilinz Fifto.Head.Dialog.Script:17: 'end' expected (to close 'function' at line 2) near ''
That's the exact same problem, and therefore the exact same solution. You're missing and 'end'.