|
| 14 Dec 2013 04:20 PM |
local brick = script.Parent local where = brick.Position local difficulty = "Easy" local diff = workspace.Values.Difficulty -- Values is a model and difficulty is a IntValue
--Calculators function JumpCalc() if diff >= 3 then return true else return false end end
--spawning local enemy = Instance.new("Model", workspace) enemy.Name = difficulty local robot = Instance.new("Humanoid", workspace.enemy) robot.MaxHealth = diff * 10 robot.Health = diff * 10 robot.WalkSpeed = diff * 10 robot.Jump = JumpCalc() local head = Instance.new("part", workspace.enemy) head.Name = "head"
Please note that i was half way done while doing this
why isnt my my Humanoid Values setting? i have a IntVaule named Difficulty in workspace. please help! |
|
|
| Report Abuse |
|
| |
|
| 11 Jun 2014 10:33 AM |
| Setting Health and MaxHealth for humanoids tend to be a bit wonky. Try adding a wait() right after you made the new humanoid. |
|
|
| Report Abuse |
|