I have a script that is aimed at tracking touch, but when touching an object, the action for some reason works twice
other part of script only spawn a part
local Currency = Stat.Get(Player, "Money")
local Rebirth = Stat.Get(Player, "Rebirth")
NewPart.Touched:Connect(function(Hit)
if Hit.Name == "Furnace" then
Currency.Value += Worth.Value * Multipliers.GetMoneyMultiplier(Player)
NewPart:Destroy()
print(Currency.Value)
elseif Hit.Name == "Ground" then
NewPart:Destroy()
end
end)
end
Output:
03:47:52.427 718 - Server - Dropper:37
03:47:55.893 383 - Server - Orer:37
03:47:56.643 720 - Server - Dropper:37--
03:47:56.643 722 - Server - Dropper:37--
03:48:00.210 384 - Server - Orer:37
03:48:00.943 724 - Server - Dropper:37
03:48:04.310 385 - Server - Orer:37
03:48:05.109 726 - Server - Dropper:37
03:48:08.609 386 - Server - Orer:37
03:48:09.293 728 - Server - Dropper:37
03:48:12.892 387 - Server - Orer:37
03:48:13.543 730 - Server - Dropper:37--
03:48:13.543 732 - Server - Dropper:37--
03:48:16.959 388 - Server - Orer:37
** You are now Level 1! **