So, my friend and I have made this script (well scripts) which are meant to give you a wristband when you own a certain game pass, but it doesn't work, and there are no errors. Plus, when you press J it shows a GUI which is meant to choose the wristband's colour, aswell as K doing an animation. Can you guys help?

So, Color Script

colors = {"Earth green",
"Slime green",
"Bright bluish green",
"Black",
"Deep blue",
"Dark blue",
"Navy blue",
"Parsley green",
"Dark green",
"Teal",
"Smoky grey",
"Steel blue",
"Storm blue",
"Lapis",
"Dark indigo",
"Camo",
"Sea green",
"Shamrock",
"Toothpaste",
"Sand blue",
"Medium blue",
"Bright blue",
"Really blue",
"Mulberry",
"Forest green",
"Bright green",
"Grime",
"Lime green",
"Pastel blue-green",
"Fossil",
"Electric blue",
"Lavender",
"Royal purple",
"Eggplant",
"Sand green",
"Moss",
"Artichoke",
"Sage green",
"Pastel light blue",
"Cadet blue",
"Cyan",
"Alder",
"Lilac",
"Plum",
"Bright violet",
"Olive",
"Br. yellowish green",
"Olivine",
"Laurel green",
"Quill grey",
"Ghost grey",
"Pastel Blue",
"Pastel violet",
"Pink",
"Hot pink",
"Magenta",
"Crimson",
"Deep orange",
"New Yeller",
"Medium green",
"Mint",
"Pastel green",
"Light stone grey",
"Light blue",
"Baby blue",
"Carnation pink",
"Persimmon",
"Really red",
"Bright red",
"Maroon",
"Gold",
"Bright yellow",
"Daisy orange",
"Cool yellow",
"Pastel yellow",
"Pearl",
"Fog",
"Mauve",
"Sunrise",
"Terra Cotta",
"Dusty Rose",
"Cocoa",
"Neon orange",
"Bright orange",
"Wheat",
"Buttermilk",
"Institutional white",
"White",
"Light reddish violet",
"Pastel orange",
"Salmon",
"Tawny",
"Rust",
"CGA brown",
"Br. yellowish orange",
"Cashmere",
"Khaki",
"Lily white",
"Seashell",
"Pastel brown",
"Light orange",
"Medium red",
"Burgandy",
"Reddish brown",
"Cork",
"Burlap",
"Beige",
"Oyster",
"Mid gray",
"Brick yellow",
"Nougat",
"Brown",
"Pine Cone",
"Fawn brown",
"Sand red",
"Hurricane grey",
"Cloudy grey",
"Linen",
"Copper",
"Dark orange",
"Dirt brown",
"Bronze",
"Dark stone grey",
"Medium stone grey",
"Flint",
"Dark taupe",
"Burnt Sienna",
"Really black"}

local bColor = script.Parent.Parent.Color

c = 1

for x = 0, 27*7, 27 do
	for y = 0, 27*15, 27 do
		
		col3 = BrickColor.new(colors[c]).Color		
		
		r = col3.r	
		g = col3.g	
		b = col3.b		
		
		local block = script.Block:Clone()
		block.Parent = script.Parent
		block.Name = colors[c]
		block.BackgroundColor3 = Color3.new(r, g, b)
		block.Position = UDim2.new(0, x+1, 0, y+1)
		
		block.MouseEnter:connect(function()
			script.Parent.ColorLabel.Text = block.Name
			game.Players.LocalPlayer.Character.Wristband.BrickColor = BrickColor.new(block.Name)
		end)
		
		block.MouseButton1Click:connect(function()
			
			bColor.Value = BrickColor.new(block.Name)
			
			local color3 = BrickColor.new(block.Name).Color
			local rc = color3.r	
			local gc = color3.g	
			local bc = color3.b	

			game.Players.LocalPlayer.Character.Wristband.BrickColor = bColor.Value			
			
			script.Parent.Visible = false
		end)		
		
		c = c + 1
	end
end

Wristband

local player = game.Players.LocalPlayer
local color = player:WaitForChild("PlayerGui"):WaitForChild("WristbandGui"):WaitForChild("Color")
local mouse = player:GetMouse()

local id = 340236465

if game:GetService("GamePassService"):PlayerHasPass(player, id) then 
	
	local cSel = false
	local look = false
	
	mouse.KeyDown:connect(function(key)
		if key == "j" then
			cSel = not cSel
			colorGUI(cSel)
		end	
		if key == "k" then
			if not look then
				look = true
				lookHand(look)
			end
		end
	end)
	
	color.Changed:connect(function()
		cSel = false
	end)
	
	function colorGUI(b)
		if b then
			color.Parent.ColorPalette.Visible = true
		else
			color.Parent.ColorPalette.Visible = false
		end
	end
	
	local animation = player.Character.Humanoid:LoadAnimation(script:WaitForChild("Animation"))
	function lookHand(b)
		local arm = player.Character:WaitForChild("Right Arm")
		
		if b then
			arm.LocalTransparencyModifier = 0
			arm.Parent.Wristband.LocalTransparencyModifier = 0
				
			animation:Play()
			wait(1)
			animation:AdjustSpeed(0)
			wait(2)
			animation:AdjustSpeed(1)
			wait(1)
			animation:Stop()
			look = false
			wait(.5)
			if (game.Workspace.CurrentCamera.CoordinateFrame.p - player.Character.Head.Position).magnitude <= 1 then
				arm.LocalTransparencyModifier = 1
				arm.Parent.Wristband.LocalTransparencyModifier = 1
			end
		end
	end
	
	
	
	
	local arm = player.Character:WaitForChild("Right Arm")
	local band = script.Wristband
	band.Parent = player.Character
	band.BrickColor = color.Value
	
	local weld = Instance.new("Weld", band)
	weld.Part0 = band
	weld.Part1 = arm
	
	weld.C0 = CFrame.new(0, -.6, 0)*CFrame.fromEulerAnglesXYZ(0, -math.pi/2, math.pi)
	
end

1 comment

0

If you need the model, just ask here and I'll post link