Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- _______ _ _ _ _
- |__ __| | | | | (_) (_)
- | | ___| | ___| | ___ _ __ ___ ___ _ ___
- | |/ _ \ |/ _ \ |/ / | '_ \ / _ \/ __| / __|
- | | __/ | __/ <| | | | | __/\__ \ \__ \
- |_|\___|_|\___|_|\_\_|_| |_|\___||___/_|___/
- Made By: astrologicality.
- #1 Edited By: Rocky2u.
- #2 Edited By: KrystalTeam.
- Keys:
- Left Mouse Click: Telekinesis.
- E: Spawn Brick At Cursor Location.
- F: Toggle Telekinesis Visibility.
- G: Blow Selected Object.
- H: UnAnchored Selected Object.
- V: 100 Studs Away The Selected Object.
- C: 5 Studs Away The Selected Object.
- X: +5 Studs Away The Selected Object.
- Z: -5 Studs Away The Selected Object.
- --]]
- local Players = game.Players
- local Player = Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local dist = 25
- local trans = 0
- local dwn=false
- local Bin = Instance.new("HopperBin")
- Bin.Name = "Telekinesis"
- Bin.Parent = Player.Backpack
- local ScreenGUI = Instance.new("ScreenGui", Player.PlayerGui)
- local Color = Instance.new("Color3Value", ScreenGUI)
- local ColorValue = Color.Value
- local Blue = Instance.new("TextButton", ScreenGUI)
- local Red = Instance.new("TextButton", ScreenGUI)
- local Green = Instance.new("TextButton", ScreenGUI)
- local Yellow = Instance.new("TextButton", ScreenGUI)
- local Pink = Instance.new("TextButton", ScreenGUI)
- local LightBlue = Instance.new("TextButton", ScreenGUI)
- local White = Instance.new("TextButton", ScreenGUI)
- Color.Name = "Color"
- Blue.BackgroundColor3 = BrickColor.new("Bright blue").Color
- Blue.Transparency = 0.5
- Blue.Size = UDim2.new(0.02, 0 ,0, 20)
- Blue.Position = UDim2.new(1, -35, 1, -35)
- Blue.Name = "Blue"
- Blue.Text = ""
- Blue.Visible = false
- Red.BackgroundColor3 = BrickColor.new("Bright red").Color
- Red.Transparency = 0.5
- Red.Size = UDim2.new(0.02, 0 ,0, 20)
- Red.Position = UDim2.new(1,-65, 1, -35)
- Red.Name = "Red"
- Red.Text = ""
- Red.Visible = false
- Green.BackgroundColor3 = BrickColor.new("Bright green").Color
- Green.Transparency = 0.5
- Green.Size = UDim2.new(0.02, 0 ,0, 20)
- Green.Position = UDim2.new(1,-95, 1, -35)
- Green.Name = "Green"
- Green.Text = ""
- Green.Visible = false
- Yellow.BackgroundColor3 = BrickColor.new("New Yeller").Color
- Yellow.Transparency = 0.5
- Yellow.Size = UDim2.new(0.02, 0 ,0, 20)
- Yellow.Position = UDim2.new(1,-125, 1, -35)
- Yellow.Name = "Yellow"
- Yellow.Text = ""
- Yellow.Visible = false
- Pink.BackgroundColor3 = BrickColor.new("Hot pink").Color
- Pink.Transparency = 0.5
- Pink.Size = UDim2.new(0.02, 0 ,0, 20)
- Pink.Position = UDim2.new(1,-155, 1, -35)
- Pink.Name = "Pink"
- Pink.Text = ""
- Pink.Visible = false
- LightBlue.BackgroundColor3 = BrickColor.new("Cyan").Color
- LightBlue.Transparency = 0.5
- LightBlue.Size = UDim2.new(0.02, 0 ,0, 20)
- LightBlue.Position = UDim2.new(1,-185, 1, -35)
- LightBlue.Name = "LightBlue"
- LightBlue.Text = ""
- LightBlue.Visible = false
- White.BackgroundColor3 = BrickColor.new("White").Color
- White.Transparency = 0.5
- White.Size = UDim2.new(0.02, 0 ,0, 20)
- White.Position = UDim2.new(1,-215, 1, -35)
- White.Name = "White"
- White.Text = ""
- White.Visible = false
- local bawl = Instance.new("Part", game.Lighting)
- bawl.Name="TelekinesisGrab"
- local bp = Instance.new("BodyPosition", bawl)
- local w = Instance.new("Weld", bawl)
- function onButton1Down(mouse)
- bawl.Size = Vector3.new(2,2,2)
- bawl.Material="Neon"
- bawl.Shape=0
- bawl.Transparency=trans
- bawl.Name="TelekinesisGrab"
- bawl.CanCollide = false
- bawl.Parent = game.Workspace
- w.Parent = bawl
- w.Name = "Weld"
- bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bp.Parent = bawl
- bp.Name="lolx"
- bawl.Parent = workspace
- if mouse ~= nil then
- if mouse.Target ~= nil then
- w.Part0 = mouse.Target
- w.Part1 = bawl
- dwn = true
- if mouse.Target.Parent:FindFirstChild("Humanoid") then
- mouse.Target.Parent:FindFirstChild("Humanoid").PlatformStand=true
- else
- print('no humanoid')
- end
- end
- end
- spawn(function()
- while dwn == true do
- ypcall(function()
- bp.Parent = bawl
- bp.position = Player.Character.Torso.Position + (mouse.Hit.lookVector*dist)
- wait()
- end)
- end
- end)
- end
- function onButton1Up(mouse)
- dwn=false
- if bawl ~= nil then
- bawl.Parent=game.Lighting
- else
- print('not found')
- end
- end
- function onKeyDown(key, mouse)
- key:lower()
- if key == "r" then
- if bawl ~= nil then
- --bawl.Parent=nil
- end
- elseif key == "e" then
- local p = Instance.new("Part", workspace)
- p.Size = Vector3.new(3,3,3)
- p.Material = "Neon"
- p.Position = mouse.Hit.p + Vector3.new(0,2,0)
- p.BrickColor = bawl.BrickColor
- p.Shape = "Ball"
- p.BottomSurface = "Smooth"
- p.TopSurface = "Smooth"
- elseif key == "h" then
- if bawl ~= nil then
- if bawl:FindFirstChild("Weld") ~= nil then
- if bawl:FindFirstChild("Weld").Part0 ~= nil then
- bawl:FindFirstChild("Weld").Part0.Anchored=false
- end
- end
- end
- elseif key == "g" then
- if bawl ~= nil then
- local x = Instance.new("Explosion",workspace)
- x.Position=bawl.Position
- else
- print('some sort of error')
- end
- elseif key == "x" then
- dist=dist - 5
- elseif key == "c" then
- dist=15
- elseif key == "v" then
- dist=100
- elseif key == "z" then
- dist=dist + 5
- end
- end
- Blue.MouseButton1Down:connect(function ()
- if bawl ~= nil then
- bawl.BrickColor = BrickColor.new("Bright blue")
- end
- end)
- Red.MouseButton1Down:connect(function ()
- if bawl ~= nil then
- bawl.BrickColor = BrickColor.new("Bright red")
- end
- end)
- Green.MouseButton1Down:connect(function ()
- if bawl ~= nil then
- bawl.BrickColor = BrickColor.new("Bright green")
- end
- end)
- Yellow.MouseButton1Down:connect(function ()
- if bawl ~= nil then
- bawl.BrickColor = BrickColor.new("New Yeller")
- end
- end)
- Pink.MouseButton1Down:connect(function ()
- if bawl ~= nil then
- bawl.BrickColor = BrickColor.new("Hot pink")
- end
- end)
- LightBlue.MouseButton1Down:connect(function ()
- if bawl ~= nil then
- bawl.BrickColor = BrickColor.new("Cyan")
- end
- end)
- White.MouseButton1Down:connect(function ()
- if bawl ~= nil then
- bawl.BrickColor = BrickColor.new("White")
- end
- end)
- Bin.Selected:connect(function ()
- Player.PlayerGui.ScreenGui.Blue.Visible = true
- Player.PlayerGui.ScreenGui.Red.Visible = true
- Player.PlayerGui.ScreenGui.Green.Visible = true
- Player.PlayerGui.ScreenGui.Yellow.Visible = true
- Player.PlayerGui.ScreenGui.Pink.Visible = true
- Player.PlayerGui.ScreenGui.LightBlue.Visible = true
- Player.PlayerGui.ScreenGui.White.Visible = true
- end)
- Bin.Deselected:connect(function ()
- Player.PlayerGui.ScreenGui.Blue.Visible = false
- Player.PlayerGui.ScreenGui.Red.Visible = false
- Player.PlayerGui.ScreenGui.Green.Visible = false
- Player.PlayerGui.ScreenGui.Yellow.Visible = false
- Player.PlayerGui.ScreenGui.Pink.Visible = false
- Player.PlayerGui.ScreenGui.LightBlue.Visible = false
- Player.PlayerGui.ScreenGui.White.Visible = false
- end)
- Bin.Selected:connect(function(mouse)
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- mouse.Button1Up:connect(function() onButton1Up(mouse) end)
- mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement