Click Detector
Hi! I am making a game called Those who hunt the Fallen, and I would like to make it so that when you click on a floating object ui appears. This is the workspace configuration.
In the click detector there is a script:
script.Parent.MouseClick:Connect(function(plr)
print("Hi")
game.ReplicatedStorage.CutSceneStart:FireServer(plr)
end)
This is a local script.
This activates this:
Then In Server Script Service I have a script that does this:
game.ReplicatedStorage.CutSceneStart.OnServerEvent:Connect(function(plr)
plr.PlayerGui.Speach.Frame.Visible = true
plr.PlayerGui.Speach.Frame.Text.Text = "Hiax, I apear to of come across something..."
plr.PlayerGui.Speach.Frame.Name.Text = "Liber (You)"
wait(3)
plr.PlayerGui.Speach.Frame.Text.Text = "Hey, 89-2b, send me visuals "
plr.PlayerGui.Speach.Frame.Name.Text = "Hiax"
wait(4)
plr.PlayerGui.Speach.Frame.Text.Text = "Sending over visuals, Sir. "
plr.PlayerGui.Speach.Frame.Name.Text = "89-2b"
wait(3)
plr.PlayerGui.Speach.Frame.Text.Text = "Holy s--- "
plr.PlayerGui.Speach.Frame.Name.Text = "Hiax"
wait(3)
plr.PlayerGui.Speach.Frame.Visible = false
end)
This isn’t running, please help.