Hey, I'm kind of new to this and I tried everything I could but I can't make my remove event fire on a clicker function here's the script. When a player clicks on a part they teleport, that part is fine but the only thing that isn't working is the RemoteEvent.
function onClicked(plr) game.ReplicatedStorage.FadeScreenDoor:FireServer() wait(1.20) plr.Character.HumanoidRootPart.CFrame = CFrame.new(6.504, -35.341, 111.535) end script.parent.ClickDetector.MouseClick:connect(onClicked)
you could make FadeScreenDoor a function and do something like this can put all in a server script.
function onClicked(plr) FadeScreenDoor() -- if you want only the client to see it, do :FireClient(plr) wait(1.20) plr.Character.HumanoidRootPart.CFrame = CFrame.new(6.504, -35.341, 111.535) end script.Parent.ClickDetector.MouseClick:Connect(onClicked) -- parent should be Parent (capitalized) function FadeScreenDoor() -- whatever this does end)