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: don't know what the problem is

Previous Thread :: Next Thread 
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
22 Jun 2013 08:47 PM
Torso = player.torso

Workspace.Part.ClickDetector.MouseClick:connect(function(playerWhoClicked)
print("Part was clicked by: " .. playerWhoClicked.Name)
wait(4)
Torso.CFrame = CFrame.new(Vector3.new(207.2, 729, 132.5))
end)
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
22 Jun 2013 08:49 PM
I'm not sure if I defined the torso...
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
22 Jun 2013 08:53 PM
Bump
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
22 Jun 2013 08:57 PM
Anyone?
Report Abuse
Newtrat is not online. Newtrat
Joined: 13 Jun 2011
Total Posts: 196
22 Jun 2013 08:59 PM
I'm not sure if this is what's causing your problem, but I believe that the player's torso is named "Torso," with a capital 'T.' So your first line might need to be

Torso = player.Torso

instead of

Torso = player.torso

If there's an error in the output, that might be why.
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
22 Jun 2013 09:06 PM
I did its not working.*Sobs*
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
22 Jun 2013 09:11 PM
...
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
22 Jun 2013 09:22 PM
Anything?
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
22 Jun 2013 09:29 PM
Anything?
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
22 Jun 2013 09:32 PM
RAWR!
Report Abuse
ColdSmoke is not online. ColdSmoke
Joined: 02 Jan 2012
Total Posts: 5784
22 Jun 2013 09:32 PM
rawr

Can't script
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
22 Jun 2013 10:05 PM
Who?Can someone please help me
Report Abuse
Zkiller11 is not online. Zkiller11
Joined: 25 Aug 2009
Total Posts: 2914
22 Jun 2013 10:07 PM
You never defined player.
Report Abuse
devilsshadowchampion is not online. devilsshadowchampion
Joined: 21 Aug 2010
Total Posts: 1763
22 Jun 2013 10:09 PM
you need to define player

something like

game.Players:FindFirstChild()
Report Abuse
ToboboT is not online. ToboboT
Joined: 25 Jun 2011
Total Posts: 2385
22 Jun 2013 10:13 PM
Hmm make sure that there is only one thing in Workspace named Part, otherwise name it something else. And change the script.
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
22 Jun 2013 10:16 PM
Workspace.Part.ClickDetector.MouseClick:connect(function(playerWhoClicked)
print("Part was clicked by: " .. playerWhoClicked.Name)
wait(4)
local Torso = playerWhoClick.Character:FindFirstChild("Torso")
if playerWhoClick.Character and Torso then
Torso.CFrame = CFrame.new(Vector3.new(207.2, 729, 132.5))
end
end)


Didn't feel like explaining every flaw... so here.
Report Abuse
TheDegree0 is not online. TheDegree0
Joined: 06 Jun 2011
Total Posts: 249
22 Jun 2013 10:17 PM
function onclicked(player)
print("Part was clicked by: "..player.Name)
wait(4)
game.Workspace:findFirstChild(player.Name).Torso.CFrame = CFrame.new(Vector3.new(207.2, 729, 132.5))
end

WhereTheClickDetectorIs.MouseClick:connect(onclicked)

I can't check if it works now because im on a linux but if it dosen't work reply the output you get.
Report Abuse
TheDegree0 is not online. TheDegree0
Joined: 06 Jun 2011
Total Posts: 249
22 Jun 2013 10:21 PM
Btw, if you use Vector3.new it will kill the player.
Report Abuse
DoctorTempest is not online. DoctorTempest
Joined: 05 Jan 2013
Total Posts: 3838
22 Jun 2013 10:51 PM
Torso = player.Character.Torso

you also need to name player
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