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"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- IntValue2 = Instance.new("IntValue")
- Script3 = Instance.new("Script")
- Part4 = Instance.new("Part")
- IntValue5 = Instance.new("IntValue")
- Script6 = Instance.new("Script")
- Part7 = Instance.new("Part")
- SpecialMesh8 = Instance.new("SpecialMesh")
- Script9 = Instance.new("Script")
- Script10 = Instance.new("Script")
- Model0.Parent = mas
- Part1.Name = "Tele2"
- Part1.Parent = Model0
- Part1.Material = Enum.Material.Neon
- Part1.BrickColor = BrickColor.new("Really red")
- Part1.Anchored = true
- Part1.CanCollide = false
- Part1.FormFactor = Enum.FormFactor.Plate
- Part1.Size = Vector3.new(847.200012, 133.199997, 1133.19995)
- Part1.CFrame = CFrame.new(20, 189, 73.3000031, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(1, 0, 0)
- Part1.Position = Vector3.new(20, 189, 73.3000031)
- Part1.Color = Color3.new(1, 0, 0)
- IntValue2.Name = "Enabled"
- IntValue2.Parent = Part1
- IntValue2.Value = 1
- Script3.Name = "Teleport pad script"
- Script3.Parent = Part1
- table.insert(cors,sandbox(Script3,function()
- ------------------------------------
- modelname="Tele1"
- ------------------------------------
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- local teleportfrom=script.Parent.Enabled.Value
- if teleportfrom~=0 then
- if h==humanoid then
- return
- end
- local teleportto=script.Parent.Parent:findFirstChild(modelname)
- if teleportto~=nil then
- local torso = h.Parent.Torso
- local location = {teleportto.Position}
- local i = 1
- local x = location[i].x
- local y = location[i].y
- local z = location[i].z
- x = x + math.random(-1, 1)
- z = z + math.random(-1, 1)
- y = y + math.random(2, 3)
- local cf = torso.CFrame
- local lx = 0
- local ly = y
- local lz = 0
- script.Parent.Enabled.Value=0
- teleportto.Enabled.Value=0
- torso.CFrame = CFrame.new(Vector3.new(x,y,z), Vector3.new(lx,ly,lz))
- wait(3)
- script.Parent.Enabled.Value=1
- teleportto.Enabled.Value=1
- else
- print("Could not find teleporter!")
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part4.Name = "Tele1"
- Part4.Parent = Model0
- Part4.Material = Enum.Material.Neon
- Part4.BrickColor = BrickColor.new("Really red")
- Part4.Anchored = true
- Part4.CanCollide = false
- Part4.FormFactor = Enum.FormFactor.Plate
- Part4.Size = Vector3.new(847.19989, 133.199997, 1133.19995)
- Part4.CFrame = CFrame.new(19.9999924, 66.600029, 73.3000031, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.Color = Color3.new(1, 0, 0)
- Part4.Position = Vector3.new(19.9999924, 66.600029, 73.3000031)
- Part4.Color = Color3.new(1, 0, 0)
- IntValue5.Name = "Enabled"
- IntValue5.Parent = Part4
- IntValue5.Value = 1
- Script6.Name = "Teleport pad script"
- Script6.Parent = Part4
- table.insert(cors,sandbox(Script6,function()
- ------------------------------------
- modelname="Tele2"
- ------------------------------------
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- local teleportfrom=script.Parent.Enabled.Value
- if teleportfrom~=0 then
- if h==humanoid then
- return
- end
- local teleportto=script.Parent.Parent:findFirstChild(modelname)
- if teleportto~=nil then
- local torso = h.Parent.Torso
- local location = {teleportto.Position}
- local i = 1
- local x = location[i].x
- local y = location[i].y
- local z = location[i].z
- x = x + math.random(-1, 1)
- z = z + math.random(-1, 1)
- y = y + math.random(2, 3)
- local cf = torso.CFrame
- local lx = 0
- local ly = y
- local lz = 0
- script.Parent.Enabled.Value=0
- teleportto.Enabled.Value=0
- torso.CFrame = CFrame.new(Vector3.new(x,y,z), Vector3.new(lx,ly,lz))
- wait(3)
- script.Parent.Enabled.Value=1
- teleportto.Enabled.Value=1
- else
- print("Could not find teleporter!")
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part7.Parent = Model0
- Part7.Anchored = true
- Part7.Size = Vector3.new(4, 1, 2)
- Part7.CFrame = CFrame.new(-3.29999995, -0.399994791, -22.6000004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.Position = Vector3.new(-3.29999995, -0.399994791, -22.6000004)
- SpecialMesh8.Parent = Part7
- SpecialMesh8.MeshId = "http://www.roblox.com/asset/?id=1527559"
- SpecialMesh8.Scale = Vector3.new(-3500, -3500, -3500)
- SpecialMesh8.TextureId = "http://www.roblox.com/asset/?id=1529460"
- SpecialMesh8.VertexColor = Vector3.new(9, 0, 0)
- SpecialMesh8.MeshType = Enum.MeshType.FileMesh
- SpecialMesh8.Scale = Vector3.new(-3500, -3500, -3500)
- Script9.Name = "Sound Script"
- Script9.Parent = Model0
- table.insert(cors,sandbox(Script9,function()
- local s = Instance.new("Sound")
- s.Name = "Name"
- s.SoundId = "http://www.roblox.com/asset/?id=147836419"
- s.Volume = 1
- s.Looped = true
- s.archivable = false
- s.Parent = game.Workspace
- wait(5)
- s:play()
- end))
- Script10.Name = "RegenScript"
- Script10.Parent = Model0
- table.insert(cors,sandbox(Script10,function()
- --Place this INSIDE the model. Don't replace the model name or anything.
- ------------------------------------------------------------------------------------------
- object = script.Parent
- if (object ~= nil) and (object ~= game.Workspace) then
- model = object
- backup = model:clone() -- Make the backup
- waitTime = 60 --Time to wait between regenerations
- wait(math.random(0, waitTime))
- while true do
- wait(waitTime) -- Regen wait time
- message.Parent = game.Workspace
- model:remove()
- wait(1.5) -- Display regen message for this amount of time
- model = backup:clone()
- model.Parent = game.Workspace
- model:makeJoints()
- message.Parent = nil
- end
- end
- ------------------------------------------------------------------------------------------
- -------------------------------~WoNkA444~-----------------------------------------edited by teeteejay ^__^
- ------------------------------------------------------------------------------------------
- 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
Add Comment
Please, Sign In to add comment