I made a part that has a ClickDetector in it and when the part is being clicked I want it to clone it self to the player's who clicked it PlayerGui.ScreenGui.
But I get this error:
Argument 1 missing or nil
Stack Begin
Script 'Workspace.Part.Script', Line 2
Stack End
Script in game.Workspace.Part:
script.Parent.ClickDetector.MouseClick:connect(function()
game.ReplicatedStorage.RemoteEvent:FireClient()--error line
end)
LocalScript in game.StarterGui.ScreenGui
game.ReplicatedStorage.RemoteEvent.OnClientEvent:connect(function(player)
game.Workspace.Part:Clone().Parent=player.PlayerGui.ScreenGui
end)
I would appreciate if anybody could help me out.

1 comment
Thanks.