|
| 01 Oct 2012 07:31 PM |
Can someone figure out why doesn't this work and post a finished one.
Script:
torso = script.Parent.Parent.Parent.Parent.Character.Torso
function onClicked(GUI) if NewPlayer:IsInGroup("681619") then torso.CFrame = CFrame.new(Vector3.new(-123.8, 85.49, 71.1)) end
script.Parent.MouseButton1Click:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2012 07:33 PM |
Pretty sure this is the error: "681619" Just so you know,
"681619" ~= 681619
Change it to"
681619 |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2012 07:38 PM |
Plus, two ends total.
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2012 07:44 PM |
So this?
torso = script.Parent.Parent.Parent.Parent.Character.Torso
function onClicked(GUI) if NewPlayer:IsInGroup(681619) then torso.CFrame = CFrame.new(Vector3.new(-123.8, 85.49, 71.1)) end end end
script.Parent.MouseButton1Click:connect(onClicked) |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 01 Oct 2012 07:47 PM |
@Shark, torso = script.Parent.Parent.Parent.Parent.Character.Torso
script.Parent.MouseButton1Click:connect(function() if NewPlayer:IsInGroup(681619) then torso.CFrame = CFrame.new(Vector3.new(-123.8, 85.49, 71.1)) end end) |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2012 07:48 PM |
No, two ends total, not add two more. Plus, you never defined NewPlayer. I recommend a LocalScript and Game.Players.LocalPlayer, make torso = Game.Players.LocalPlayer.Character.Torso, and also checking if torso exists.
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2012 07:49 PM |
Just use a LocalScript and use this code:
function MouseButton1Click() local Player, Character = Game.Players.LocalPlayer, Player.Character if (Player:IsInGroup(681619)) then Character.Torso.CFrame = CFrame.new(-123.8, 85.49, 71.1) end end script.Parent.MouseButton1Click:connect(MouseButton1Click) |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 01 Oct 2012 07:50 PM |
Eh' -_- I don't check for that stuff a lot q.q |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2012 07:58 PM |
| What if I wished to make it work for a specific t shirt? |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2012 08:00 PM |
Use BadgeService, the other way is longer...
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|