Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Part0 = Instance.new("Part")
- Script1 = Instance.new("Script")
- Part0.Name = "Noooob"
- Part0.Parent = mas
- Part0.BrickColor = BrickColor.new("Dark stone grey")
- Part0.Reflectance = 0.40000000596046
- Part0.Rotation = Vector3.new(-90, 0, -180)
- Part0.Locked = true
- Part0.FormFactor = Enum.FormFactor.Plate
- Part0.Size = Vector3.new(2, 1.20000005, 1)
- Part0.CFrame = CFrame.new(4.00004101, 0.500029027, -14.7700005, -0.999999762, 2.7361466e-08, 6.92362664e-06, 6.92362664e-06, 5.96046448e-08, 0.999999881, 2.73621481e-08, 0.999999881, 1.78813934e-07)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part0.Position = Vector3.new(4.00004101, 0.500029027, -14.7700005)
- Part0.Orientation = Vector3.new(-89.9700012, 88.5199966, 89.5099945)
- Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Script1.Parent = Part0
- table.insert(cors,sandbox(Script1,function()
- -- YouTube: Lentilkač 58 ( http://youtube.com/channel/UCGW_ltdykdCjQE6kHRn7sPw/ )
- -- Skype: Lentilkac58
- -- By: Lentilkac58 ( https://www.roblox.com/users/171327977/profile )
- -- Date: 30.8.2017
- local Teleport = "Lentilkac58-Easy-Teleport-2" --Put the name of the Part between the ""s.
- function Touch(hit) --Indicates that the Part has been Touched.
- if script.Parent.Locked == false and script.Parent.Parent:findFirstChild(Teleport).Locked == false then script.Parent.Locked = true script.Parent.Parent:findFirstChild(Teleport).Locked = true --Checks Debounce.
- local Pos = script.Parent.Parent:findFirstChild(Teleport) --Gets the Part to teleport to.
- hit.Parent:moveTo(Pos.Position) wait(1) script.Parent.Locked = false script.Parent.Parent:findFirstChild(Teleport).Locked = false end end --Takes you there and Ends the Function.
- script.Parent.Touched:connect(Touch) --Listens out for Touchers.
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement