I have made a few scripts but whenever I test it, in my output it says
14:30:45.738 - "Humanoid.torso" should be "Torso" in Script
So I used the "Find All" in the script menu to search for Humanoid.torso, and none showed up.
What is happening?
The scripts
--[[ LIST OF EVENTS: 1. Death 2. Instant death(Weapons kill instantly) 3. Sword 4. Speed 5. Zombies 6. Fire 7. Explode 8. Slowness 9. Sparkles 10. ForceField 11. Temporary ForceField 12. 50 Health Boost 13. Sit 14. Look Like Shedletsky 15. No Walkspeed Add more later ]] function OnTouch(part) local h = part.Parent:FindFirstChild("Humanoid") if h ~= nil then script.Parent:remove() local cray = math.random(1,11) local torso = h.Parent.Torso local sword = game:GetService("InsertService"):LoadAsset(47433):GetChildren()[1] sword.Parent = part.Parent local zombie = game:GetService("InsertService"):LoadAsset(187023590):GetChildren()[1] zombie.Parent = workspace zombie.Torso.Position = Vector3.new(torso.Position.x,h.torso.Position.y+100,torso.Position.z) local debris = game:GetService("Debris") if cray == 1 then --Death h.Health = 0 end if cray == 2 then --Instant Death h.MaxHealth = 0.001 end if cray == 3 then --Sword debris:AddItem(sword,40) end if cray == 4 then --Speed h.WalkSpeed = 60 end if cray == 5 then --Zombie debris:AddItem(zombie,40) end if cray == 6 then --Fire local f = Instance.new("Fire", torso) torso.BrickColor = BrickColor.new("Black") h.WalkSpeed = 30 wait(.5) torso.Transparency = 0.1 wait(.5) torso.Transparency = 0.2 wait(.5) torso.Transparency = 0.3 wait(.5) torso.Transparency = 0.4 wait(.5) torso.Transparency = 0.5 wait(.5) torso.Transparency = 0.6 wait(.5) torso.Transparency = 0.7 wait(.5) torso.Transparency = 0.8 wait(.5) torso.Transparency = 0.9 wait(.5) torso:remove() end if cray == 7 then --Explode local ex = Instance.new("Explosion") ex.Position = torso.Position end if cray == 8 then --Slowness h.WalkSpeed = 5 end if cray == 9 then --Sparkles local s = Instance.new("Sparkles", torso) s.SparkleColor = Color3.new(255,255,255) end if cray == 10 then --ForceField local ff = Instance.new("ForceField", h.Parent) end if cray == 11 then --Temporary ForceField local ff = Instance.new("ForceField", h.Parent) wait(10) ff:remove() end if cray == 12 then --50 health boost h.MaxHealth = h.MaxHealth+50 h.Health = h.Health+50 end if cray == 13 then --Sit h.Sit = true end if cray == 14 then --Shedletsky game.Players:FindFirstChild(h.Parent.Name).CharacterAppearence = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=261&placeId=0" h.Health = 0 end if cray == 15 then --No Walkspeed h.WalkSpeed = 0 end end end script.Parent.Touched:connect(OnTouch)
"Humanoid.torso" doesn't exist in any of the scripts. Press Ctrl+F and type "Humanoid.torso". You won't find it in the scripts.
Here you wroteh.torso
where h = Humanoid
. So this is the Humanoid.torso
error.
Vector3.new(torso.Position.x,h.Torso.Position.y+100,torso.Position.z)
On different note. Why are you referencing the Torso in two different ways?
You wrote like this:
t-orso But it should be: T-orso