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 » Scripters
Home Search
 

Re: Part help

Previous Thread :: Next Thread 
TheGamingLemon700 is not online. TheGamingLemon700
Joined: 08 Oct 2014
Total Posts: 402
26 Dec 2015 03:30 PM
Does anyone know how to make it so when someone step on a part they get sent to another area and at the same time given a tool?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
26 Dec 2015 03:31 PM
local tool = asd

part.Touched:connect(function(obj)
local player = game.Players:GetPlayerFromCharacter(obj.Parent)
if player then
obj:MoveTo(newAreaPosition)
tool:Clone().Parent = player.Backpack
end
end)
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
26 Dec 2015 03:33 PM
I don't understand how obj and obj:MoveTo works in the above, could you explain?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
26 Dec 2015 03:38 PM
obj is whatever touched the part
And it should be obj.Parent:MoveTo(pos) woops.
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
26 Dec 2015 03:51 PM
The parent of obj would be a model, so does that mean we can :MoveTo models?? :D
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
26 Dec 2015 03:53 PM
Also, what is the root part of a Character? I would be curious to know.

This is much more convenient than Cframing the position of the Torso...
Report Abuse
TheGamingLemon700 is not online. TheGamingLemon700
Joined: 08 Oct 2014
Total Posts: 402
26 Dec 2015 04:55 PM
bump
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
26 Dec 2015 04:57 PM
MoveTo on models is quite usual? d;
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
26 Dec 2015 05:19 PM
News to me! haha
Report Abuse
TheGamingLemon700 is not online. TheGamingLemon700
Joined: 08 Oct 2014
Total Posts: 402
26 Dec 2015 05:21 PM
So can someone help
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
26 Dec 2015 05:46 PM
cntkillme gave you the answer
Report Abuse
TheGamingLemon700 is not online. TheGamingLemon700
Joined: 08 Oct 2014
Total Posts: 402
27 Dec 2015 01:43 PM
but should i change the first line to what the tool is called?
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
27 Dec 2015 02:27 PM
Yes, path to the location of the tool.
For ex, if you keep it in lighting, then local tool = game.Lighting.ToolName
Report Abuse
TheGamingLemon700 is not online. TheGamingLemon700
Joined: 08 Oct 2014
Total Posts: 402
27 Dec 2015 03:48 PM
Oh ok
Report Abuse
TheGamingLemon700 is not online. TheGamingLemon700
Joined: 08 Oct 2014
Total Posts: 402
27 Dec 2015 03:53 PM
In the second line were it says part,it has red under it, what do i do?
Report Abuse
TheGamingLemon700 is not online. TheGamingLemon700
Joined: 08 Oct 2014
Total Posts: 402
27 Dec 2015 03:55 PM
it says it had expect an equal sign
Report Abuse
TheGamingLemon700 is not online. TheGamingLemon700
Joined: 08 Oct 2014
Total Posts: 402
27 Dec 2015 04:00 PM
bump
Report Abuse
TheGamingLemon700 is not online. TheGamingLemon700
Joined: 08 Oct 2014
Total Posts: 402
27 Dec 2015 05:43 PM
bump a
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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