-- Decompiled with the Synapse X Luau decompiler.


print("--[[ LawlR Fix - Spray Paint ]]--");
local l__Players__1 = game:GetService("Players");
local l__Parent__2 = script.Parent;
local l__LocalPlayer__3 = l__Players__1.LocalPlayer;
local l__mouse__1 = l__LocalPlayer__3:GetMouse();
local u2 = l__LocalPlayer__3;
local u3 = l__LocalPlayer__3.PlayerGui;
local u4 = nil;
local l__SprayGui__5 = l__Parent__2:WaitForChild("SprayGui");
local u6 = nil;
local u7 = nil;
local u8 = "80373023";
local u9 = nil;
l__Parent__2.Equipped:Connect(function()
	u2 = l__Players__1:GetPlayerFromCharacter(l__Parent__2.Parent);
	u3 = u2.PlayerGui;
	u4 = l__SprayGui__5:Clone();
	u6 = u4.Frame.Frame.TextBox;
	u7 = u4.Frame.ImageLabel;
	u6.Text = u8;
	u7.Image = "rbxassetid://" .. u8;
	if u9 then
		u9:Disconnect();
	end;
	u7.Image = "https://www.roblox.com/asset-thumbnail/image?assetId=" .. u6.Text .. "&width=420&height=420&format=png";
	u9 = u6:GetPropertyChangedSignal("Text"):Connect(function()
		u7.Image = "https://www.roblox.com/asset-thumbnail/image?assetId=" .. u6.Text .. "&width=420&height=420&format=png";
	end);
	u4.Parent = u3;
	if l__Parent__2.Enabled then
		local v4 = "rbxasset://textures\\GunCursor.png";
	else
		v4 = "rbxasset://textures\\GunWaitCursor.png";
	end;
	l__mouse__1.Icon = v4;
end);
l__Parent__2.Unequipped:Connect(function()
	l__mouse__1.Icon = "";
	u8 = u6.Text;
	u4:Destroy();
end);
l__Parent__2:GetPropertyChangedSignal("Enabled"):Connect(function()
	local l__Parent__5 = l__Parent__2.Parent;
	if l__Parent__5 and l__Parent__5:IsA("Model") then
		if l__Parent__2.Enabled then
			local v6 = "rbxasset://textures\\GunCursor.png";
		else
			v6 = "rbxasset://textures\\GunWaitCursor.png";
		end;
		l__mouse__1.Icon = v6;
	end;
end);
l__Parent__2.RemoteFunction.OnClientInvoke = function()
	return l__mouse__1.Hit, l__mouse__1.TargetSurface, l__mouse__1.Target, u6.Text;
end;
