Create teletool.lua

This commit is contained in:
blocco 2013-06-29 05:49:12 -04:00
parent 5bddeb4dea
commit 74b74b9c58
1 changed files with 28 additions and 0 deletions

28
rpui/tool/teletool.lua Normal file
View File

@ -0,0 +1,28 @@
--[[
The following legacy code is created by blocco.
It contains many comments for documentation purposes.
It is to be used for educational purposes.
This code is from RBXPri (Blocco Edition).
This file is "tools\teletool.lua".
--]]
local TeleportTool = Instance.new("HopperBin");
TeleportTool.Name = "Teleport";
TeleportTool.TextureId = "";
local Code = Instance.new("LocalScript");
Code.Name = "lua";
Code.Source = [[
local Player;
script.Parent.Selected:connect(function(mouse)
Player = game.Players.LocalPlayer;
mouse.Button1Down:connect(function()
if mouse.Target and Player.Character then
Player.Character:MoveTo(mouse.Hit.p + Vector3.new(0, 3.5, 0))
end
end)
end)
]]
Code.Parent = TeleportTool;
return TeleportTool;