So I added prints in my code, and from what I can tell where it prints ‘3’ when you first spawn in the game after you reset your character once you respawn it no longer prints 3. Why is this?
print'1'
local Player = game.Players.LocalPlayer
local Tool = script.Parent
local Character = Player.Character or Player.CharacterAdded:Wait()
local Animator
local cantClick = false
local Hum = Character:WaitForChild("Humanoid", 10000)
local Root = Character:WaitForChild("HumanoidRootPart", 10000)
local UIS = game:GetService("UserInputService")
local unequippedduringhold = false
local Attack = 1
local LastClick
local mod = require(script:WaitForChild("Mod"))
local holding = false
local equipped
local HoldingTrack
local SlashingTrack
print'2'
if not Character.Parent then
repeat wait() until Character.Parent
end
print'3'