How do i secure my remote event?

no, i use just Activated

beeep

You can use activated and mouse click they are the same.

but i didnā€™t even connect Equipped function

Alright, i see now
Iā€™ll find player by tool.Parent (GetPlayerFromCharacter) when player Activated tool

local equipped = false
tool.Equipped:Connect(function()
equipped = true
end)
Tool.Unequipped:Connect(function()
equipped = false
end)
Tool.Activated:Connect(function()
if equipped then
--Fire Remote
end
end)

No if you use remote then use get the player from OnServerEvent argument
remote.OnServerEvent(function(plr)

Why we need to check if tool is equipped i think it Activated would never fire if tool didnā€™t equipped

I use it always because I use mouse.Button1Down. I didnā€™t try it with activated .

but i use Activated! not mouse.Button1Down

How about reopening the topic? it have 49 Replys.

And still you donā€™t know the answer.

Why i need to reopening this topic?

Itā€™s full now we reached 52 reply and still nothing is clear.

But i think everyone still can reply?

I think i will try to use Tool.Activated on Server
and get player by Tool.Parent everytime that tool got activated

Ok then itā€™s up to you.

Now, you still didnā€™t try to make ray in server?
Like when the tool.Activated then it fire remote and server make everything.

i will make ray on server i guess

Anyway, Iā€™ll report the result.

OMG, Thanks it worked!

Thanks to @Omb2a, @Syclya, @fastkingyaya, @Diltz_3, @StraightScared, @cjjdawg, @Hexcede, and @CodeJared for trying to help me to solve this question!

1 Like