so im making an easter egg in game and im trying to make a text label that changes but only for the player who touched a part. so now im trying to use a remote event to change it and i think it would work perfectly but i get this error: 15:42:56.245 - RemoteEvents is not a valid member of ReplicatedStorage and i can clearly see it is there. No miss types, no capitalization errors. here is the script maybe i did something wrong that i dont know about, im a beginner and im new to remote events, i started learning how to use them like half a hour ago.
this is the local script for remote event:
local service = game:GetService("ReplicatedStorage")
local events = service.RemoteEvents
local greendirt = events.greendirt
greendirt.OnClientEvent:Connect(function()
local text = game.StarterGui.TFlaniganDialogue.d1
local text1 = "..."
local text2 = "why would someone like this come here?"
local text3 = "hmm?"
local text4 = "i guess you dont like to talk."
local text5 = "... or you are a bit shocked?"
local text6 = "you probably got here by accident... just like i did..."
local text7 = "well, i didn't see a single human for years!"
local text8 = "i'll reward you with the ability to spawn the green dirt."
local text9 = "bye!"
local text = game.StarterGui.TFlaniganDialogue.d1
wait(1)
for i = 1, #text1 do
text.Text = string.sub(text1, 1, i)
wait(0.04)
end
wait(3)
for i = 1, #text2 do
text.Text = string.sub(text2, 1, i)
wait(0.04)
end
wait(4)
for i = 1, #text3 do
text.Text = string.sub(text3, 1, i)
wait(0.04)
end
wait(3)
for i = 1, #text4 do
text.Text = string.sub(text4, 1, i)
wait(0.04)
end
wait(4)
for i = 1, #text5 do
text.Text = string.sub(text5, 1, i)
wait(0.04)
end
wait(3)
for i = 1, #text6 do
text.Text = string.sub(text6, 1, i)
wait(0.04)
end
wait(3)
for i = 1, #text7 do
text.Text = string.sub(text7, 1, i)
wait(0.04)
end
wait(3)
for i = 1, #text8 do
text.Text = string.sub(text8, 1, i)
wait(0.04)
end
wait(4)
for i = 1, #text9 do
text.Text = string.sub(text9, 1, i)
wait(0.04)
end
end)
and here is the one that activates it on touch:
local part = script.Parent
local service = game:GetService("ReplicatedStorage")
local events = service.RemoteEvents
local greendirt = events.greendirt
part.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
local plr = game.Players:FindFirstChild(hum.Parent.Name)
if plr.GreenDirt.Value == false then
hum.WalkSpeed = 0
hum.JumpPower = 0
greendirt:FireClient(plr)
end
end
end)
i would appreciate any help.

3 comments
ReplicatedStorage dumps it’s children somewhere I believe, Workspace possibly?
No apparently not
Try using Instance/Instance:WaitForChild("RemoteEvents")