HideUserColor.BackgroundColor3 = red
HideUser.MouseButton1Click:Connect(function()
if HideUserColor.BackgroundColor3 == red then
HideUserColor.BackgroundColor3 = green
NamePos = player.Character.HumanoidRootPart.CFrame
local Loop
local loopFunction = function()
local WearingMask = player.Character:FindFirstChild('In-gameMask')
local Humanoid = player.Character:FindFirstChildWhichIsA('Humanoid')
if not WearingMask then
local OwnsMask = player.Character:FindFirstChild('Mask') or player.Backpack:FindFirstChild('Mask')
if OwnsMask then
local MaskInventory = player.Backpack:FindFirstChild('Mask')
if MaskInventory then
Humanoid:EquipTool(MaskInventory)
wait(0.1)
end
OwnsMask:Activate()
else
local ItemName = 'Mask'
local ItemCost = 60
local ClickDetector = game:GetService("Workspace").Ignored.Shop["[Paintball Mask] - $60"].ClickDetector
local Location = game:GetService("Workspace").Ignored.Shop["[Paintball Mask] - $60"].Head.Position
local function buy()
wait()
player.Character.HumanoidRootPart.CFrame = CFrame.new(Location)
fireclickdetector(ClickDetector)
if not player.Character.LeftHand:FindFirstChild('LeftWrist') then
player.Character.LeftHand.Position = player.Character.LeftLowerArm.Position
player.Character.RightHand.Position = player.Character.RightLowerArm.Position
end
end
To embed this project on your website, copy the following code and paste it into your website's HTML: