This works in studio but not in published mode.
enabled = true
function onActivated()
if not enabled then
return
end
script.Parent.Activated:connect(function(plr)
game.ReplicatedStorage.ballet1:FireServer() ---here is the problem, it functions in studio but doesn't want to function in published
end)
What the remote function is being told to do is put a simple print just to see if it's working and getting to that point or not (and it's not)
EDIT: I believe this is the problematic script that is not working correctly in published mode:
game.ReplicatedStorage.ballet1.OnServerEvent:Connect(function(plrWhoFiredEvent)
print("i got here")
end)
I've been trying out a couple of different things, here is another version of it that works in studio but not in published:
local hi = game.ReplicatedStorage.ballet1
function dothisplz()
print"i got here"
end
hi.OnServerEvent:connect(dothisplz)
I have FE on. :)

7 comments
Thanks
Please accept answers :)
I wasn't on the computer yet I am testing it now
Can calling a remote function only work in a local script?
I'm guessing what's in my script in the ServerScriptService is what is causing the problem
The FireServer() function can only be called in a localscript, yes
Okay thanks, I just tested it in a local script instead but I think I have a broader issue than that. I posted my script for the response it's supposed to give for the remote function working. thank you for your help.