|
| 04 Apr 2016 08:56 PM |
| I understand basic gui's and how they work, I just need help understanding how to code a teleport-on-buttonpress kind of thing. |
|
|
| Report Abuse |
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 04 Apr 2016 09:26 PM |
--CONFIG--------------------------------------- local teleportposition = Vector3.new(0,10,0) -----------------------------------------------
repeat wait() until game.Players.LocalPlayer
local lp = game.Players.LocalPlayer local sp = script.Parent
sp.MouseButton1Click:connect(function() if lp.Character then lp.Character:SetPrimaryPartCFrame(CFrame.new(teleportposition + Vector3.new(0,2,0))) end end)
|
|
|
| Report Abuse |
|