|
| 10 Jul 2014 09:19 AM |
Hi, i'm trying to make a game where you can place bricks at the mouse position, here is my code:
Wall1=game.Lighting.Wall1:Clone() Wall1.Parent=game.Workspace Wall1.Name="Indicator"
local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse()
script.Parent.Equipped:connect(function() Wall1:MoveTo(Vector3.new(Mouse.Hit)) end)
It isn't doing nothing! |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 10 Jul 2014 09:21 AM |
| Is it a tool...? Also, store things in ReplicatedStorage, not Lighting. |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 09:22 AM |
| It is a hopper bin with a local script |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jul 2014 09:27 AM |
| Thanks! Im gonna test it now. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 10 Jul 2014 09:31 AM |
| Does the Tool have a "Handle"?. |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 09:31 AM |
| Nope, do i need one? I think it is only for decoration. |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 09:32 AM |
| Yes, you need a Handle, also make sure the code is placed inside of a "LocalScript". |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 09:33 AM |
Yes! Now it is working, but there is a problem! It only does that one time .-. |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 09:36 AM |
Wall1:MoveTo(Mouse.Hit.p) Also, try using the Activated event. |
|
|
| Report Abuse |
|
|
kert109
|
  |
| Joined: 31 Dec 2009 |
| Total Posts: 681 |
|
|
| 10 Jul 2014 09:42 AM |
| Do you want the Wall1 to move when you CLICK? Or when you select the tool? |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2014 10:04 AM |
| 400th forum post, woot woot. |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jul 2014 10:18 AM |
| i dont need more help nubs (Lol joke) |
|
|
| Report Abuse |
|
|