RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a script that turns all of your hats into blocks"
local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() for _, accessory in ipairs(character:GetChildren()) do if accessory:IsA("Accessory") then local newBlock = Instance.new("Part") newBlock.Size = Vector3.new(2, 1, 1) newBlock.BrickColor = BrickColor.new("Bright blue") newBlock.Anchored = false newBlock.CanCollide = true newBlock.Parent = character local weld = Instance.new("WeldConstraint") weld.Parent = newBlock weld.Part0 = newBlock weld.Part1 = accessory.Handle accessory.Handle.Transparency = 1 end end