Howdy.
I’ve been bored, so I’ve been replicating exploits through Roblox studio, one being HBE, aka hitbox expander. (And to clear things up, no I am not using an injector, I am purely using the command bar in studio.) Anyway, I’ve been having problems changing what a decal looks like via scripts, do note that this is performed locally through the command bar.
_G.enabled = true
_G.hitboxTransparency = 0.8
_G.hitboxColor = "Really red"
_G.hitboxSize = 5
_G.hitboxMaterial = "Plastic"
_G.decal = 6552522572 --Decal
game:GetService("RunService").RenderStepped:Connect(function()
if _G.enabled then
for i, v in pairs(game:GetService("Players"):GetPlayers())do
if v.Name ~= game:GetService("Players").LocalPlayer.Name then
pcall(function()
v.Character.HumanoidRootPart.Size = Vector3.new(_G.hitboxSize,_G.hitboxSize,_G.hitboxSize)
v.Character.HumanoidRootPart.Transparency = _G.hitboxTransparency
v.Character.HumanoidRootPart.BrickColor = BrickColor.new(_G.hitboxColor)
v.Character.HumanoidRootPart.Material = _G.hitboxMaterial
v.Character.HumanoidRootPart.CanCollide = false
if _G.decal > 0 then
if v.Character.HumanoidRootPart:FindFirstChildWhichIsA("Decal")then
wait()
else
local deecal = Instance.new("Decal")
deecal.Parent = v.Character.HumanoidRootPart
deecal.Face = "Front"
deecal.Texture = "rbxassetid://".._G.decal --Important part in question
end
end
end)
end
end
end
end)
Here’s what happens when I do insert the code.
If somebody can help, I’d really appreciate it. Thank you.