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: Someone Please Fix This Script?

Previous Thread :: Next Thread 
SharkCutter is not online. SharkCutter
Joined: 30 Jul 2009
Total Posts: 98
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
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
01 Oct 2012 07:38 PM
Plus, two ends total.

¤ ¤ † K M X D † ¤ ¤
Report Abuse
SharkCutter is not online. SharkCutter
Joined: 30 Jul 2009
Total Posts: 98
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 is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
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 is not online. 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
SharkCutter is not online. SharkCutter
Joined: 30 Jul 2009
Total Posts: 98
01 Oct 2012 07:58 PM
What if I wished to make it work for a specific t shirt?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
01 Oct 2012 08:00 PM
Use BadgeService, the other way is longer...

¤ ¤ † K M X D † ¤ ¤
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