Damage Indicator Help

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want my billboard to appear only to the client.

  2. What is the issue? Include screenshots / videos if possible!
    The Billboard isn t running on the game, in other words, it doesn’t appear.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried to see the output and nothing came up, and the developer hub is the only one I found related to the client didn’t explain well, i used fire client to run it.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

This is the part on the module script


local tweenService = game:GetService("TweenService")
local tweeninfo = TweenInfo.new(0.6,Enum.EasingStyle.Quart,Enum.EasingDirection.Out,0,false,0)


repeat wait(1) until script.Parent.Damage

functions.Create = function(player,human,damage,humanoid,rootpart)
	

	local humanHealth = human
 

			local Bill = Instance.new("BillboardGui")
			Bill.AlwaysOnTop = true
			Bill.Size = UDim2.new(4,0,1,0)
			Bill.SizeOffset = Vector2.new(0,2)
			Bill.ZIndexBehavior = Enum.ZIndexBehavior.Global
			Bill.ExtentsOffsetWorldSpace = Vector3.new(0,-1,0)

			local TextDamage = Instance.new("TextLabel",Bill)
			TextDamage.BackgroundTransparency = 1
			TextDamage.Size = UDim2.new(1,0,1,0)
			TextDamage.Font = Enum.Font.GothamSemibold
			TextDamage.TextScaled = true
			TextDamage.TextColor3 = Color3.fromRGB(255,255,255)

			TextDamage.Text = tonumber(damage)

	Bill.Parent = rootpart

			wait(0.3)

			local tweenPosition = tweenService:Create(Bill,tweeninfo,{ExtentsOffsetWorldSpace = Vector3.new(0,2.5,0)})
				local tweenFade = tweenService:Create(TextDamage,tweeninfo,{TextTransparency = 1})

			tweenPosition:Play()
			wait(0.4)
				tweenFade:Play()
	

	game:GetService("Debris"):AddItem(Bill,1)
	humanHealth = human
end

return functions```

Normal Script

```if hitPart then
		print(hitPart.Name)
		if hitPart.Parent:FindFirstChild("Humanoid") then
			hitPart.Parent.Humanoid:TakeDamage(DAMAGE)
			local player = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
			local humanoid = hitPart.Parent:FindFirstChild("Humanoid").Health
			local human2 = hitPart.Parent:FindFirstChild("Humanoid")
			local human3 = hitPart.Parent.HumanoidRootPart
			print(player.Name)
			script.Parent.Damage:FireClient(player,humanoid,DAMAGE,human2,human3)
		end
		end```

And local script part

```script.Parent.Damage.OnClientEvent:Connect(function(player,humanoid,DAMAGE,human2,human3)

module.Create(player,humanoid,DAMAGE,human2,human3)

end)```
I will be very grateful for anyone who can help me!
1 Like

When the server sends the event on here:

It sends it to “player” without giving the player argument. So on this part:

The player argument wasn’t defined here so it thinks player is humanoid, humanoid is DAMAGE etc… You can fix it by changing it to this on the local script:

script.Parent.Damage.OnClientEvent:Connect(function(humanoid,DAMAGE,human2,human3)
        module.Create(game.Players.LocalPlayer,humanoid,DAMAGE,human2,human3)
end)

I hope it helped.

you don t need to put the player two times and it makes error if you put the player on the Serverclient function, but thanks for your attention.