I have this one piece game and im using dev console in game to give my self a fruit but whenever i use this script game.ReplicatedStorage.FolderChange:FireServer("llBreezyll", "DevilFruit", "Flame") it says "fire server can only be called from the client". what do i do? please help

14 comments

0

:FireServer() HAS to be in LOCAL script, NOT a SERVER script.

0

So what would i have to do to give my self the fruit?

0

if you you sending messages from server to player use :FireClient() or :FireAllClients()

0

use .OnClientEvent in the localscript

0

I'm new to this so i really don't understand most of this mind making this script work? game.ReplicatedStorage.FolderChange:FireServer("YourName", "DevilFruit", "DevilFruitYouWant")

0

please edit your question with all your scripts so I can help

0

?

0

I just need help with this script game.ReplicatedStorage.FolderChange:FireServer("llBreezyll", "DevilFruit", "Virus")

0

game.ReplicatedStorage.FolderChange:FireClient(llBreezyll, "DevilFruit", "Virus")

0

it says fireclient must be a player object

0

Oh you didn't put in the quotation marks but now it says unable to cast value to object

0

if you got a connect function then do: thing:Connect(function(targetplayer) game.ReplicatedStorage.FolderChange:FireClient(targetplayer, "DevilFruit", "Virus") end)

0

it says console error 2 syntax error near