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: Need help!

Previous Thread :: Next Thread 
udayk8139 is not online. udayk8139
Joined: 25 Aug 2013
Total Posts: 622
12 Jul 2014 06:32 AM
function onClicked()
if game.Players.LocalPlayer == nil then return end
game.Players.LocalPlayer.Character.Torso.CFrame =CFrame.new(0,0+10,0)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
NiceCoder is not online. NiceCoder
Joined: 15 Oct 2012
Total Posts: 6593
12 Jul 2014 06:34 AM
is it a local script
Report Abuse
udayk8139 is not online. udayk8139
Joined: 25 Aug 2013
Total Posts: 622
12 Jul 2014 06:41 AM
No, I made it for my game. It';s just a part with clikdetector and this script...
Report Abuse
udayk8139 is not online. udayk8139
Joined: 25 Aug 2013
Total Posts: 622
12 Jul 2014 06:49 AM
Any one? Pls
Report Abuse
cornytime is not online. cornytime
Joined: 07 Feb 2013
Total Posts: 3213
12 Jul 2014 07:39 AM
script.Parent.ClickDetector.MouseClick:connect(function(click)
if click.Parent:findFirstChild("Torso") then
click.Parent.Torso.CFrame =CFrame.new(0,0+10,0)
end)
end
---idunno
Report Abuse
NiceCoder is not online. NiceCoder
Joined: 15 Oct 2012
Total Posts: 6593
12 Jul 2014 08:46 AM
if you're using local stuff you need to put it in a localscript
Report Abuse
udayk8139 is not online. udayk8139
Joined: 25 Aug 2013
Total Posts: 622
01 Aug 2014 06:58 AM
Thanks, It worked! :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