What the code is supposed to do is when you click the remote model a GUI is supposed to pop up

local CD = game.Workspace.Remote.ClickDetector
local Text = script.Parent.Parent
local NewsMesage1 = script.Parent

CD.MouseClick:Connect(function(player)
	player:WaitForChild("PlayerGui").Text:FindFirstChild("NewsMesage1")
	NewsMesage1.Visible = true
end)

local function onClicked()
	local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TypeWriter = require(ReplicatedStorage:WaitForChild("TypeWriter"))
TypeWriter.configure({
	delayTime = 0.05,
	extraDelayOnSpace = false
})
 
TypeWriter.typeWrite(script.Parent, "Reports from all over the globe are saying they are missing an artifact from museums")

end

but what happens is when you click is it does nothing and there is nothing in the output either

1 comment

0

is this a localscript or a script and hwere is it located