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