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: always kills the AI

Previous Thread :: Next Thread 
lsp425 is not online. lsp425
Joined: 10 Dec 2011
Total Posts: 603
24 Aug 2014 01:32 AM
while wait(.1) do
values = script.Parent.values
opening = values.dooropening
if opening.Value == true then
wait(4)
x = math.random(4,15)
values.aliens.Value = x
alien = game.StarterGui.Alien:Clone()
xa = script.Parent.XA.Position.X
xb = script.Parent.XB.Position.X
za = script.Parent.ZA.Position.Z
zb = script.Parent.ZB.Position.Z
if xa > xb then
x = math.random(xb,xa)
end
if xa < xb then
x = math.random(xa,xb)
end
if za > zb then
z = math.random(za,zb)
end
if za < zb then
z = math.random(zb,za)
end
alien.Parent = game.Workspace
alien.Torso.CFrame = CFrame.new(x,3,z)

end
end



no output
Report Abuse
Electrodacity is not online. Electrodacity
Joined: 07 Apr 2014
Total Posts: 225
24 Aug 2014 01:34 AM
Are you making it give output...?
Report Abuse
lsp425 is not online. lsp425
Joined: 10 Dec 2011
Total Posts: 603
24 Aug 2014 01:35 AM
well the ai does give out output but it doesnt explain why it is dieing
Report Abuse
Electrodacity is not online. Electrodacity
Joined: 07 Apr 2014
Total Posts: 225
24 Aug 2014 01:36 AM
If there's a script in the AI, then post it and I'll see what I can do.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
24 Aug 2014 01:39 AM
alien:MoveTo(Vector3.new(x,3,z))
Report Abuse
lsp425 is not online. lsp425
Joined: 10 Dec 2011
Total Posts: 603
24 Aug 2014 01:39 AM
the ai is not the problem it is the moving of the ai I know it works when already in workspace
Report Abuse
lsp425 is not online. lsp425
Joined: 10 Dec 2011
Total Posts: 603
24 Aug 2014 01:41 AM
tried that sensei
Report Abuse
LightningfireNinja is not online. LightningfireNinja
Joined: 18 Sep 2011
Total Posts: 5941
24 Aug 2014 01:52 AM
MakeJoints()?

is its head not attached or something?

ggnore
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