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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
30 Dec 2013 03:03 AM
Hi! I'm trying to make a brick builder and i made a tool.
The problem is, when i'm trying to place the brick, he don't go to the ground!
I want it to go to the ground, not flying!
Script:

local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()

local pa = Instance.new("Part", game.Workspace.CurrentCamera)
pa.Size = Vector3.new(5,5,1)
pa.Position = mouse.Hit.p
pa.Anchored = true

mouse.Move:connect(function()
pa.Position = mouse.Hit.p
end)
mouse.Button1Down:connect(function()
pa.Parent = game.Workspace
pa = Instance.new("Part", game.Workspace.CurrentCamera)
pa.Size = Vector3.new(1,1,1)
pa.Position = mouse.Hit.p
pa.Anchored = true
end)
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
30 Dec 2013 03:17 AM
Anyone?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
30 Dec 2013 03:17 AM
anchor it then parent it
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
30 Dec 2013 03:18 AM
Also when you place the object, the mouse will be at the object's position (ish) so it will just keep creating till it gets to the center of the screen, so be careful
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
30 Dec 2013 03:22 AM
He is coming to my camera and i cant see nothing.
I want it to go to the ground! Not flying!
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
30 Dec 2013 03:22 AM
ahahahahahhaahhaah stop aiming the camera in the sky
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
30 Dec 2013 03:25 AM
To see what i am saying go here:
http://www.roblox.com/Ultimate-Tycoon-Builder-2014-Closed-Alpha-place?id=140304821
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
30 Dec 2013 03:36 AM
anyone?
):
Report Abuse
ThePea is not online. ThePea
Joined: 10 May 2011
Total Posts: 1272
30 Dec 2013 03:46 AM
[ Content Deleted ]
Report Abuse
RobroxMasterDX is not online. RobroxMasterDX
Joined: 06 May 2012
Total Posts: 171
30 Dec 2013 06:31 AM
replace your .Position into this.


pa.CFrame = CFrame.new(mouse.Hit.p)
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