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
 

Re: Placing a brick at mouse position?

Previous Thread :: Next Thread 
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
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 is not online. 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
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
10 Jul 2014 09:22 AM
It is a hopper bin with a local script
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 09:25 AM
Mouse.Hit.p
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
10 Jul 2014 09:27 AM
Thanks! Im gonna test it now.
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
10 Jul 2014 09:27 AM
Not working ):
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 09:29 AM
Use it inside of a Tool.
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
10 Jul 2014 09:30 AM
Not working .-.
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 09:31 AM
Does the Tool have a "Handle"?.
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
10 Jul 2014 09:31 AM
Nope, do i need one? I think it is only for decoration.
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 09:32 AM
Yes, you need a Handle, also make sure the code is placed inside of a "LocalScript".
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
10 Jul 2014 09:33 AM
Yes! Now it is working, but there is a problem!
It only does that one time .-.
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
10 Jul 2014 09:36 AM
Wall1:MoveTo(Mouse.Hit.p)
Also, try using the Activated event.
Report Abuse
kert109 is not online. 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
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
10 Jul 2014 10:04 AM
400th forum post, woot woot.
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
10 Jul 2014 10:11 AM
When i select the tool
Report Abuse
GamerOfGames123 is not online. GamerOfGames123
Joined: 14 Jul 2012
Total Posts: 210
10 Jul 2014 10:18 AM
i dont need more help nubs (Lol joke)
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