I’m trying to add Remote Events for my shop GUI Script, but I cant get it to work.
![]()
Error:
Fade:FireClient()
Script:
local Fade = game.ReplicatedStorage:WaitForChild("TeleportationDoorEvent")
local Cutscene2 = game.ReplicatedStorage:WaitForChild("GasStationScene2")
local StopScene = game.ReplicatedStorage:WaitForChild("StopScene")
OpenUI.OnClientEvent:Connect(function()
script.Parent.Visible = true
local String = "What are you looking for?"
task.wait()
local Length = string.len(String)
UpdateText(Length, String)
end)
UpdateText = function(Length, String)
for i = 1, Length do
script.Parent.TEXT.Text = string.sub(String, 1, i)
task.wait(0.10)
end
end
script.Parent.Purchase.MouseButton1Click:Connect(function()
local String2 = "Alright... Here's what I sell my man."
task.wait()
local Length = string.len(String2)
UpdateText(Length, String2)
task.wait(3)
Fade:FireClient()
task.wait(0.02)
StopScene:FireClient()
task.wait(0.02)
Cutscene2:FireClient()
end)
UpdateText = function(Length, String2)
for i = 1, Length do
script.Parent.TEXT.Text = string.sub(String2, 1, i)
task.wait(0.10)
end
end ```

Error Right here: