Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm using this script and it says fire server can only be called from the client?

Asked by 6 years ago

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

0
:FireServer() HAS to be in LOCAL script, NOT a SERVER script. abnotaddable 920 — 6y
0
So what would i have to do to give my self the fruit? marcinpl123 -5 — 6y
0
if you you sending messages from server to player use :FireClient() or :FireAllClients() abnotaddable 920 — 6y
View all comments (10 more)
0
use .OnClientEvent in the localscript abnotaddable 920 — 6y
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") marcinpl123 -5 — 6y
0
please edit your question with all your scripts so I can help abnotaddable 920 — 6y
0
? marcinpl123 -5 — 6y
0
I just need help with this script game.ReplicatedStorage.FolderChange:FireServer("llBreezyll", "DevilFruit", "Virus") marcinpl123 -5 — 6y
0
game.ReplicatedStorage.FolderChange:FireClient(llBreezyll, "DevilFruit", "Virus") abnotaddable 920 — 6y
0
it says fireclient must be a player object marcinpl123 -5 — 6y
0
Oh you didn't put in the quotation marks but now it says unable to cast value to object marcinpl123 -5 — 6y
0
if you got a connect function then do: thing:Connect(function(targetplayer) game.ReplicatedStorage.FolderChange:FireClient(targetplayer, "DevilFruit", "Virus") end) abnotaddable 920 — 6y
0
it says console error 2 syntax error near <eof> marcinpl123 -5 — 6y

Answer this question