|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 28 Jul 2013 |
| Total Posts: 1314 |
|
|
| 29 Jun 2015 05:10 PM |
| THERE IS NO SCRIPTING HELPERS |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2015 05:12 PM |
Um when i put the sword in the lighting it doesnt work!!!
|
|
|
| Report Abuse |
|
|
|
| 29 Jun 2015 05:13 PM |
It didnt work tho. and he may not reply so he wont help probably |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|