Here is the script that isnt working: (ps everything else works)

script.Parent.MiniGunEvent.OnServerEvent:Connect(function(Player, MouseTarget)
	MouseTarget.Parent.Humanoid:TakeDamage(5)
	Player:WaitForChild("leaderstats").Coins.Value += 1 * Player:WaitForChild("leaderstats").Multiplier.Value * Player:WaitForChild("leaderstats").Rebirths.Value 
	local Attacker = MouseTarget.Parent.AttackerPos
	Attacker.Value = Player.Character.HumanoidRootPart.Position
end)

4 comments

0

Is there some sort of error? Please tell me.

0

can u help me make a game? 21x3Q#8501 add me on discord

0

sorry i dont have discord

0

also i just realised my rebirths was 0