My local script, when a projectile is fired, meaning, there is no direct contact, it's supposed to print the Player, and Humanoid.
local Player = script.Parent.Parent local mouse = Player:GetMouse() function onKeyDown(key) Key = key:lower() if key == "z" then print("Hi") Game:GetService("Chat"):Chat(Player.Character.Head, "I'll finish you off with this last hit!") x = Instance.new("Part") x.Name = "x" x.Shape = "Ball" x.BrickColor = BrickColor.new("Really red") x.Size = Vector3.new(3,3,3) x.CanCollide = false x.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, 0, -12) s = Instance.new("Sparkles", x) y = Instance.new("BodyVelocity", x) y.maxForce = Vector3.new(math.huge, math.huge, math.huge) y.velocity = Player.Character.Torso.CFrame.lookVector*120 x.Parent = Workspace kk = script.k:Clone() kk.Parent = x x.Name = Player.Name game:GetService("Debris"):AddItem(x, 7) kk.Disabled = false end end mouse.KeyDown:connect(onKeyDown) function tagHumanoid(humanoid, player) local creator_tag = Instance.new("ObjectValue") creator_tag.Value = player creator_tag.Name = "creator" creator_tag.Parent = humanoid print(player.Name) print(humanoid.Name) end function untagHumanoid(humanoid) if humanoid ~= nil then local tag = humanoid:findFirstChild("creator") if tag ~= nil then tag.Parent = nil end end end
This is the 2ND time in which I ask a question similar to this. The first time, they completely ignored what I said.