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: How do they too that??

Previous Thread :: Next Thread 
grant133 is not online. grant133
Joined: 06 Jun 2010
Total Posts: 91
14 Jun 2017 06:22 PM
So I was wondering how games like Theme Park Tycoon 2 or Lumber Tycoon 2 or like Bloxburg make games where the people can place items. I mean I know how to make a tycoon, but how do they do the grid setup and place things following the grid setup?
Report Abuse
grant133 is not online. grant133
Joined: 06 Jun 2010
Total Posts: 91
14 Jun 2017 06:23 PM
Oops spelled the title wrong.
Report Abuse
AmplifiedElio is not online. AmplifiedElio
Joined: 12 Oct 2014
Total Posts: 1923
14 Jun 2017 06:35 PM
I'm a beginner in scripts, so I don't know. What I can say is that they are insane programmers, and I have NO idea whatsoever where they learned those programming skills. Oof.
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
14 Jun 2017 06:35 PM
very easy to do

this doesn't require insane scripting




Report Abuse
TaaRt is online. TaaRt
Joined: 26 Apr 2009
Total Posts: 5039
14 Jun 2017 06:38 PM
1. choose a grid size

2. obtain current mouse position of player

3. determine where in your grid the position currently is
(for instance by taking axis position modulo gridsize and substracting that from the axis position, then dividing that remainder by your grid size)

4. set that grid space as 'currently selected'

Report Abuse
MidasTouched is not online. MidasTouched
Joined: 02 Dec 2016
Total Posts: 242
14 Jun 2017 07:30 PM
^^
can proabably be done in a few lines of code
Report Abuse
Integer_overflow is online. Integer_overflow
Joined: 16 Feb 2010
Total Posts: 6712
14 Jun 2017 07:44 PM
model = game.ReplicatedStorage.Model:Clone() mouse = game.Players:GetMouse() placing = false function PlaceModel() if placing == false then placing = true model.Parent = game.Workspace.CurrentCamera mouse.TargetFilter = model repeat model:MoveTo(mouse.Hit.p) until placing == false model.Parent = game.Workspace end ################################# ## k == "p" then PlaceModel() mouse.KeyDown:connect(function(pk) if pk == "p" then placing = false end end end) end) --That is a simple script. I wrote it pretty quickly so there might be a problem, but I doubt it.
Report Abuse
Integer_overflow is online. Integer_overflow
Joined: 16 Feb 2010
Total Posts: 6712
14 Jun 2017 07:44 PM
Aw, filtered. RIP.


Report Abuse
Integer_overflow is online. Integer_overflow
Joined: 16 Feb 2010
Total Posts: 6712
14 Jun 2017 07:47 PM
Whoops, didn't fully understand what you posted lol. But you just need to add a couple lines to my script that move the model after the mouse moves a certain distance, and when the player is placing an object, the script adds a grid model into the current camera.


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