This script is a potion that should give experience to the player. I am having trouble connecting the give xp event to the player on the leaderboard script. Ill show the script and <— to the line I need adjusted. I will also add two screenshots, one of the error, and one of the leaderboard script that the error is referring to.
local tool = script.Parent
local debounce = false
tool.Activated:Connect(function()
local drink = script.Parent.Handle.drink
local smash = script.Parent.Handle.glassbreak
if debounce then return end
debounce = true
game.ServerStorage.GiveXPBoss:Fire() ------ this is the line I need to conect to the player using the item.
drink:Play()
wait(2)
tool.Handle.Transparency = 1
smash:Play()
wait(.5)
tool:Destroy()
debounce = false
end)