|
| 14 Jun 2017 10:43 AM |
--Here is my script for teleporting to spawn, the button works but teleporting to spawn doesn't...
--Starts here: local debounce=true local player=script.Parent.Parent.Parent.Parent local target=game.Workspace:WaitForChild("SpawnLocation") script.Parent.MouseButton1Click:connect(function() if debounce==true then debounce=false player.Character.HumaniodRootPart.CFrame=target. CFrame*CFrame.new(0,3,0) --Cooldown for i=5,1,-1 do wait(1) script.Parent.Text="Cooldown " .. i .. "seconds" end wait(1) script.ParentText="Teleport To P!NK Spawn" debounce=true end end)
--Link to my game: https://www.roblox.com/games/864430104/P-NK-Hangout |
|
|
| Report Abuse |
|
|
xXLuka_XD
|
  |
| Joined: 27 Mar 2016 |
| Total Posts: 296 |
|
|
| 14 Jun 2017 10:45 AM |
| why didnt u make the player teleport to position of the spawn and add some number to keep it in? |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2017 10:49 AM |
--I did that with another button, but it didn't work :/ (This is pretty much the same script, but with coords) --Script Starts Here: local debounce=true local player=script.Parent.Parent.Parent.Parent local target=game.Workspace:WaitForChild("-306.61, 6.115, 1039.8") script.Parent.MouseButton1Click:connect(function() if debounce==true then debounce=false player.Character.HumaniodRootPart.CFrame=target. CFrame*CFrame.new(0,3,0) --Cooldown for i=5,1,-1 do wait(1) script.Parent.Text="Cooldown " .. i .. "seconds" end wait(1) script.ParentText="Teleport To P!NK VIP" debounce=true end end) |
|
|
| Report Abuse |
|
|
xXLuka_XD
|
  |
| Joined: 27 Mar 2016 |
| Total Posts: 296 |
|
|
| 14 Jun 2017 10:52 AM |
| U said parent text without space. i meant fi rst find position of the part and make humanoid or the player itself go to that place using C FRAME or MoveTo |
|
|
| Report Abuse |
|
|
xXLuka_XD
|
  |
| Joined: 27 Mar 2016 |
| Total Posts: 296 |
|
| |
|
TaaRt
|
  |
| Joined: 26 Apr 2009 |
| Total Posts: 5039 |
|
|
| 14 Jun 2017 10:54 AM |
| Did you actually write that? |
|
|
| Report Abuse |
|
|
xXLuka_XD
|
  |
| Joined: 27 Mar 2016 |
| Total Posts: 296 |
|
|
| 14 Jun 2017 10:56 AM |
can i see your place? i will send u friend request
|
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Jun 2017 11:13 AM |
| A little bit, im not a very good scripter, i manly went off tutorials |
|
|
| Report Abuse |
|
|
TaaRt
|
  |
| Joined: 26 Apr 2009 |
| Total Posts: 5039 |
|
|
| 14 Jun 2017 11:14 AM |
| it's completely unreadable |
|
|
| Report Abuse |
|
|