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: Multi Function Gui

Previous Thread :: Next Thread 
Hunterfj1 is not online. Hunterfj1
Joined: 06 Jul 2009
Total Posts: 501
10 Sep 2011 07:22 PM
This forum failed last time, thats why I hate sh. anyways I'll cut to the chase.




function click()
script.parent.parent.parent.parent.Character.Torso.CFrame = CFrame.New(-227, 171.3, 531)
end

Script.Parent.MouseButton1Down:Connect(Click)

This won't work with my class select, and for the record this isn't free models but the class thing is.

Is it broken?
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
10 Sep 2011 07:25 PM
parent = Parent...

~I am from the Scripter's union. I demand better scripting conditions!
~- Guess who I ran into? Floodcheck, isn't it obvious?
~-- Reply to a question with a question and you what you get is annoyance.
Report Abuse
Hunterfj1 is not online. Hunterfj1
Joined: 06 Jul 2009
Total Posts: 501
10 Sep 2011 07:26 PM
ahh... thx for not killing the forum this time
Report Abuse
Hunterfj1 is not online. Hunterfj1
Joined: 06 Jul 2009
Total Posts: 501
10 Sep 2011 07:31 PM
oh wait... still doesn't work
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
10 Sep 2011 07:33 PM
Script = script...
Report Abuse
alex01230 is not online. alex01230
Joined: 22 Nov 2009
Total Posts: 3114
10 Sep 2011 07:33 PM
.new
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
10 Sep 2011 07:36 PM
function click()
script.Prent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-227, 171.3, 531)
end

script.Parent.Button1Down:connect(click)

Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
10 Sep 2011 07:42 PM
function click()
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-227, 171.3, 531)
end

script.Parent.Button1Down:connect(click)

Report Abuse
Hunterfj1 is not online. Hunterfj1
Joined: 06 Jul 2009
Total Posts: 501
10 Sep 2011 07:43 PM
I guess it doesn't run the two scripts at once. Nothing works. Is there an alternate way to do this?
Report Abuse
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
10 Sep 2011 07:54 PM
Connect is not a valid method of MouseButton1Down... you need lowercase C...
connect not Connect
Report Abuse
Hunterfj1 is not online. Hunterfj1
Joined: 06 Jul 2009
Total Posts: 501
10 Sep 2011 07:56 PM
ik, the guy above my last post tried tat. didn't work.
Report Abuse
Hunterfj1 is not online. Hunterfj1
Joined: 06 Jul 2009
Total Posts: 501
10 Sep 2011 08:01 PM
how about another idea? How do you make an ff inpenatratable? Some ffs get hit by things.
Report Abuse
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
10 Sep 2011 08:01 PM
Put this in localScript...

function click()
game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(-227, 171.3, 531);
end

script.Parent.MouseButton1Down:connect(click)

It has to be in a LocalScript... Besides you shouldn't use normal scripts for GuiObjects.
Report Abuse
Hunterfj1 is not online. Hunterfj1
Joined: 06 Jul 2009
Total Posts: 501
10 Sep 2011 08:05 PM
Thats it... I need to place them in locals.
Report Abuse
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
10 Sep 2011 08:12 PM
Just a suggestion, you should only have one script in your entire gui to control it... Multiple scripts creates useless threads and makes temporary lag.
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