Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (not game:IsLoaded()) then
- game.Loaded:Wait()
- task.wait(3)
- end
- local CCSG = Instance.new('ScreenGui')
- CCSG.IgnoreGuiInset = true
- CCSG.Name = 'CCSG'
- CCSG.Parent = game:GetService('CoreGui')
- local Main = Instance.new("Frame")
- Main["BorderSizePixel"] = 0
- Main["AnchorPoint"] =Vector2.new(0.5, 0.5)
- Main["BackgroundTransparency"] =0
- Main["Position"] =UDim2.new(0.4000000059604645, 0, 0.5, 0)
- Main["Size"] =UDim2.new(0, 340, 0, 120)
- Main["Name"] ="Main"
- Main["BackgroundColor3"] =Color3.fromRGB(22.000000588595867, 22.000000588595867, 22.000000588595867)
- Main["Parent"] = CCSG
- local TopBar = Instance.new("Frame")
- TopBar["BorderSizePixel"] = 0
- TopBar["AnchorPoint"] =Vector2.new(0.5, 0)
- TopBar["BackgroundTransparency"] =0
- TopBar["Position"] =UDim2.new(0.5, 0, 0, 0)
- TopBar["Size"] =UDim2.new(1, 0, 0, 25)
- TopBar["Name"] ="TopBar"
- TopBar["BackgroundColor3"] =Color3.fromRGB(16.000000946223736, 16.000000946223736, 16.000000946223736)
- TopBar["Parent"] = Main
- local TopBarCorner = Instance.new("UICorner")
- TopBarCorner["Name"] ="TopBarCorner"
- TopBarCorner["CornerRadius"] =UDim.new(0, 8)
- TopBarCorner["Parent"] = TopBar
- local TopBarLine = Instance.new("Frame")
- TopBarLine["BorderSizePixel"] = 0
- TopBarLine["AnchorPoint"] =Vector2.new(0.5, 1)
- TopBarLine["BackgroundTransparency"] =0
- TopBarLine["Position"] =UDim2.new(0.5, 0, 1, 0)
- TopBarLine["Size"] =UDim2.new(1, 0, 0, 3)
- TopBarLine["Name"] ="TopBarLine"
- TopBarLine["BackgroundColor3"] =Color3.fromRGB(16.000000946223736, 16.000000946223736, 16.000000946223736)
- TopBarLine["Parent"] = TopBar
- local Title = Instance.new("TextLabel")
- Title["BorderSizePixel"] = 0
- Title["AutomaticSize"] = Enum.AutomaticSize.X
- Title["FontFace"] =Font.new("rbxasset://fonts/families/GothamSSm.json", Enum.FontWeight.Regular)
- Title["TextColor3"] =Color3.fromRGB(200.00000327825546, 200.00000327825546, 200.00000327825546)
- Title["TextTransparency"] =0
- Title["Text"] ="Template Text"
- Title["AnchorPoint"] =Vector2.new(0, 0)
- Title["TextXAlignment"] =Enum.TextXAlignment.Left
- Title["BackgroundTransparency"] =1
- Title["Position"] =UDim2.new(0, 0, 0, 0)
- Title["Name"] ="Title"
- Title["Size"] =UDim2.new(1, 0, 1, 0)
- Title["TextSize"] =14
- Title["BackgroundColor3"] =Color3.fromRGB(255, 255, 255)
- Title["Parent"] = TopBar
- local TitlePadding = Instance.new("UIPadding")
- TitlePadding["PaddingTop"] =UDim.new(0, 0)
- TitlePadding["Name"] ="TitlePadding"
- TitlePadding["PaddingBottom"] =UDim.new(0, 0)
- TitlePadding["PaddingLeft"] =UDim.new(0, 6)
- TitlePadding["PaddingRight"] =UDim.new(0, 6)
- TitlePadding["Parent"] = Title
- local TitleStroke = Instance.new("UIStroke")
- TitleStroke["Color"] =Color3.fromRGB(0, 0, 0)
- TitleStroke["Transparency"] =0
- TitleStroke["Name"] ="TitleStroke"
- TitleStroke["Thickness"] =1
- TitleStroke["Parent"] = Title
- local TopBarGradient = Instance.new("UIGradient")
- TopBarGradient["Color"] =ColorSequence.new{
- ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255))
- }
- TopBarGradient["Name"] ="TopBarGradient"
- TopBarGradient["Rotation"] =-90
- TopBarGradient["Parent"] = TopBar
- local MainStroke = Instance.new("UIStroke")
- MainStroke["Color"] =Color3.fromRGB(200.00000327825546, 200.00000327825546, 200.00000327825546)
- MainStroke["Transparency"] =0
- MainStroke["Name"] ="MainStroke"
- MainStroke["Thickness"] =1.2999999523162842
- MainStroke["Parent"] = Main
- local MainCorner = Instance.new("UICorner")
- MainCorner["Name"] ="MainCorner"
- MainCorner["CornerRadius"] =UDim.new(0, 8)
- MainCorner["Parent"] = Main
- local CounterText = Instance.new("TextLabel")
- CounterText["BorderSizePixel"] = 0
- CounterText["FontFace"] =Font.new("rbxasset://fonts/families/GothamSSm.json", Enum.FontWeight.Regular)
- CounterText["TextColor3"] =Color3.fromRGB(200.00000327825546, 200.00000327825546, 200.00000327825546)
- CounterText["TextTransparency"] =0
- CounterText["Text"] ="$999,999,999"
- CounterText["AnchorPoint"] =Vector2.new(0.5, 1)
- CounterText["TextXAlignment"] =Enum.TextXAlignment.Center
- CounterText["BackgroundTransparency"] =1
- CounterText["Position"] =UDim2.new(0.5, 0, 1, 0)
- CounterText["Name"] ="CounterText"
- CounterText["Size"] =UDim2.new(1, 0, 1, 0)
- CounterText["TextSize"] =35
- CounterText["BackgroundColor3"] =Color3.fromRGB(255, 255, 255)
- CounterText["Parent"] = Main
- local CounterTextPadding = Instance.new("UIPadding")
- CounterTextPadding["PaddingTop"] =UDim.new(0, 15)
- CounterTextPadding["Name"] ="CounterTextPadding"
- CounterTextPadding["PaddingBottom"] =UDim.new(0, 0)
- CounterTextPadding["PaddingLeft"] =UDim.new(0, 12)
- CounterTextPadding["PaddingRight"] =UDim.new(0, 12)
- CounterTextPadding["Parent"] = CounterText
- local CounterTextStroke = Instance.new("UIStroke")
- CounterTextStroke["Color"] =Color3.fromRGB(0, 0, 0)
- CounterTextStroke["Transparency"] =0
- CounterTextStroke["Name"] ="CounterTextStroke"
- CounterTextStroke["Thickness"] =1
- CounterTextStroke["Parent"] = CounterText
- local BackImage = Instance.new("ImageLabel")
- BackImage["ImageColor3"] =Color3.fromRGB(255, 255, 255)
- BackImage["ImageTransparency"] =0
- BackImage["AnchorPoint"] =Vector2.new(0, 0)
- BackImage["Image"] =""
- BackImage["BackgroundTransparency"] =1
- BackImage["Position"] =UDim2.new(0, 0, 0, 0)
- BackImage["Size"] =UDim2.new(1, 0, 1, 0)
- BackImage["Name"] ="BackImage"
- BackImage["BackgroundColor3"] =Color3.fromRGB(255, 255, 255)
- BackImage["Parent"] = Main
- local MainGradient = Instance.new("UIGradient")
- MainGradient["Color"] =ColorSequence.new{
- ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(161.0000056028366, 161.0000056028366, 161.0000056028366))
- }
- MainGradient["Name"] ="MainGradient"
- MainGradient["Rotation"] =90
- MainGradient["Parent"] = Main
- task.spawn(function()local UserInputService=game:GetService('UserInputService')local gui=Main;local dragging;local dragInput;local dragStart;local startPos;local function update(input)local delta=input.Position-dragStart;gui.Position=UDim2.new(startPos.X.Scale,startPos.X.Offset+delta.X,startPos.Y.Scale,startPos.Y.Offset+delta.Y)end;gui.InputBegan:Connect(function(input)if input.UserInputType==Enum.UserInputType.MouseButton1 or input.UserInputType==Enum.UserInputType.Touch then dragging=true;dragStart=input.Position;startPos=gui.Position;input.Changed:Connect(function()if input.UserInputState==Enum.UserInputState.End then dragging=false end end)end end)gui.InputChanged:Connect(function(input)if input.UserInputType==Enum.UserInputType.MouseMovement or input.UserInputType==Enum.UserInputType.Touch then dragInput=input end end)UserInputService.InputChanged:Connect(function(input)if input==dragInput and dragging then update(input)end end)end)
- local Drop=workspace.Ignored.Drop;local ToCurr=function(Num)return tostring(Num):reverse():gsub("%d%d%d","%1,"):reverse():gsub("^,","")end;local Convert=function(Str)local Am=string.match(Str,"%$%d+[,%.]?%d*")if(Am)then Am=(string.gsub(string.match(Am,"%d+[,%.]?%d*"),",",""))return tonumber(Am)else return 0 end end;local Get=function()local Total=0;for i,v in pairs(Drop:GetChildren())do if(v.Name=="MoneyDrop")and(v:FindFirstChild("BillboardGui"))then Total+=Convert(v.BillboardGui.TextLabel.Text)end end;CounterText.Text=("$"..ToCurr(Total))end;task.spawn(function()while true and task.wait(1/3)do Get()end end)
- --// Thanks for using ^-^ | discord.gg/iku - @trans
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement