Another Question :D I have someone who is VERY generous and told me to get this Free Model and look at the scripts, and I did, and I came across two things, 'Vcharacter' which made no sense, the Parent of the script, which is the Tool itself, is not represented in that matter in the script, take a look
local vCharacter = script.Parent local vTorso = waitForChild(vCharacter, "Torso") local vHumanoid = waitForChild(vCharacter, "Humanoid")
I do, know what 'WaitForChild' is. And also this,
local function waitForChild(parent, instance) while parent:FindFirstChild(instance) == nil do wait() end return parent[instance] end
What is this? >:l
I don't remember anything about the vCharacter, vTorso, or vHumanoid, but WaitForChild() is a method that literally waits for a child. Say, if there's something that is inserted into a character like a tool, you could use it like such:
tool = Character:WaitForChild("Gun")
If there was a gun that you had to make sure was there for your script, you could use this instead of:
tool = Character.Gun
To guarantee your script won't error.