Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return script
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- Wo = Instance.new("Model",game:GetService("Lighting"))
- Wo.Name = "CompiledModel"
- -----variables
- local base = Instance.new("Part")
- base.Name = "humanoiddetector"
- local Bi = Instance.new("BillboardGui")
- local text = Instance.new("TextBox")
- local runner = game.Workspace:WaitForChild("refrop")
- -----variables
- -----game
- wait(0.2)
- local W = Wo
- base.Parent = W
- base.Position = runner.Torso.Position + Vector3.new(0, 1, 0)
- base.Orientation = Vector3.new(0, 0, 0)
- base.Size = Vector3.new(10.51, 7.321, 11.44)
- base.Anchored = true
- base.BrickColor = BrickColor.new("Sage green")
- base.Material = Enum.Material.Neon
- base.Transparency = 0.5
- base.CanCollide = false
- Bi.Parent = base
- Bi.AlwaysOnTop = true
- Bi.Enabled = true
- Bi.Size = UDim2.new(0, 200, 0, 50)
- text.Parent = Bi
- text.TextScaled = true
- text.BackgroundTransparency = 1
- text.Text = "Searching..."
- text.Size = UDim2.new(1, 0, 1, 0)
- -----game
- -----final
- Wo.Parent = workspace
- Wo:MakeJoints()
- local mas1 = Wo:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- Wo:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- -----final
- -----functions
- game.Workspace.humanoiddetector.Touched:Connect(function(hit)
- local char = hit.Parent
- if char.Humanoid then
- local humanoid = char.Parent.Name
- if (humanoid ~= nil) then -- if a humanoid exists, then
- game.Workspace.humanoiddetector.BillboardGui.TextBox.Text = humanoid -- damage the humanoid
- end
- end
- wait(10)
- game.Workspace.humanoiddetector:destroy()
- end)
- -----functions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement