View difference between Paste ID: bT7iFgPa and 13UzLks9
SHOW: | | - or go back to the newest paste.
1
if game.CoreGui:FindFirstChild('PotionGUI') then
2
	game.CoreGui:FindFirstChild('PotionGUI'):Destroy()
3
end
4
5
local PotionGUI = Instance.new("ScreenGui")
6
local Container = Instance.new("Frame")
7
local Freeze = Instance.new("TextButton")
8
local UIListLayout = Instance.new("UIListLayout")
9
local Burn = Instance.new("TextButton")
10
local Confusion = Instance.new("TextButton")
11
local Float = Instance.new("TextButton")
12
local Speed = Instance.new("TextButton")
13
local Death = Instance.new("TextButton")
14
local Healing = Instance.new("TextButton")
15
local Poison = Instance.new("TextButton")
16
17
PotionGUI.Name = "PotionGUI"
18
PotionGUI.Parent = game.CoreGui
19
PotionGUI.Enabled = true
20
21
Container.Name = "Container"
22
Container.Parent = PotionGUI
23
Container.AnchorPoint = Vector2.new(0.5, 0.5)
24
Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
25
Container.BackgroundTransparency = 0.000
26
Container.BorderSizePixel = 0
27
Container.Position = UDim2.new(0.5, 0, 0.5, 0)
28
Container.Size = UDim2.new(0.200000003, 0, 0.5, 0)
29
30
Freeze.Name = "Freeze"
31
Freeze.Parent = Container
32
Freeze.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
33
Freeze.BackgroundTransparency = 1.000
34
Freeze.BorderSizePixel = 0
35
Freeze.LayoutOrder = 1
36
Freeze.Size = UDim2.new(1, 0, 0.115000002, 0)
37
Freeze.Font = Enum.Font.GothamBlack
38
Freeze.Text = "Freeze Potion"
39
Freeze.TextColor3 = Color3.fromRGB(130, 157, 255)
40
Freeze.TextSize = 15.000
41
Freeze.TextWrapped = true
42
43
UIListLayout.Parent = Container
44
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
45
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
46
UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
47
48
Burn.Name = "Burn"
49
Burn.Parent = Container
50
Burn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
51
Burn.BackgroundTransparency = 1.000
52
Burn.BorderSizePixel = 0
53
Burn.LayoutOrder = 2
54
Burn.Size = UDim2.new(1, 0, 0.115000002, 0)
55
Burn.Font = Enum.Font.GothamBlack
56
Burn.Text = "Burn Potion"
57
Burn.TextColor3 = Color3.fromRGB(130, 157, 255)
58
Burn.TextSize = 15.000
59
Burn.TextWrapped = true
60
61
Confusion.Name = "Confusion"
62
Confusion.Parent = Container
63
Confusion.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
64
Confusion.BackgroundTransparency = 1.000
65
Confusion.BorderSizePixel = 0
66
Confusion.LayoutOrder = 3
67
Confusion.Size = UDim2.new(1, 0, 0.115000002, 0)
68
Confusion.Font = Enum.Font.GothamBlack
69
Confusion.Text = "Confusion Potion"
70
Confusion.TextColor3 = Color3.fromRGB(130, 157, 255)
71
Confusion.TextSize = 15.000
72
Confusion.TextWrapped = true
73
74
Float.Name = "Float"
75
Float.Parent = Container
76
Float.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
77
Float.BackgroundTransparency = 1.000
78
Float.BorderSizePixel = 0
79
Float.LayoutOrder = 4
80
Float.Size = UDim2.new(1, 0, 0.115000002, 0)
81
Float.Font = Enum.Font.GothamBlack
82
Float.Text = "Float Potion"
83
Float.TextColor3 = Color3.fromRGB(130, 157, 255)
84
Float.TextSize = 15.000
85
Float.TextWrapped = true
86
87
Speed.Name = "Speed"
88
Speed.Parent = Container
89
Speed.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
90
Speed.BackgroundTransparency = 1.000
91
Speed.BorderSizePixel = 0
92
Speed.LayoutOrder = 5
93
Speed.Size = UDim2.new(1, 0, 0.115000002, 0)
94
Speed.Font = Enum.Font.GothamBlack
95
Speed.Text = "Speed Potion"
96
Speed.TextColor3 = Color3.fromRGB(130, 157, 255)
97
Speed.TextSize = 15.000
98
Speed.TextWrapped = true
99
100
Death.Name = "Death"
101
Death.Parent = Container
102
Death.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
103
Death.BackgroundTransparency = 1.000
104
Death.BorderSizePixel = 0
105
Death.LayoutOrder = 6
106
Death.Size = UDim2.new(1, 0, 0.115000002, 0)
107
Death.Font = Enum.Font.GothamBlack
108
Death.Text = "Death Potion"
109
Death.TextColor3 = Color3.fromRGB(130, 157, 255)
110
Death.TextSize = 15.000
111
Death.TextWrapped = true
112
113
Healing.Name = "Healing"
114
Healing.Parent = Container
115
Healing.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
116
Healing.BackgroundTransparency = 1.000
117
Healing.BorderSizePixel = 0
118
Healing.LayoutOrder = 7
119
Healing.Size = UDim2.new(1, 0, 0.115000002, 0)
120
Healing.Font = Enum.Font.GothamBlack
121
Healing.Text = "Healing Potion"
122
Healing.TextColor3 = Color3.fromRGB(130, 157, 255)
123
Healing.TextSize = 15.000
124
Healing.TextWrapped = true
125
126
Poison.Name = "Poison"
127
Poison.Parent = Container
128
Poison.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
129
Poison.BackgroundTransparency = 1.000
130
Poison.BorderSizePixel = 0
131
Poison.LayoutOrder = 8
132
Poison.Size = UDim2.new(1, 0, 0.115000002, 0)
133
Poison.Font = Enum.Font.GothamBlack
134
Poison.Text = "Poison Potion"
135
Poison.TextColor3 = Color3.fromRGB(130, 157, 255)
136
Poison.TextSize = 15.000
137
Poison.TextWrapped = true
138
139
local alchemy = game.ReplicatedStorage.Remotes.Alchemy
140
local Cauldron = workspace.Tower.Cauldron2.Cauldron2
141
142
local Liquids = {
143
	HeartDust = workspace.Tower.Shelf.HeartDust.Potion,
144
	BasiliskVenom = workspace.Tower.Shelf.BasiliskVenom.Potion,
145
	TreeSap = workspace.Tower.Shelf.TreeSap.Potion,
146
	HolyWater = workspace.Tower.Shelf.HolyWater.Potion,
147
	BlackTar = workspace.Tower.Shelf.BlackTar.Potion,
148
	DragonSpit = workspace.Tower.Shelf.DragonSpit.Potion,
149
	Flask = workspace.Tower.Shelf.Flask.Flask
150
}
151
152
local Solids = {
153
	BagOfDirt = workspace.Tower.Shelf.BagOfDirt.Part,
154
	GolemRock = workspace.Tower.Shelf.GolemRock.Part,
155
	Herbs = workspace.Tower.Shelf.Herbs.Part
156
}
157
158
local bpAlchemy = game.Players.LocalPlayer.Backpack.Alchemy
159
160
local makeFreeze = function()
161
    alchemy:FireServer(Liquids.HolyWater, "HolyWater", "Liquid", bpAlchemy)
162
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
163
	alchemy:FireServer(Solids.GolemRock, "GolemRock", "Solid", bpAlchemy)
164
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
165
	alchemy:FireServer(Liquids.Flask, "Flask", "Liquid", bpAlchemy)
166
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
167
end
168
169
local makeBurn = function()
170
    alchemy:FireServer(Liquids.BlackTar, "BlackTar", "Liquid", bpAlchemy)
171
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
172
	alchemy:FireServer(Solids.GolemRock, "GolemRock", "Solid", bpAlchemy)
173
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
174
	alchemy:FireServer(Liquids.Flask, "Flask", "Liquid", bpAlchemy)
175
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
176
end
177
178
local makeConfusion = function()
179
    alchemy:FireServer(Liquids.TreeSap, "TreeSap", "Liquid", bpAlchemy)
180
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
181
	alchemy:FireServer(Solids.BagOfDirt, "BagOfDirt", "Solid", bpAlchemy)
182
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
183
	alchemy:FireServer(Liquids.Flask, "Flask", "Liquid", bpAlchemy)
184
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
185
end
186
187
local makeFloat = function()
188
    alchemy:FireServer(Liquids.DragonSpit, "DragonSpit", "Liquid", bpAlchemy)
189
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
190
	alchemy:FireServer(Solids.Herbs, "Herbs", "Solid", bpAlchemy)
191
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
192
	alchemy:FireServer(Liquids.Flask, "Flask", "Liquid", bpAlchemy)
193
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
194
end
195
196
local makeSpeed = function()
197
	alchemy:FireServer(Liquids.DragonSpit, "DragonSpit", "Liquid", bpAlchemy)
198
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
199
	alchemy:FireServer(Solids.GolemRock, "GolemRock", "Solid", bpAlchemy)
200
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
201
	alchemy:FireServer(Liquids.Flask, "Flask", "Liquid", bpAlchemy)
202
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
203
end
204
205
local makeDeath = function()
206
	alchemy:FireServer(Liquids.BlackTar, "BlackTar", "Liquid", bpAlchemy)
207
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
208
	alchemy:FireServer(Solids.BagOfDirt, "BagOfDirt", "Solid", bpAlchemy)
209
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
210
	alchemy:FireServer(Liquids.Flask, "Flask", "Liquid", bpAlchemy)
211
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
212
end
213
214
local makeHealing = function()
215
	alchemy:FireServer(Liquids.HolyWater, "HolyWater", "Liquid", bpAlchemy)
216
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
217
	alchemy:FireServer(Solids.Herbs, "Herbs", "Solid", bpAlchemy)
218
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
219
	alchemy:FireServer(Liquids.Flask, "Flask", "Liquid", bpAlchemy)
220
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
221
end
222
223
local makePoison = function()
224
	alchemy:FireServer(Liquids.BasiliskVenom, "BasiliskVenom", "Liquid", bpAlchemy)
225
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
226
	alchemy:FireServer(Solids.Herbs, "Herbs", "Solid", bpAlchemy)
227
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
228
	alchemy:FireServer(Liquids.Flask, "Flask", "Liquid", bpAlchemy)
229
	alchemy:FireServer(Cauldron, "Cauldron2", "Cauldron", bpAlchemy)
230
end
231
232
local ContextActionService = game:GetService('ContextActionService')
233
local Debounce = false
234
local ToggleGUI = function(actionName, inputState, inputObj)
235
    if inputState == Enum.UserInputState.Begin then
236
        if not Debounce then
237
            Debounce = true
238
            Container.Visible = true
239
        else
240
            Debounce = false
241
            Container.Visible = false
242
        end
243
    end
244
end
245
246
ContextActionService:BindAction("ToggleGui", ToggleGUI, false, Enum.KeyCode.P)
247
Container.Visible = false
248
249
Freeze.MouseButton1Click:Connect(makeFreeze)
250
Burn.MouseButton1Click:Connect(makeBurn)
251
Confusion.MouseButton1Click:Connect(makeConfusion)
252
Float.MouseButton1Click:Connect(makeFloat)
253
Speed.MouseButton1Click:Connect(makeSpeed)
254
Death.MouseButton1Click:Connect(makeDeath)
255
Healing.MouseButton1Click:Connect(makeHealing)
256
Poison.MouseButton1Click:Connect(makePoison)