There have been a lot of posts about is not a valid member errors, and a good amount of them have not been solved. Soooo hopefully we can solve this one. I have a script that is supposed to pop up a gui and animate text. The gui pops up when the proximity prompt fires but then i get this error:
typeWrite is not a valid member of ModuleScript "ReplicatedStorage.AnimateUI"
Typewrite is a valid member because I have a script just like this one but instead of a proximity prompt it is a click detector script and it works just fine!
This is the script located inside a proximity prompt which is inside a character model.
local AnimateUI = game.ReplicatedStorage:FindFirstChild("AnimateUI")
script.Parent.Triggered:Connect(function(player)
print(player)
local label = player.PlayerGui:WaitForChild("ChatSystem").Frame.Frame.TextLabel
local gui = player.PlayerGui:WaitForChild("ChatSystem")
gui.Enabled = true
local message = [[Hi!]]
AnimateUI.typeWrite(label, message, 0.05)
wait(1)
gui.Enabled = false
end)