Is possible to event from StarterPlayerScripts?

I trying to fire BindableEvent from starter player scripts but it don’t fires it don’t errors or another it just don’t working
It’s possible to fire from starter player scripts?
:sob:

It should be possible… are you firing using :Fire(), listening with .Event:Connect(), and using two LocalScripts?

no i using 1 local script

(for long msg 2111131313)

I suppose one works too. Could you share the source?

Ok

Local Script:

local player = game:GetService("Players").LocalPlayer
local mouse = player:GetMouse()

mouse.Button1Down:Connect(function()
	game:GetService("ReplicatedStorage").Events.Clicked:Fire(2, player) 
	return print(player.Name)	
end)

Script:

local replic = game:GetService("ReplicatedStorage").Events

replic.Clicked.Event:Connect(function(v, p) --- v: Value, p: Player.
	-- ok

	print("ok ok but ok ok")
end)

There’s your issue. BindableEvents only work on one side of the server-client model. They cannot communicate from a LocalScript to a Script. Use RemoteEvents instead (and therefore :FireServer() and .OnServerEvent:Connect()).

1 Like

Thank you bro! You are the best uwu