SHOW:
|
|
- or go back to the newest paste.
1 | -- Gui to Lua | |
2 | -- Version: 3.2 | |
3 | ||
4 | -- Instances: | |
5 | ||
6 | local kupcake = Instance.new("ScreenGui") | |
7 | local main = Instance.new("Frame") | |
8 | local title = Instance.new("TextLabel") | |
9 | local name = Instance.new("TextLabel") | |
10 | local cars = Instance.new("TextButton") | |
11 | ||
12 | --Properties: | |
13 | ||
14 | kupcake.Name = "kupcake" | |
15 | kupcake.Parent = game.CoreGui | |
16 | ||
17 | main.Name = "main" | |
18 | main.Parent = kupcake | |
19 | main.BackgroundColor3 = Color3.fromRGB(30, 30, 30) | |
20 | main.Position = UDim2.new(0.218091697, 0, 0.422712952, 0) | |
21 | main.Size = UDim2.new(0, 189, 0, 130) | |
22 | main.Active = true | |
23 | main.Draggable = true | |
24 | ||
25 | title.Name = "title" | |
26 | title.Parent = main | |
27 | title.BackgroundColor3 = Color3.fromRGB(30, 30, 30) | |
28 | title.BorderSizePixel = 0 | |
29 | title.Size = UDim2.new(0, 189, 0, 34) | |
30 | title.Font = Enum.Font.GothamSemibold | |
31 | title.Text = "Kupcake Demo" | |
32 | title.TextColor3 = Color3.fromRGB(255, 0, 255) | |
33 | title.TextSize = 14.000 | |
34 | title.TextWrapped = true | |
35 | ||
36 | name.Name = "name" | |
37 | name.Parent = title | |
38 | name.BackgroundColor3 = Color3.fromRGB(30, 30, 30) | |
39 | name.BorderSizePixel = 0 | |
40 | name.Position = UDim2.new(0.0740740746, 0, 3.2352941, 0) | |
41 | name.Size = UDim2.new(0, 160, 0, 20) | |
42 | name.Font = Enum.Font.GothamSemibold | |
43 | name.Text = "Made by Toxic Mods#0001" | |
44 | name.TextColor3 = Color3.fromRGB(255, 0, 255) | |
45 | name.TextSize = 14.000 | |
46 | name.TextStrokeTransparency = 0.000 | |
47 | ||
48 | cars.Name = "cars" | |
49 | cars.Parent = main | |
50 | cars.BackgroundColor3 = Color3.fromRGB(30, 30, 30) | |
51 | cars.Position = UDim2.new(0.153439149, 0, 0.307692319, 0) | |
52 | cars.Size = UDim2.new(0, 130, 0, 50) | |
53 | cars.Font = Enum.Font.GothamBlack | |
54 | cars.Text = "Bring all cars" | |
55 | cars.TextColor3 = Color3.fromRGB(255, 0, 255) | |
56 | cars.TextSize = 14.000 | |
57 | cars.MouseButton1Down:connect(function() | |
58 | spawn(function() | |
59 | while true do | |
60 | game.Players.LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)*math.huge | |
61 | game.Players.LocalPlayer.SimulationRadius = math.pow(math.huge,math.huge)*math.huge | |
62 | game:GetService("RunService").Stepped:wait() | |
63 | end | |
64 | end) | |
65 | ||
66 | for index, part in pairs(workspace.Vehicles:GetDescendants()) do | |
67 | if part:IsA("Part") and part.Anchored == false and part:IsDescendantOf(game.Players.LocalPlayer.Character) == false then | |
68 | part.CFrame = CFrame.new(game.workspace[game.Players.LocalPlayer.Name].UpperTorso.Position) --gamer | |
69 | end | |
70 | end | |
71 | end) | |
72 | function Notify(titletxt, text, time) | |
73 | local GUI = Instance.new("ScreenGui") | |
74 | local Main = Instance.new("Frame", GUI) | |
75 | local title = Instance.new("TextLabel", Main) | |
76 | local message = Instance.new("TextLabel", Main) | |
77 | GUI.Name = "NotificationOof" | |
78 | GUI.Parent = game.CoreGui | |
79 | Main.Name = "MainFrame" | |
80 | Main.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863) | |
81 | Main.BorderSizePixel = 0 | |
82 | Main.Position = UDim2.new(1, 5, 0, 50) | |
83 | Main.Size = UDim2.new(0, 330, 0, 100) | |
84 | ||
85 | title.BackgroundColor3 = Color3.new(0, 0, 0) | |
86 | title.BackgroundTransparency = 0.89999997615814 | |
87 | title.Size = UDim2.new(1, 0, 0, 30) | |
88 | title.Font = Enum.Font.SourceSansSemibold | |
89 | title.Text = titletxt | |
90 | title.TextColor3 = Color3.new(255 , 0, 255)--color to liking | |
91 | title.TextSize = 25--size to liking | |
92 | ||
93 | message.BackgroundColor3 = Color3.new(0, 0, 0) | |
94 | message.BackgroundTransparency = 1 | |
95 | message.Position = UDim2.new(0, 0, 0, 30) | |
96 | message.Size = UDim2.new(1, 0, 1, -30) | |
97 | message.Font = Enum.Font.SourceSans | |
98 | message.Text = text | |
99 | message.TextColor3 = Color3.new(255 , 0, 255)--color to liking | |
100 | message.TextSize = 17.5--size to liking | |
101 | ||
102 | wait(0.1) | |
103 | Main:TweenPosition(UDim2.new(1, -330, 0, 50), "Out", "Sine", 0.5) | |
104 | wait(time) | |
105 | Main:TweenPosition(UDim2.new(1, 5, 0, 50), "Out", "Sine", 0.5) | |
106 | wait(10.0) | |
107 | GUI:Destroy(); | |
108 | end | |
109 | ||
110 | Notify("Kupcake Demo", "want to suggest a feature? https://discord.gg/x3D4NEj", 5) |