Advertisement
creativenico

Colourful Weapons

Aug 7th, 2021
974
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. local localp = game:GetService("Players").LocalPlayer
  2. local RS = game:GetService("RunService")
  3. function notify(NTitle, NText, NIcon, NDuration)
  4. game.StarterGui:SetCore("SendNotification",{
  5. Title = NTitle;
  6. Text = NText;
  7. Icon = NIcon;
  8. Duration = NDuration;
  9. })
  10. end
  11. notify("fourteen", "Executed Colourful guns!")
  12. RS.RenderStepped:Connect(function()
  13. local function GunSkins(GunTable, Color, Material)
  14. for _, v in pairs(GunTable:GetChildren()) do
  15. if v:IsA"Tool" and v:FindFirstChild"Fire" then
  16. for _, i in pairs(v:GetDescendants()) do
  17. if i:IsA"UnionOperation" or i:IsA"Part" or i:IsA"MeshPart" then
  18. if i:IsA"UnionOperation" then
  19. i.UsePartColor = true
  20. end
  21. i.Material = Material
  22. i.Color = Color
  23. end
  24. end
  25. end
  26. end
  27. end
  28. GunSkins(localp.Backpack, Color3.fromRGB(255,51,51), "ForceField") -- you can change color here.
  29. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement