the error script (its receiving remote script)t:
game.ReplicatedStorage.Remote.OnServerEvent:Connect(function(falls, item, plr) print(falls) print(item) print(plr) if game.Players:FindFirstChild(plr).leaderstats["???????"].Value == falls then game.ReplicatedStorage.items:FindFirstChild(item):Clone().Parent = game.Players:FindFirstChild(plr).Backpack elseif game.Players:FindFirstChild(plr).leaderstats["???????"].Value > falls then game.ReplicatedStorage.items:FindFirstChild(item):Clone().Parent = game.Players:FindFirstChild(plr).Backpack else plr:Kick("????????: false") end end)
now the sending script
script.Parent.MouseButton1Click:Connect(function() if game.Players.LocalPlayer.leaderstats["???????"].Value == script.Parent.falls.Value then workspace.alert:Play() game.ReplicatedStorage.Remote:FireServer(script.Parent.falls.Value, script.Parent.item.Value, game.Players.LocalPlayer.Name) elseif game.Players.LocalPlayer.leaderstats["???????"].Value > script.Parent.falls.Value then workspace.alert:Play() game.ReplicatedStorage.Remote:FireServer(script.Parent.falls.Value, script.Parent.item.Value, game.Players.LocalPlayer.Name) end end)
if anyone could help that would be great