Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rgb(RED,GREEN,BLUE)
- local Count = 1 / 255
- --Red Count
- local red = Count * RED
- --Green Count
- local green = Count * GREEN
- --Blue Count
- local blue = Count * BLUE
- --Give Color3
- local FColor = Color3.new(red,green,blue)
- return FColor
- end
- owner.Character.Humanoid:RemoveAccessories()
- local AdminHat = Instance.new("Model", owner.Character)
- AdminHat.Name = "AdminHat"
- local HatMain = Instance.new("Part", AdminHat)
- HatMain.Name = "HatMain"
- HatMain.Color = rgb(0, 180, 245)
- HatMain.Size = Vector3.new(0.8,1.25,1.25)
- HatMain.Position = Vector3.new(0,5,0)
- HatMain.Rotation = Vector3.new(0, 0, 90)
- HatMain.CanCollide = true
- HatMain.Anchored = true
- HatMain.Shape = Enum.PartType.Cylinder
- HatMain.TopSurface = Enum.SurfaceType.Smooth
- HatMain.BottomSurface = Enum.SurfaceType.Smooth
- local HatBand = Instance.new("Part", AdminHat)
- HatBand.Name = "HatBand"
- HatBand.Color = rgb(245, 235, 5)
- HatBand.Size = Vector3.new(0.1,1.3,1.3)
- HatBand.Position = Vector3.new(0,(5 - 0.8) + 0.5 ,0)
- HatBand.Rotation = Vector3.new(0, 0, 90)
- HatBand.CanCollide = true
- HatBand.Anchored = true
- HatBand.Shape = Enum.PartType.Cylinder
- HatBand.TopSurface = Enum.SurfaceType.Smooth
- HatBand.BottomSurface = Enum.SurfaceType.Smooth
- local HatBottom = Instance.new("Part", AdminHat)
- HatBottom.Name = "HatBottom"
- HatBottom.Color = rgb(0, 180, 245)
- HatBottom.Size = Vector3.new(0.1,2,2)
- HatBottom.Position = Vector3.new(0,(5 - 0.8) + 0.35 ,0)
- HatBottom.Rotation = Vector3.new(0, 0, 90)
- HatBottom.CanCollide = true
- HatBottom.Anchored = true
- HatBottom.Shape = Enum.PartType.Cylinder
- HatBottom.TopSurface = Enum.SurfaceType.Smooth
- HatBottom.BottomSurface = Enum.SurfaceType.Smooth
- local PrimaryPart = HatMain
- local Parts = {HatBand,HatBottom}
- local Parts2 = {HatMain,HatBand,HatBottom}
- for i = 1, #Parts do
- if Parts[i]:IsA('BasePart') then
- local weld = Instance.new("Weld")
- weld.Part0 = PrimaryPart
- weld.Part1 = Parts[i]
- weld.C0 = PrimaryPart.CFrame:inverse()
- weld.C1 = Parts[i].CFrame:inverse()
- weld.Parent = PrimaryPart
- end
- end
- for i,v in pairs(Parts2) do
- v.Anchored = false
- v.Material = "SmoothPlastic"
- end
- local weld = Instance.new("Weld")
- weld.Part0 = owner.Character.Head
- weld.Part1 = PrimaryPart
- weld.C0 = CFrame.new(0,-4.1,0)
- weld.C1 = PrimaryPart.CFrame:inverse()
- weld.Parent = PrimaryPart
- local Music = Instance.new("Sound", HatBottom)
- Music.SoundId = "rbxassetid://" .. 1092048938
- Music.Volume = 1
- Music.Looped = true
- Music:Play()
- local ScreenGui = Instance.new("ScreenGui",owner.PlayerGui)
- ScreenGui.Name = "TrueAdmin"
- local Frame = Instance.new("Frame",ScreenGui)
- Frame.Position = UDim2.new(2,0,0.1,0)
- Frame.Size = UDim2.new(0.1,0,0.8,0)
- Frame.BackgroundColor3 = Color3.new(0.5,0.5,0.5)
- local StartUp = game.TweenService:Create(Frame, TweenInfo.new(0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0), {Position = UDim2.new(1 - 0.1,0,0.1,0)})
- StartUp:Play()
Advertisement
Add Comment
Please, Sign In to add comment