generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Wont Detect!

Previous Thread :: Next Thread 
freerobux456 is not online. freerobux456
Joined: 25 Feb 2010
Total Posts: 244
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
freerobux456 is not online. freerobux456
Joined: 25 Feb 2010
Total Posts: 244
11 Jun 2014 10:21 AM
Bump
Report Abuse
Aesthetical is not online. Aesthetical
Joined: 01 Jan 2014
Total Posts: 2141
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image