It wont work, i always get an error
heres the script i put:
local rs = game:GetService("ReplicatedStorage")
rs:WaitForChild("PopUp").OnClientEvent:Connect(function(player, ptype, message)
local playerGui = player.PlayerGui
local gui = playerGui:WaitForChild("popUp")
print(gui.Name)
local displayText = gui:WaitForChild("_display")
if ptype == "gain" then
print(displayText)
displayText.Text = message
displayText.Visbile = true
wait(.25)
displayText.TextSize = 40
wait(.25)
displayText.TextSize = 35
wait(.25)
displayText.Visible = false
end
end)
and it gives me this error:
Players.Actaully_Mine.PlayerGui.PopUpClient:5: attempt to index nil with 'WaitForChild'
help please!

3 comments
Line 4
So Wait, What Type Of Script Is This?
The problem is, your trying to index a nil property that doesnt exist make sure capilizations are correct