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: Script Fix.

Previous Thread :: Next Thread 
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
20 Dec 2013 10:47 PM
local script inside text button inside frame nside ScreenGui.


script.Parent = UDim2.new(.3,0,.5,0)
player = game.Players.LocalPlayer
mouse = player:GetMouse()


mouse.MouseButton1Click:connect(function()
game.Lighting.Grenade:Clone().Parent = player.Backpack
script.Parent.Parent:destroy()
script.Parent:destroy()
end)




It does not do anything, please fix it
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
20 Dec 2013 10:48 PM
script.Parent = UDim2.new(.3,0,.5,0)
I dont even know where to start...
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
20 Dec 2013 10:48 PM
"script.Parent = UDim2.new(.3,0,.5,0)" Makes no sense, do you want to set the Position or the Size? So you would do: script.Parent.Position (or Size) = UDim2.new(0.3,0,0.5,0)

it should be:
mouse.Button1Click, not mouse.MouseButton1Click
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
20 Dec 2013 10:49 PM
Hmmm but MouseButton has worked in past....
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
20 Dec 2013 10:50 PM
MouseButton1Down is for TextButton/ImageButton objects, not mouse objects.
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
20 Dec 2013 10:51 PM
wazap, I forgot position, is that SO much to make you lose your mind? >_>
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
20 Dec 2013 10:52 PM
Ok, script.Parent, forgot
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
20 Dec 2013 10:57 PM
Thanks! It's fixed! I love you guys!
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