Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script by AliefAthallah --
- local click = script.Parent:WaitForChild("ClickDetector")
- local shirtID = script.Parent.Parent.OutfitGiver.Shirt.ShirtTemplate -- Shirt Template ID (Visit Category Group for some cool clothing) --
- local brick = script.Parent
- click.MouseClick:Connect(function(player)
- local shirt = player.Character:FindFirstChild("Shirt") -- Finding player shirt --
- if not shirt then
- print("Shirt was not found") -- Shirt not found in player --
- local shirt2 = Instance.new("Shirt", player.Character) --- Creating new shirt in player --
- shirt2.Name = "Shirt"
- shirt2.ShirtTemplate = shirtID
- else if shirt then
- print("Shirt was found") -- Shirt found in player --
- shirt.ShirtTemplate = shirtID
- end
- end
- end)
- function OnEnter()
- brick.BrickColor = BrickColor.new("Lime green") -- Mouse Enter changing the brick color --
- end
- function OnLeave()
- brick.BrickColor = BrickColor.new("Medium stone grey") -- Mouse Leave changing the brick color --
- end
- click.MouseHoverEnter:Connect(OnEnter)
- click.MouseHoverLeave:Connect(OnLeave)
Add Comment
Please, Sign In to add comment