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: BrickMaker HopperBin

Previous Thread :: Next Thread 
evildoomsayer is not online. evildoomsayer
Joined: 28 Jun 2011
Total Posts: 1443
18 Mar 2013 03:25 PM
player = script.Parent.Parent.Parent
mouse = player:GetMouse()
mouse.Button1Up:connect(function()
part = Instance.new("Part",game.Workspace)
part.Position = Vector3.new(mouse.Target) --here
part.Anchored = true
end)

It works,but it won't position at the spot that i put it in...
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
18 Mar 2013 03:26 PM
What do you mean 'spot that i put it in...'
Report Abuse
evildoomsayer is not online. evildoomsayer
Joined: 28 Jun 2011
Total Posts: 1443
18 Mar 2013 03:53 PM
like when i click at a position(you know how we click),it doesn't position itself there,it go to the position of 0,0,0..
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
18 Mar 2013 03:56 PM
.Target returns an object value.
You want .Hit sense it returns a CFrame value.
Report Abuse
evildoomsayer is not online. evildoomsayer
Joined: 28 Jun 2011
Total Posts: 1443
18 Mar 2013 04:24 PM
btw i tried that before i posted and still doesn't work... D:
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
18 Mar 2013 04:25 PM
Perhaps it broke?
if mouse.Hit then
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
18 Mar 2013 04:25 PM
Vector3.new(CFrame.new(mouse.Hit))
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
18 Mar 2013 04:29 PM
        local Player = script.Parent.Parent.Parent
        local Mouse = Player:GetMouse()

        Mouse.Button1Up:connect(function()
            if Mouse.Hit then
                local Part = Instance.new("Part", Game.Workspace)
                Part.Anchored = true
                Part.Position = Vector3.new(Mouse.Hit.p)
            end
        end)
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
18 Mar 2013 04:32 PM
Never mind it doesn't break.
You can remove the "if Mouse.Hit then" and the end
Report Abuse
evildoomsayer is not online. evildoomsayer
Joined: 28 Jun 2011
Total Posts: 1443
18 Mar 2013 04:33 PM
tried that too before,still no work.
Report Abuse
evildoomsayer is not online. evildoomsayer
Joined: 28 Jun 2011
Total Posts: 1443
18 Mar 2013 04:33 PM
okay i will try that after the other suggestion!
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
18 Mar 2013 04:35 PM
Mine works I tested it.
The only thing I can think of is maybe your "Player = script.Parent...." is off some.
Report Abuse
evildoomsayer is not online. evildoomsayer
Joined: 28 Jun 2011
Total Posts: 1443
18 Mar 2013 04:37 PM
okay i will use a localscript.
Report Abuse
evildoomsayer is not online. evildoomsayer
Joined: 28 Jun 2011
Total Posts: 1443
18 Mar 2013 04:41 PM
can you show me your version of the script?
Report Abuse
evildoomsayer is not online. evildoomsayer
Joined: 28 Jun 2011
Total Posts: 1443
18 Mar 2013 04:41 PM
@cody*
Report Abuse
ChuckTestaDotAvi is not online. ChuckTestaDotAvi
Joined: 03 Sep 2012
Total Posts: 439
18 Mar 2013 04:46 PM
player = script.Parent.Parent.Parent
mouse = player:GetMouse()
mouse.Button1Up:connect(function()
part = Instance.new("Part",game.Workspace)
part.Position = mouse.Hit.p
part.Anchored = true
end)




It must be as local script and placed somewhere in player/character).
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