Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Plr = game.Players["iatemone"]
- local Char = Plr.Character
- local Hum = Char:FindFirstChildOfClass'Humanoid'
- local Vrson = 2
- local Torso = Char.Torso
- --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")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Weld5 = Instance.new("Weld")
- Weld6 = Instance.new("Weld")
- Weld7 = Instance.new("Weld")
- Model0.Name = "Prediciton walls"
- Model0.Parent = mas
- Part1.Name = "Top"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-54.4427261, 41.5299988, -36.7821465, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(-54.4427261, 41.5299988, -36.7821465)
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part1.Size = Vector3.new(26.0400009, 5.52999973, 16)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.CanCollide = false
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Really black")
- Part2.Name = "BackAndFront"
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(-54.4727249, 35.9399986, -36.7821465, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Position = Vector3.new(-54.4727249, 35.9399986, -36.7821465)
- Part2.Color = Color3.new(1, 0, 0)
- Part2.Size = Vector3.new(3.88000107, 5.52999973, 16)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Really red")
- Part2.CanCollide = false
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Really red")
- Part3.Name = "RightWall"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(-46.9227219, 36, -36.7821465, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(-46.9227219, 36, -36.7821465)
- Part3.Color = Color3.new(0, 0, 1)
- Part3.Size = Vector3.new(11, 5.52999973, 16)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Really blue")
- Part3.CanCollide = false
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Really blue")
- Part4.Name = "Main"
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(-61.9627266, 36, -36.7821465, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(-61.9627266, 36, -36.7821465)
- Part4.Color = Color3.new(0, 0, 1)
- Part4.Size = Vector3.new(11, 5.52999973, 16)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Really blue")
- Part4.CanCollide = false
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Really blue")
- Weld5.Name = "BTWeld"
- Weld5.Parent = Part4
- Weld5.C1 = CFrame.new(-7.48999977, 0.0600013733, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld5.Part0 = Part4
- Weld5.Part1 = Part2
- Weld5.part1 = Part2
- Weld6.Name = "BTWeld"
- Weld6.Parent = Part4
- Weld6.C1 = CFrame.new(-7.52000046, -5.52999878, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld6.Part0 = Part4
- Weld6.Part1 = Part1
- Weld6.part1 = Part1
- Weld7.Name = "BTWeld"
- Weld7.Parent = Part4
- Weld7.C1 = CFrame.new(-15.0400028, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld7.Part0 = Part4
- Weld7.Part1 = Part3
- Weld7.part1 = Part3
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- if Vrson < 2 then
- warn("This Prediction Script Is Old")
- script:Destroy()
- else
- print("All Updated")
- end
- local Walls = script["Prediciton walls"]:Clone()
- script["Prediciton walls"]:Destroy()
- for i,v in pairs(Walls:GetChildren()) do
- if v:IsA("Part") or v:IsA("BasePart") then
- v.Transparency = 1
- end
- end
- function Predict(Model)
- local LeftWall = Model.Main
- local RightWall = Model.RightWall
- local BackAndFront = Model.BackAndFront
- local Top = Model.Top
- LeftWall.Touched:Connect(function()
- Torso.CFrame = Torso.CFrame * CFrame.new(5,0,0)
- end)
- RightWall.Touched:Connect(function()
- Torso.CFrame = Torso.CFrame * CFrame.new(-5,0,0)
- end)
- Top.Touched:Connect(function()
- Torso.CFrame = Torso.CFrame * CFrame.new(0,0,-5)
- end)
- BackAndFront.Touched:Connect(function()
- Torso.CFrame = Torso.CFrame * CFrame.new(0,0,-5)
- end)
- end
- Plr.Chatted:Connect(function(chat)
- if chat == "/e pre" then
- print("PREDICTING")
- Walls.Parent = workspace
- Walls.Main.CFrame = Char.HumanoidRootPart.CFrame
- local MainWeld = Instance.new("Weld", Char.HumanoidRootPart)
- MainWeld.Part0 = Char.HumanoidRootPart
- MainWeld.Part1 = Walls.Main
- Predict(Walls)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement