Im trying to make a devil fruit eating system but whenever i try to eat it it says Event is not a valid member of LocalScript "Workspace.sanstempapyrus.Ope-Ope.WhenUsed"
Here is the local script:
local tool = script.Parent local eating = false tool.Equipped:Connect(function() tool.Activated:Connect(function() if eating == false then eating = true script.Event:FireServer("Eat") end end) end)
And this is the script inside the local script:
script.Parent.Event.OnServerEvent:Connect(function(Player, Value) if Value == "Eat" then local tool = script.Parent.Parent print("eating") end end)