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: Why doesn't this line work?

Previous Thread :: Next Thread 
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
30 Sep 2014 05:31 PM
Mouse.Button1Down:connect(function()

I defined mouse, and it's in a localscript
Report Abuse
StevenCookiez is not online. StevenCookiez
Joined: 21 Nov 2013
Total Posts: 2142
30 Sep 2014 05:34 PM
because it doesnt

@Steven27260 | Butter me up
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
30 Sep 2014 05:35 PM
if you're not going to help then shut up
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
30 Sep 2014 05:42 PM
b
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
30 Sep 2014 05:50 PM
come on..
Report Abuse
killer4723 is not online. killer4723
Joined: 05 Aug 2009
Total Posts: 12483
30 Sep 2014 05:50 PM
Whole script?
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
30 Sep 2014 05:52 PM
MouseButton1Down
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
30 Sep 2014 05:52 PM
local Mouse = game.Players.LocalPlayer:GetMouse()
local Player = game.Players.LocalPlayer
Mouse.Button1Down:connect(function()
local SpawnedPart = Instance.new("Part", game.Workspace)
SpawnedPart.Position = Player.Character.Torso.Position
end)
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
30 Sep 2014 05:53 PM
@noah I'm not using a gui
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
30 Sep 2014 05:54 PM
Doesn't have to be used on a gui. It'll still work.
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
30 Sep 2014 05:56 PM
Wait no, I'm dumb.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
30 Sep 2014 05:58 PM
repeat wait() until game.Players.LocalPlayer
local Player = game.Players.LocalPlayer
local Mouse = Player.LocalPlayer:GetMouse()
Mouse.Button1Down:connect(function()
local SpawnedPart = Instance.new("Part", game.Workspace)
SpawnedPart.Position = Player.Character.Torso.Position
end)
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
30 Sep 2014 06:13 PM
Didn't work, no output either
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Sep 2014 06:18 PM
repeat wait() until game.Players.LocalPlayer
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
Mouse.Button1Down:connect(function()
local SpawnedPart = Instance.new("Part", game.Workspace)
SpawnedPart.Position = Player.Character.Torso.Position
end)

Onky changing above's code a little
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