Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[SOLVED] Why is my game saying that there is no EventStorage in ReplicatedStorage when there is?

Oops, the script was in the ReplicatedFirst, that's why it didn't work. Thanks to everybody who responded!

Hello. In my game, I am trying to make a savable character customizer and so I resorted to the last resort by just making a point for each accessory. Anyway, the folder named EventStorage in which the remote events are kept is allegedly not found when the game starts. The folder is in the ReplicatedStorage, but an error comes out saying that it isn't. Error:

  13:49:37.631 EventStorage is not a valid member of ReplicatedStorage "ReplicatedStorage"  -  Client  -  MoreHairData:13

The code in the LocalScript in ReplicatedFirst:

local Players = game:GetService("Players")

local player = Players.LocalPlayer



local function onWelcomePlayerFired()
	print("Fired")
	game.ReplicatedStorage.EventStorage.HairEvent:FireServer()
	print("FIRE")
end

game.ReplicatedStorage.EventStorage.HairEvent.OnClientEvent:Connect(onWelcomePlayerFired)

I can't understand why it can't find it even though the folder is in the ReplicatedStorage when the game is played and when it's not. Thank you!

2 comments

0

Try changing line 9 to game:GetService('ReplicatedStorage'):WaitForChild('EventStorage'):WaitForChild('HairEvent'):FireServer()

0

@DinoCreates, hello, thank you for responding, but I believe I tried that and it didn't work. Thanks, though!

1 answer

check explorer

1 comment

0

Hello, thank you for responding. I did, everything is where it should be.

This discussion is preserved as it was. New answers, comments, and votes are closed.