Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function a(b, c)
- local d = getfenv(c)
- local e =
- setmetatable(
- {},
- {__index = function(self, f)
- if f == "script" then
- return b
- else
- return d[f]
- end
- end}
- )
- setfenv(c, e)
- return c
- end
- local power = 50
- local usrinput = game:GetService("UserInputService")
- local g = {}
- local h = Instance.new("Model", game:GetService("Lighting"))
- local i = Instance.new("Tool")
- local j = Instance.new("Part")
- local k = Instance.new("Script")
- local l = Instance.new("LocalScript")
- local m = sethiddenproperty or set_hidden_property
- i.Name = "Telekinesis"
- i.Parent = h
- i.Grip = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0)
- i.GripForward = Vector3.new(-0, -1, -0)
- i.GripRight = Vector3.new(0, 0, 1)
- i.GripUp = Vector3.new(1, 0, 0)
- j.Name = "Handle"
- j.Parent = i
- j.CFrame = CFrame.new(-17.2635937, 15.4915619, 46, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- j.Orientation = Vector3.new(0, 180, 90)
- j.Position = Vector3.new(-17.2635937, 15.4915619, 46)
- j.Rotation = Vector3.new(-180, 0, -90)
- j.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- j.Transparency = 1
- j.Size = Vector3.new(1, 1.20000005, 1)
- j.BottomSurface = Enum.SurfaceType.Weld
- j.BrickColor = BrickColor.new("Really black")
- j.Material = Enum.Material.Metal
- j.TopSurface = Enum.SurfaceType.Smooth
- j.brickColor = BrickColor.new("Really black")
- k.Name = "LineConnect"
- k.Parent = i
- table.insert(
- g,
- a(
- k,
- function()
- wait()
- local n = script.Part2
- local o = script.Part1.Value
- local p = script.Part2.Value
- local q = script.Par.Value
- local color = script.Color
- local r = Instance.new("Part")
- r.TopSurface = 0
- r.BottomSurface = 0
- r.Reflectance = .5
- r.Name = "Laser"
- r.Locked = true
- r.CanCollide = false
- r.Anchored = true
- r.formFactor = 0
- r.Size = Vector3.new(1, 1, 1)
- local s = Instance.new("BlockMesh")
- s.Parent = r
- while true do
- if n.Value == nil then
- break
- end
- if o == nil or p == nil or q == nil then
- break
- end
- if o.Parent == nil or p.Parent == nil then
- break
- end
- if q.Parent == nil then
- break
- end
- local t = CFrame.new(o.Position, p.Position)
- local dist = (o.Position - p.Position).magnitude
- r.Parent = q
- r.BrickColor = color.Value.BrickColor
- r.Reflectance = color.Value.Reflectance
- r.Transparency = color.Value.Transparency
- r.CFrame = CFrame.new(o.Position + t.lookVector * dist / 2)
- r.CFrame = CFrame.new(r.Position, p.Position)
- s.Scale = Vector3.new(.25, .25, dist)
- wait()
- end
- r:remove()
- script:remove()
- end
- )
- )
- k.Disabled = true
- l.Name = "MainScript"
- l.Parent = i
- table.insert(
- g,
- a(
- l,
- function()
- wait()
- tool = script.Parent
- lineconnect = tool.LineConnect
- object = nil
- mousedown = false
- found = false
- BP = Instance.new("BodyPosition")
- BP.maxForce = Vector3.new(math.huge * math.huge, math.huge * math.huge, math.huge * math.huge)
- BP.P = BP.P * 1.1
- dist = nil
- point = Instance.new("Part")
- point.Locked = true
- point.Anchored = true
- point.formFactor = 0
- point.Shape = 0
- point.BrickColor = BrickColor.Black()
- point.Size = Vector3.new(1, 1, 1)
- point.CanCollide = false
- local s = Instance.new("SpecialMesh")
- s.MeshType = "Sphere"
- s.Scale = Vector3.new(.7, .7, .7)
- s.Parent = point
- handle = tool.Handle
- front = tool.Handle
- color = tool.Handle
- objval = nil
- local u = false
- local v = BP:clone()
- v.maxForce = Vector3.new(30000, 30000, 30000)
- function LineConnect(o, p, q)
- local w = Instance.new("ObjectValue")
- w.Value = o
- w.Name = "Part1"
- local x = Instance.new("ObjectValue")
- x.Value = p
- x.Name = "Part2"
- local y = Instance.new("ObjectValue")
- y.Va
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement