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: Help?

Previous Thread :: Next Thread 
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
20 Oct 2015 02:42 PM
The below script is part of a script I have. It works, but right now it collides through other structures. The Y coordinate doesn't change. I like that. But I'm trying to get it to work so that if it hits a structure it just stops; it doesn't collide into it. Any help?? Thanks



function MoveStructure()
wait()
Action = true
while _G.Moving == true do
pcall(function()
wait()
targ.Parent:SetPrimaryPartCFrame(CFrame.new(Vector3.new(m.hit.p.X,2.9,m.hit.p.Z)))
end)
end
return
end
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
20 Oct 2015 02:51 PM
Make another script detecting if it hits a structure and then disabling the script tht makes it move. Or try running multiple functions at once.


~davisky~
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
20 Oct 2015 02:52 PM
That's ineffective /:

buhmp plz
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
20 Oct 2015 02:54 PM
Learn 2 corutine.yield()
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
20 Oct 2015 02:58 PM
I don't even know how to like, detect the structure being there. What method should I use? Or you know, examples?
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
20 Oct 2015 03:22 PM
bump
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
20 Oct 2015 03:35 PM
bumpp
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
20 Oct 2015 03:59 PM
Buhmp
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
20 Oct 2015 05:26 PM
another bump
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