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 » Scripters
Home Search
 

Re: This doesnt work.

Previous Thread :: Next Thread 
towerdefence661 is not online. towerdefence661
Joined: 15 Nov 2013
Total Posts: 280
26 Oct 2015 05:46 PM
This doesnt print AHHHPOSTERS when i put the part into the position!
if game.Workspace.npe.Position == Vector3.new(-61, 2, -11.5) then
print("AHHPOSTERS")
end
Report Abuse
DermonDarble is not online. DermonDarble
Joined: 04 Jun 2015
Total Posts: 2576
26 Oct 2015 05:47 PM
you're only checking once

SPECIAL BISQUE
Report Abuse
ChiefAlpha is not online. ChiefAlpha
Joined: 01 Oct 2015
Total Posts: 2014
26 Oct 2015 05:47 PM
not at the right position
Report Abuse
towerdefence661 is not online. towerdefence661
Joined: 15 Nov 2013
Total Posts: 280
26 Oct 2015 05:47 PM
So i should loop it?
Report Abuse
yobo89 is not online. yobo89
Joined: 05 Jun 2010
Total Posts: 2341
26 Oct 2015 05:48 PM
When are you actually executing that if statement.

try

while wait(1) do
if game.Workspace.npe.Position == Vector3.new(-61,2,-11.5) then
print("AHHPOSTERS")
end
end
Report Abuse
Zakusa is not online. Zakusa
Joined: 16 Feb 2013
Total Posts: 359
26 Oct 2015 05:48 PM
heres fix


while true do
if game.Workspace.npe.Position == Vector3.new(-61, 2, -11.5) then
print("AHHPOSTERS")
end
end
Report Abuse
yobo89 is not online. yobo89
Joined: 05 Jun 2010
Total Posts: 2341
26 Oct 2015 05:55 PM
@Above that would crash.
Report Abuse
towerdefence661 is not online. towerdefence661
Joined: 15 Nov 2013
Total Posts: 280
26 Oct 2015 05:56 PM
@Above
SOOO TRUE IT CRASHED ME
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
26 Oct 2015 05:57 PM
while wait() do

doesnt crash
Report Abuse
towerdefence661 is not online. towerdefence661
Joined: 15 Nov 2013
Total Posts: 280
26 Oct 2015 05:58 PM
Anyways now how do i make it so it will stop printing AHHHPOSTERS when it prints that?
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
26 Oct 2015 05:59 PM
add
wait(.1)
break
end

idk if that works, but try,
Report Abuse
towerdefence661 is not online. towerdefence661
Joined: 15 Nov 2013
Total Posts: 280
26 Oct 2015 06:02 PM
Could you put that into the script for me because i dont know where to put it
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
26 Oct 2015 06:04 PM
Nvm, it wouldnt work
Report Abuse
Ben1925 is not online. Ben1925
Joined: 07 Apr 2011
Total Posts: 741
26 Oct 2015 08:10 PM
Here, maybe this works:

while wait(1) do
if game.Workspace.npe.Position == Vector3.new(-61,2,-11.5) then
print("AHHPOSTERS")
break
end
end

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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