I am trying to blacklist my own character from getting damaged
I’ve been trying to use raycastparams, which i think is what you are suppose to use for blacklist, but i don’t know exactly how to use it.
Im using the raycast made by TeamSwordphin
Script:
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RaycastHitbox = require(ReplicatedStorage.RaycastHitboxV4) local tool = script.Parent.Parent local cd = false game:GetService("Players").PlayerAdded(function(plr) local MyCharacter = plr.Character or plr.CharacterAdded:Wait() local Params = RaycastParams.new() Params.FilterDescendantsInstances = {MyCharacter} Params.FilterType = Enum.RaycastFilterType.Blacklist local newHitbox = RaycastHitbox.new(script.Parent) newHitbox.RaycastParams = Params newHitbox.Visualizer = true newHitbox.DebugLog = true newHitbox.OnHit:Connect(function(hit, humanoid) print(hit) humanoid:TakeDamage(30) end) tool.Activated:Connect(function() if cd == false then cd = true newHitbox:HitStart() wait(1) newHitbox:HitStop() wait(2.25) cd = false end end) end) Error it gives : Players.RazerCrazyH.Backpack.tool.hitbox.Script:6: attempt to call a RBXScriptSignal value