|
| 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 |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
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 |
|
|
|
| 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
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 30 Dec 2013 03:22 AM |
| ahahahahahhaahhaah stop aiming the camera in the sky |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
ThePea
|
  |
| Joined: 10 May 2011 |
| Total Posts: 1272 |
|
| |
|
|
| 30 Dec 2013 06:31 AM |
replace your .Position into this.
pa.CFrame = CFrame.new(mouse.Hit.p) |
|
|
| Report Abuse |
|
|