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: Scripting help Me!

Previous Thread :: Next Thread 
ForTheLols64 is not online. ForTheLols64
Joined: 22 Dec 2014
Total Posts: 19
29 Jun 2015 04:40 PM
How do you make the player (for example) teleports to the map and then they get a sword or a tool? How do you make that? Heres what I mean. First they spawn with NO Tools. Then They Get Teleported to a map with a teleport gui and they get a tool. How do you do that? Heres the script i used so the player would teleport to the map. I put a screen gui in the starter gui and then put a text button and renamed it and called it "Teleport to map!" and then i put a local script into the Textbutton and here is the script.


wait(1)
player = game.Players.LocalPlayer
button = script.Parent

function teleportForest()
torso = player.Character.Torso
torso.CFrame = game.Workspace.MapTele.CFrame
end

button.MouseButton1Click:connect(teleportForest)



Im not good in scripting. So can you put the code or script in your comment plz? I got that script above from a youtube video.


1: The script works. when i spawned i clicked on it and it teleported me to the map.

THX!
Report Abuse
StartDeveloping is not online. StartDeveloping
Joined: 16 Feb 2015
Total Posts: 740
29 Jun 2015 04:51 PM
Nice script! You're progressing well :)

wait(1)
player = game.Players.LocalPlayer
button = script.Parent

function teleportForest()
local torso = player.Character.Torso -- "local" just means like a new variable
torso.CFrame = game.Workspace.MapTele.CFrame
local tool = game.Lighting.Sword:Clone() --Clones a sword, make sure you put a sword named "Sword" in game.Lighting
tool.Parent = player.Backpack --If you check in the explorer and play solo, player.Backpack exists, that is where their tools go
end

button.MouseButton1Click:connect(teleportForest)
Report Abuse
ForTheLols64 is not online. ForTheLols64
Joined: 22 Dec 2014
Total Posts: 19
29 Jun 2015 05:07 PM
omg thanks so much! ur such a greeeat help! May i friend chu? I got a few roblox games!
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
29 Jun 2015 05:09 PM
1:Giving incentive's such as friend request's are NOT allowed in Roblox corpse's.

2:Thogh this went well PLEASE Post in scripting helper's as it are the Correct fourm.
Report Abuse
Narutozo is not online. Narutozo
Joined: 28 Jul 2013
Total Posts: 1314
29 Jun 2015 05:10 PM
THERE IS NO SCRIPTING HELPERS
Report Abuse
ForTheLols64 is not online. ForTheLols64
Joined: 22 Dec 2014
Total Posts: 19
29 Jun 2015 05:12 PM
Um when i put the sword in the lighting it doesnt work!!!
Report Abuse
ForTheLols64 is not online. ForTheLols64
Joined: 22 Dec 2014
Total Posts: 19
29 Jun 2015 05:13 PM
It didnt work tho.
and he may not reply so he wont help probably
Report Abuse
StartDeveloping is not online. StartDeveloping
Joined: 16 Feb 2015
Total Posts: 740
29 Jun 2015 06:35 PM
Make sure the sword name is called "Sword" exactly or change the code to the name you want to. Example:

game.Lighting.Sword:Clone()
to
game.Lighting.DarkBlade:Clone()
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