2 | local ReplicatedStorage = game:GetService( "ReplicatedStorage" ) |
3 | local remote = Instance.new( "RemoteEvent" ) |
4 | remote.Parent = replicated |
5 | remote.Name = "damageRemote" |
7 | function damagePlayer(plr, target, dmg) |
8 | target.Character.Humanoid:TakeDamage(dmg) |
2 | local replicated = game:GetService( "ReplicatedStorage" ) |
3 | local remote = replicated:WaitForChild( "damageRemote" ) |
5 | remote:FireServer(<plr>, 10 ) |
You should always have filtering enabled but now with the recent roblox update you cant turn off filtering enabled, so you gotta learn how to use remotes.
Here you have some links that will help you learn the usage of remote events and functions and how to use them.
https://wiki.roblox.com/index.php?title=Remote_Functions_%26_Events
https://www.youtube.com/watch?v=wic-N4JiFss&t=0s
https://www.youtube.com/watch?v=4Dc_bri9mjs
https://www.youtube.com/watch?v=C0qQ4lDa3t0&t=0s