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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 501 |
|
|
| 10 Sep 2011 07:31 PM |
| oh wait... still doesn't work |
|
|
| Report Abuse |
|
|
| |
|
alex01230
|
  |
| Joined: 22 Nov 2009 |
| Total Posts: 3114 |
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|