Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game:GetService("Workspace").DescendantAdded:Connect(function(instance)
- if instance.ClassName == "SelectionBox" then
- f = instance.Visible
- instance.Visible = false
- wait()
- local d = instance.Adornee
- if d == d.Parent:FindFirstChild("HumanoidRootPart") then
- instance:Destroy()
- end
- instance.Visible = f
- end
- end)
- _G.rr = true
- local UserInputService = game:GetService("UserInputService")
- -- A sample function providing one usage of InputBegan
- UserInputService.InputEnded:Connect(function(input, gameProcessed)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- if input.KeyCode == Enum.KeyCode.End then
- if _G.rr == true then
- _G.rr = false
- else
- _G.rr = true
- end
- end
- end
- end)
- local mt = getrawmetatable(game)
- local localPlayer = game.Players.LocalPlayer
- local camera = workspace.CurrentCamera
- local function isPartVisible(obj)
- local center = obj.Position
- -- No need to do any extra calculations if the center point is on the screen
- local centerPoint, centerVisible = camera:WorldToScreenPoint(center)
- if centerVisible then
- return true, centerPoint
- end
- return false
- end
- make_writeable(mt);
- local old_index = mt.__index;
- mt.__index = function(a, b)
- if tostring(a) == "Torso" then
- if tostring(b) == "Size" then
- return Vector3.new(2,2,1)
- end
- end
- return old_index(a, b);
- end
- make_writeable(mt);
- local old_index = mt.__index;
- mt.__index = function(a, b)
- if tostring(a) == "HumanoidRootPart" then
- if tostring(b) == "Size" then
- return Vector3.new(2,2,1)
- end
- end
- return old_index(a, b);
- end
- make_writeable(mt);
- local old_index = mt.__index;
- mt.__index = function(a, b)
- if tostring(a) == "HumanoidRootPart" then
- if tostring(b) == "Mass" then
- return 2.7999999523163
- end
- end
- return old_index(a, b);
- end
- make_writeable(mt);
- local old_index = mt.__index;
- mt.__index = function(a, b)
- if tostring(a) == "Torso" then
- if tostring(b) == "Mass" then
- return 2.7999999523163
- end
- end
- return old_index(a, b);
- end
- local mt = getrawmetatable(game)
- local oldnamecall = mt.__namecall
- mt.__namecall = newcclosure(function(self, ...)
- local method = getnamecallmethod()
- if (method == "GetMass") then
- if self.Name == "HumanoidRootPart" or self.Name == "Torso" then
- return 2.7999999523163
- end
- --[[if self.Name == "Torso" then
- return 2.7999999523163
- end
- --]]
- end
- return oldnamecall(self, ...)
- end)
- local t = {}
- while true do
- wait(0.1)
- local localplayer = game:GetService("Players").LocalPlayer
- local name = localplayer.Name
- local team = localplayer.Team
- for i, v in pairs(game:GetService("Workspace"):GetChildren()) do
- if v:FindFirstChild("HumanoidRootPart") and v.Name ~= name and v:FindFirstChild("Torso") then
- if game:GetService("Players"):FindFirstChild(v.Name) then
- if game:GetService("Players"):FindFirstChild(v.Name).Team ~= team then
- _G.head = v.HumanoidRootPart
- if isPartVisible(v.Torso) and _G.rr == true then
- local head = v.HumanoidRootPart
- local castPoints = {head.Position}
- local ignoreList = {}
- for i,l in pairs( v:GetDescendants()) do
- if l:IsA("Part") or l:IsA("MeshPart") then
- table.insert(ignoreList, (table.getn(ignoreList)+1), l )
- end
- end
- local ff = {}
- local ff = workspace.CurrentCamera:GetPartsObscuringTarget(castPoints, ignoreList)
- if v:FindFirstChild("Torso") then
- v.Torso.Size = Vector3.new(2.001,2.001 ,1.001)
- print("torso")
- end
- if table.getn(ff) < 1 then
- local head = v.HumanoidRootPart
- -- if v.Head:FindFirstChild("Mesh") then v.Head.Mesh:Destroy() end
- head.Size = Vector3.new(7,7 ,7)
- head.Transparency = 0.8
- head.Color =Color3.fromRGB(255, 0, 0)
- head.CanCollide = false
- local lolve
- lolve = head.Parent:GetPropertyChangedSignal("Parent"):Connect(function()
- wait(3)
- lolve:Disconnect()
- ----DO NOT CHANGE VALUES BELOW HERE, THIS IS THE SPOOP----
- end)
- else
- _G.head.Color =Color3.fromRGB(163, 162, 165)
- _G.head.Size = Vector3.new(2, 2, 1)
- _G.head.Transparency = 1
- _G.head.CanCollide = true
- end
- else
- _G.head.Color =Color3.fromRGB(163, 162, 165)
- _G.head.Size = Vector3.new(2, 2, 1)
- _G.head.Transparency = 1
- _G.head.CanCollide = true
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement