R

anim spoof

public
rrixh Apr 07, 2024 Never 111
Clone
Lua animSpoofer_lulaslollipop 328 lines (289 loc) | 11.06 KB
1
-- Gui to Lua
2
-- Version: 3.2
3
4
-- Instances:
5
6
local screenxD = Instance.new("ScreenGui")
7
local Frame = Instance.new("Frame")
8
local Container = Instance.new("Frame")
9
local UICorner = Instance.new("UICorner")
10
local Topbar = Instance.new("Frame")
11
local Icon = Instance.new("ImageLabel")
12
local Exit = Instance.new("TextButton")
13
local ImageLabel = Instance.new("ImageLabel")
14
local Minimize = Instance.new("TextButton")
15
local ImageLabel_2 = Instance.new("ImageLabel")
16
local TopBar = Instance.new("Frame")
17
local ImageLabel_3 = Instance.new("ImageLabel")
18
local ImageLabel_4 = Instance.new("ImageLabel")
19
local Title = Instance.new("TextLabel")
20
local UICorner_2 = Instance.new("UICorner")
21
local scroll = Instance.new("ScrollingFrame")
22
local uilist = Instance.new("UIListLayout")
23
24
--Properties:
25
26
screenxD.Name = "🗿"
27
screenxD.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
28
screenxD.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
29
screenxD.ResetOnSpawn = false
30
31
Frame.Parent = screenxD
32
Frame.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
33
Frame.BackgroundTransparency = 0.140
34
Frame.BorderColor3 = Color3.fromRGB(139, 139, 139)
35
Frame.BorderSizePixel = 0
36
Frame.Position = UDim2.new(0.448806673, 0, 0.354765713, 0)
37
Frame.Size = UDim2.new(0, 400, 0, 260)
38
39
local drag = Instance.new("Frame",screenxD)
40
drag.BackgroundColor3 = Color3.fromRGB(114,137,218)
41
drag.BorderSizePixel = 1
42
drag.BackgroundTransparency = 1
43
drag.Position = UDim2.new(0.107,0,0.216,0)
44
drag.Size = UDim2.new(0,256,0,20)
45
46
Container.Name = "Container"
47
Container.Parent = Frame
48
Container.AnchorPoint = Vector2.new(0.5, 1)
49
Container.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
50
Container.BackgroundTransparency = 0.100
51
Container.BorderColor3 = Color3.fromRGB(255, 255, 255)
52
Container.BorderSizePixel = 0
53
Container.ClipsDescendants = true
54
Container.Position = UDim2.new(0.5, 0, 0.996153831, -5)
55
Container.Size = UDim2.new(1, -10, 1, -30)
56
57
UICorner.CornerRadius = UDim.new(0, 9)
58
UICorner.Parent = Container
59
60
Topbar.Name = "Topbar"
61
Topbar.Parent = Frame
62
Topbar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
63
Topbar.BackgroundTransparency = 1.000
64
Topbar.Size = UDim2.new(1, 0, 0, 25)
65
66
Icon.Name = "Icon"
67
Icon.Parent = Topbar
68
Icon.AnchorPoint = Vector2.new(0, 0.5)
69
Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
70
Icon.BackgroundTransparency = 1.000
71
Icon.Position = UDim2.new(0, 10, 0.5, 0)
72
Icon.Size = UDim2.new(0, 13, 0, 13)
73
Icon.Image = "rbxgameasset://Images/menuIcon"
74
75
Exit.Name = "Exit"
76
Exit.Parent = Topbar
77
Exit.BackgroundColor3 = Color3.fromRGB(28, 28, 28)
78
Exit.BackgroundTransparency = 0.150
79
Exit.BorderSizePixel = 0
80
Exit.Position = UDim2.new(0.877499998, 0, 0.0430004895, 0)
81
Exit.Size = UDim2.new(-0.00949996989, 40, 1, -10)
82
Exit.Font = Enum.Font.Gotham
83
Exit.Text = "X"
84
Exit.TextColor3 = Color3.fromRGB(255, 255, 255)
85
Exit.TextSize = 13.000
86
87
ImageLabel.Parent = Exit
88
ImageLabel.BackgroundColor3 = Color3.fromRGB(36, 36, 36)
89
ImageLabel.BackgroundTransparency = 1.000
90
ImageLabel.Position = UDim2.new(0.999998331, 0, 0, 0)
91
ImageLabel.Size = UDim2.new(0, 9, 0, 16)
92
ImageLabel.Image = "http://www.roblox.com/asset/?id=8650484523"
93
ImageLabel.ImageColor3 = Color3.fromRGB(28, 28, 28)
94
ImageLabel.ImageTransparency = 0.150
95
96
Minimize.Name = "Minimize"
97
Minimize.Parent = Topbar
98
Minimize.BackgroundColor3 = Color3.fromRGB(28, 28, 28)
99
Minimize.BackgroundTransparency = 0.150
100
Minimize.BorderSizePixel = 0
101
Minimize.Position = UDim2.new(0.814999998, 0, 0.0429999977, 0)
102
Minimize.Size = UDim2.new(0, 25, 1, -10)
103
Minimize.Font = Enum.Font.Gotham
104
Minimize.Text = "-"
105
Minimize.TextColor3 = Color3.fromRGB(255, 255, 255)
106
Minimize.TextSize = 18.000
107
108
ImageLabel_2.Parent = Minimize
109
ImageLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
110
ImageLabel_2.BackgroundTransparency = 1.000
111
ImageLabel_2.Position = UDim2.new(-0.395148933, 0, 0, 0)
112
ImageLabel_2.Size = UDim2.new(0, 10, 0, 14)
113
ImageLabel_2.Image = "http://www.roblox.com/asset/?id=10555881849"
114
ImageLabel_2.ImageColor3 = Color3.fromRGB(28, 28, 28)
115
ImageLabel_2.ImageTransparency = 0.150
116
117
TopBar.Name = "TopBar"
118
TopBar.Parent = Topbar
119
TopBar.BackgroundColor3 = Color3.fromRGB(28, 28, 28)
120
TopBar.BackgroundTransparency = 0.150
121
TopBar.BorderSizePixel = 0
122
TopBar.Position = UDim2.new(0.258215338, 0, 0.0364770517, 0)
123
TopBar.Size = UDim2.new(0, 186, 0, 16)
124
125
ImageLabel_3.Parent = TopBar
126
ImageLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
127
ImageLabel_3.BackgroundTransparency = 1.000
128
ImageLabel_3.Position = UDim2.new(1, 0, -0.00346946716, 0)
129
ImageLabel_3.Size = UDim2.new(0, 14, 0, 16)
130
ImageLabel_3.Image = "http://www.roblox.com/asset/?id=8650484523"
131
ImageLabel_3.ImageColor3 = Color3.fromRGB(28, 28, 28)
132
ImageLabel_3.ImageTransparency = 0.150
133
134
ImageLabel_4.Parent = TopBar
135
ImageLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
136
ImageLabel_4.BackgroundTransparency = 1.000
137
ImageLabel_4.Position = UDim2.new(-0.0763963237, 0, 0, 0)
138
ImageLabel_4.Size = UDim2.new(0, 15, 0, 16)
139
ImageLabel_4.Image = "http://www.roblox.com/asset/?id=10555881849"
140
ImageLabel_4.ImageColor3 = Color3.fromRGB(28, 28, 28)
141
ImageLabel_4.ImageTransparency = 0.150
142
143
Title.Name = "Title"
144
Title.Parent = TopBar
145
Title.AnchorPoint = Vector2.new(0, 0.5)
146
Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
147
Title.BackgroundTransparency = 1.000
148
Title.BorderSizePixel = 0
149
Title.Position = UDim2.new(-0.150533721, 32, 0.415876389, 0)
150
Title.Size = UDim2.new(0.522161067, 80, 1.11675644, -7)
151
Title.Font = Enum.Font.SourceSansLight
152
Title.Text = "Animation Spoofer"
153
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
154
Title.TextSize = 17.000
155
Title.TextWrapped = true
156
157
UICorner_2.CornerRadius = UDim.new(0, 9)
158
UICorner_2.Parent = Frame
159
160
scroll.Parent = Frame
161
scroll.AnchorPoint = Vector2.new(0.5, 0.5)
162
scroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
163
scroll.BackgroundTransparency = 1.000
164
scroll.BorderColor3 = Color3.fromRGB(16, 16, 16)
165
scroll.BorderSizePixel = 0
166
scroll.Position = UDim2.new(0.50150007, 0, 0.536538482, 0)
167
scroll.Size = UDim2.new(1.00300002, -10, 0.926923096, -10)
168
scroll.BottomImage = "rbxgameasset://Images/scrollBottom (1)"
169
scroll.MidImage = "rbxgameasset://Images/scrollMid"
170
scroll.ScrollBarThickness = 4
171
scroll.TopImage = "rbxgameasset://Images/scrollTop"
172
173
uilist.Parent = scroll
174
uilist.SortOrder = Enum.SortOrder.LayoutOrder
175
uilist.Padding = UDim.new(0, 3)
176
-- Scripts:
177
178
local function RIDUFTH_fake_script() -- Frame.LocalScript
179
local script = Instance.new('LocalScript', Frame)
180
181
local UserInputService = game:GetService("UserInputService")
182
local runService = (game:GetService("RunService"));
183
184
local gui = script.Parent
185
186
local dragging
187
local dragInput
188
local dragStart
189
local startPos
190
191
function Lerp(a, b, m)
192
return a + (b - a) * m
193
end;
194
195
local lastMousePos
196
local lastGoalPos
197
local DRAG_SPEED = (8); -- // The speed of the UI darg.
198
function Update(dt)
199
if not (startPos) then return end;
200
if not (dragging) and (lastGoalPos) then
201
gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED))
202
return
203
end;
204
205
local delta = (lastMousePos - UserInputService:GetMouseLocation())
206
local xGoal = (startPos.X.Offset - delta.X);
207
local yGoal = (startPos.Y.Offset - delta.Y);
208
lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
209
gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, xGoal, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, yGoal, dt * DRAG_SPEED))
210
end;
211
212
gui.InputBegan:Connect(function(input)
213
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
214
dragging = true
215
dragStart = input.Position
216
startPos = gui.Position
217
lastMousePos = UserInputService:GetMouseLocation()
218
219
input.Changed:Connect(function()
220
if input.UserInputState == Enum.UserInputState.End then
221
dragging = false
222
end
223
end)
224
end
225
end)
226
227
gui.InputChanged:Connect(function(input)
228
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
229
dragInput = input
230
end
231
end)
232
233
runService.Heartbeat:Connect(Update)
234
end
235
coroutine.wrap(RIDUFTH_fake_script)()
236
local function VVFJUX_fake_script() -- Exit.LocalScript
237
local script = Instance.new('LocalScript', Exit)
238
239
script.Parent.MouseButton1Click:Connect(function()
240
script.Parent.Parent.Parent:Destroy()
241
end)
242
end
243
coroutine.wrap(VVFJUX_fake_script)()
244
245
246
247
local UIS = game:GetService("UserInputService")
248
local function dragify(Frame,boool)
249
local frametomove = Frame
250
local dragToggle,dragInput,dragStart,startPos
251
local dragSpeed = 0
252
local function updateInput(input)
253
local Delta = input.Position - dragStart
254
frametomove.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
255
end
256
Frame.InputBegan:Connect(function(input)
257
if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
258
dragToggle = true
259
dragStart = input.Position
260
startPos = frametomove.Position
261
input.Changed:Connect(function()
262
if input.UserInputState == Enum.UserInputState.End then
263
dragToggle = false
264
end
265
end)
266
end
267
end)
268
Frame.InputChanged:Connect(function(input)
269
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
270
dragInput = input
271
end
272
end)
273
UIS.InputChanged:Connect(function(input)
274
if input == dragInput and dragToggle then
275
updateInput(input)
276
end
277
end)
278
end
279
dragify(drag)
280
281
local function createbutton(id)
282
local str = string.match(tostring(id) , "%d+")
283
local button = Instance.new("TextButton",scroll)
284
button.BorderSizePixel = 0
285
button.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
286
button.Size = UDim2.new(1,0,0,50)
287
button.Text = ""
288
local name = Instance.new("TextLabel",button)
289
name.BackgroundTransparency = 1
290
name.Size = UDim2.new(1,0,0.5,0)
291
name.TextSize = 14
292
name.Font = Enum.Font.Gotham
293
name.TextColor3 = Color3.fromRGB(255,255,255)
294
name.TextXAlignment = Enum.TextXAlignment.Center
295
local id = name:Clone()
296
id.Parent = button
297
id.AnchorPoint = Vector2.new(0,1)
298
id.Position = UDim2.new(0,0,1,0)
299
id.Text = str
300
name.Text = game:GetService("MarketplaceService"):GetProductInfo(tonumber(str)).Name
301
button.Activated:Connect(function()
302
setclipboard(str)
303
end)
304
end
305
306
local animationtabl = {}
307
308
while true do
309
local localPlayer = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Humanoid")
310
if localPlayer then
311
local a = localPlayer:GetPlayingAnimationTracks()
312
for i, track in pairs(a) do
313
task.spawn(function()
314
local pass = true
315
for _,v in pairs(animationtabl) do
316
if v == track.Animation.AnimationId then
317
pass = false
318
end
319
end
320
if pass then
321
table.insert(animationtabl,track.Animation.AnimationId)
322
createbutton(track.Animation.AnimationId)
323
end
324
end)
325
end
326
end
327
task.wait()
328
end