Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to do Filtring Enabled Damage?

Asked by 5 years ago
Edited 5 years ago
--Script
script.Damage:OnServerEvent(function(Player)
Humanoid:TakeDamage(8)
end)

So Basically Im making a game but I don't know how to do FE Damage I'm experienced with Filtring enabled but I stuck on this point,does any of you know how to do it?I need help so please respond.

--LocalScript
ReplicatedStorage.Weapons.Gun.Damage:FireServer()
0
clc is right, the interpreter is not a human, it only does what you tell it to do. SteamG00B 1633 — 5y

1 answer

Log in to vote
1
Answered by
clc02 553 Moderation Voter
5 years ago

You need to get a basic grasp on the language first, I recommend trying something simpler, single script, don't worry about local scripts, and just get a hang of things. In the about at the top of website there's link to the 5.1 manual, have a read through.

It's not working because Humanoid on line 3 is undefined. You can't write vaguely and expect a computer to interpret it. You also probably have your hierarchy messed up unless ReplicatedStorage.Weapons.Gun is the script in the first part of your post.

Ad

Answer this question