Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2)
- local p = game.Players.LocalPlayer
- local c = p.Character
- local mouse = p:GetMouse()
- local ProbeSpeed = .5
- local CloneTransparency = 0
- local TrailColor = "Really red"
- local Colors = {"Red","Blue","Green"}
- function MakeProbe()
- ProbeModel = Instance.new("Model",game.Workspace)
- ProbeModel.Name = p.Name
- Probe = Instance.new("Part",ProbeModel)
- Probe.Shape = "Ball"
- Probe.BottomSurface = "Smooth"
- Probe.TopSurface = "Smooth"
- Probe.Anchored = true
- Probe.Locked = true
- Probe.Size = Vector3.new(2,2,2)
- Probe.Name = "Head"
- Probe.BrickColor = BrickColor.new("Institutional white")
- Probe2 = Probe:Clone()
- Probe2.Parent = ProbeModel
- Probe2.Name = "Torso"
- Probe2.Transparency = 0.5
- Probe2.Shape = "Block"
- Probe2.CFrame = Probe.CFrame
- local Humanoid = Instance.new("Humanoid",ProbeModel)
- Humanoid.Health = 0
- Humanoid.MaxHealth = 0
- Humanoid.WalkSpeed = 0
- game.Workspace.CurrentCamera.CameraSubject = Humanoid
- c:Destroy()
- c = ProbeModel
- p.Parent = nil
- p.Chatted:connect(function(msg)
- game:GetService("Chat"):Chat(Probe,msg,Colors[math.random(1,3)])
- if msg:sub(1,11):lower() == "trailcolor/" then
- TrailColor = msg:sub(12)
- elseif msg:sub(1,11):lower() == "probecolor/" then
- Probe.BrickColor = BrickColor.new(msg:sub(12))
- Probe2.BrickColor = BrickColor.new(msg:sub(12))
- elseif msg:sub(1,11):lower() == "probespeed/" then
- ProbeSpeed = msg:sub(12)
- elseif msg:sub(1,8):lower() == "reprobe/" then
- ProbeModel:remove()
- MakeProbe()
- elseif msg:sub(1,13):lower() == "stealthprobe/" then
- Probe.Transparency = 1
- Probe2.Transparency = 1
- CloneTransparency = 1
- elseif msg:sub(1,12):lower() == "normalprobe/" then
- Probe.Transparency = 0
- Probe2.Transparency = 0
- CloneTransparency = 0
- elseif msg:sub(1,18):lower() == "clonetransparency/" then
- CloneTransparency = msg:sub(19)
- end
- end)
- spawn(function()
- while wait() do
- Probe.CFrame = CFrame.new(Probe.Position,game.Workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-500).p)
- Probe2.CFrame = CFrame.new(Probe2.Position,game.Workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-500).p)
- end
- end)
- mouse.Button1Down:connect(function()
- move = true
- end)
- mouse.Button1Up:connect(function()
- move = false
- end)
- spawn(function()
- while wait() do
- if move == true then
- Probe.CFrame = Probe.CFrame*CFrame.new(0,0,-ProbeSpeed)
- Probe2.CFrame = Probe2.CFrame*CFrame.new(0,0,-ProbeSpeed)
- end
- end
- end)
- spawn(function()
- while wait(.05) do
- local ProbeClone = Probe:Clone()
- ProbeClone.Parent = game.Workspace
- ProbeClone.CanCollide = true
- ProbeClone.Transparency = CloneTransparency
- ProbeClone.BrickColor = BrickColor.new(TrailColor)
- ProbeClone.CanCollide = false
- ProbeClone.Size = Vector3.new(1,1,1)
- game.Debris:AddItem(ProbeClone,.21)
- end
- end)
- end
- MakeProbe()
- game.Workspace.ChildRemoved:connect(function(Child)
- if Child.Name == ProbeModel.Name then
- MakeProbe()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement