forked from dieggoggg/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFE Simulator Pets.lua
277 lines (227 loc) · 7.84 KB
/
FE Simulator Pets.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
-- made by rouxhaver/1+1=2
-- use any hats
-- make sure to run a netless/netbypass before running this script
local randomstr = tostring(math.random(100000000,999999999))
local randomize = Instance.new("ScreenGui")
local randomize_2 = Instance.new("Frame")
local randomize_3 = Instance.new("TextLabel")
local randomize_4 = Instance.new("TextLabel")
local randomize_5 = Instance.new("TextLabel")
local randomize_6 = Instance.new("TextButton")
randomize.Name = randomstr
randomize.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
randomize.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
randomize_2.Name = randomstr
randomize_2.Parent = randomize
randomize_2.BackgroundColor3 = Color3.fromRGB(83, 83, 83)
randomize_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
randomize_2.BorderSizePixel = 10
randomize_2.Position = UDim2.new(0.41513592, 0, 0.377777755, 0)
randomize_2.Size = UDim2.new(0, 230, 0, 197)
randomize_3.Name = randomstr
randomize_3.Parent = randomize_2
randomize_3.Active = false
randomize_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
randomize_3.BackgroundTransparency = 1.000
randomize_3.Position = UDim2.new(0.0652173907, 0, 0.0913705602, 0)
randomize_3.Size = UDim2.new(0, 208, 0, 88)
randomize_3.Font = Enum.Font.SourceSans
randomize_3.Text = "Made by:"
randomize_3.TextColor3 = Color3.fromRGB(0, 0, 0)
randomize_3.TextSize = 33.000
randomize_3.TextWrapped = true
randomize_4.Name = randomstr
randomize_4.Parent = randomize_2
randomize_4.Active = false
randomize_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
randomize_4.BackgroundTransparency = 1.000
randomize_4.Position = UDim2.new(0.0652173907, 0, 0.370558381, 0)
randomize_4.Size = UDim2.new(0, 206, 0, 48)
randomize_4.Font = Enum.Font.SourceSans
randomize_4.Text = "(1+1=2 on roblox)"
randomize_4.TextColor3 = Color3.fromRGB(0, 0, 0)
randomize_4.TextSize = 33.000
randomize_4.TextWrapped = true
randomize_5.Name = randomstr
randomize_5.Parent = randomize_2
randomize_5.Active = false
randomize_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
randomize_5.BackgroundTransparency = 1.000
randomize_5.Position = UDim2.new(0.0652173907, 0, 0.558375657, 0)
randomize_5.Size = UDim2.new(0, 205, 0, 46)
randomize_5.Font = Enum.Font.SourceSans
randomize_5.Text = "(rouxhaver on github)"
randomize_5.TextColor3 = Color3.fromRGB(0, 0, 0)
randomize_5.TextScaled = true
randomize_5.TextSize = 33.000
randomize_5.TextWrapped = true
randomize_6.Name = randomstr.."2"
randomize_6.Parent = randomize_2
randomize_6.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
randomize_6.BorderColor3 = Color3.fromRGB(170, 0, 0)
randomize_6.BorderSizePixel = 3
randomize_6.Position = UDim2.new(0.845000029, 0, 0.0149999997, 0)
randomize_6.Size = UDim2.new(0, 33, 0, 33)
randomize_6.Font = Enum.Font.SourceSans
randomize_6.Text = "X"
randomize_6.TextColor3 = Color3.fromRGB(255, 255, 255)
randomize_6.TextScaled = true
randomize_6.TextSize = 14.000
randomize_6.TextWrapped = true
local frame = Game.Players.LocalPlayer.PlayerGui[randomstr]
local close = frame[randomstr][randomstr.."2"]
close.MouseButton1Click:connect(function()
frame.Enabled = false
end)
local ScreenGui = Instance.new("ScreenGui")
local Start = Instance.new("TextButton")
Start.Name = "Start"
Start.Parent = ScreenGui
Start.BackgroundColor3 = Color3.fromRGB(0, 220, 92)
Start.BorderColor3 = Color3.fromRGB(53, 53, 53)
Start.BorderSizePixel = 10
Start.Position = UDim2.new(0.418730646, 0, 0.760493815, 0)
Start.Size = UDim2.new(0.162538692, 0, 0.114814818, 0)
Start.Font = Enum.Font.SourceSans
Start.Text = "Start"
Start.TextColor3 = Color3.fromRGB(0, 0, 0)
Start.TextScaled = true
Start.TextSize = 14.000
Start.TextWrapped = true
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
player = game.Players.LocalPlayer
selectedhats = {}
ICantDoMathsCount = 0
ytime = 1
weirdcounter = 1
for i,v in pairs(player.Character:GetDescendants()) do
if v:IsA("Accessory") then
local opt = Instance.new("Frame")
local view = Instance.new("ViewportFrame")
local Select = Instance.new("TextButton")
local cam = Instance.new("Camera")
weirdcounter = weirdcounter + 1
if weirdcounter == 7 then
ytime = 2
ICantDoMathsCount = 0
end
opt.Name = "opt"
opt.Parent = ScreenGui
opt.BackgroundColor3 = Color3.fromRGB(169, 196, 255)
opt.BorderColor3 = Color3.fromRGB(53, 53, 53)
opt.BorderSizePixel = 11
opt.Position = UDim2.new(0.08 + ICantDoMathsCount, 0, 0.249382704 * ytime, 0)
opt.Size = UDim2.new(0.112229101, 0, 0.213580251, 0)
ICantDoMathsCount = ICantDoMathsCount + 0.15
view.Name = "view"
view.Parent = opt
view.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
view.BackgroundTransparency = 1
view.BorderSizePixel = 0
view.Size = UDim2.new(1.00000024, 0, 0.729156077, 0)
Select.Name = "Select"
Select.Parent = opt
Select.BackgroundColor3 = Color3.fromRGB(0, 220, 92)
Select.BorderColor3 = Color3.fromRGB(75, 75, 75)
Select.BorderSizePixel = 5
Select.Position = UDim2.new(0.068965517, 0, 0.774566472, 0)
Select.Size = UDim2.new(0.865517259, 0, 0.186705261, 0)
Select.Font = Enum.Font.SourceSans
Select.Text = "Select"
Select.TextColor3 = Color3.fromRGB(0, 0, 0)
Select.TextScaled = true
Select.TextSize = 14.000
Select.TextWrapped = true
cam.Parent = opt
cam.CFrame = CFrame.new(0,0,2.5)
view.CurrentCamera = cam
model = Instance.new("Model",view)
local hat = v.Handle:Clone()
hat.Parent = model
hat.Anchored = true
hat.Position = Vector3.new(0,0,0)
coroutine.wrap(function()
while hat ~= nil do
wait()
hat.Orientation = hat.Orientation + Vector3.new(0,1.5,0)
end
end)()
Select.Activated:Connect(function()
Select.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
Select.Text = "Selected"
Select.Active = false
table.insert(selectedhats,v.Name)
end)
end
end
Start.MouseButton1Up:Connect(function()
ScreenGui:Destroy()
folder = Instance.new("Folder",workspace)
for i,v in pairs(selectedhats) do
local vispet = player.Character[v].Handle
local pet = Instance.new("Part",folder)
pet.Name = "pet"
pet.Size = Vector3.new(1,1,1)
pet.Transparency = 1
pet.Position = player.Character.HumanoidRootPart.Position
pet.Anchored = true
pet.CanCollide = false
vispet.AccessoryWeld:Destroy()
local replicate = Instance.new("RopeConstraint",player.Character.Torso)
replicate.Attachment0 = Instance.new("Attachment",player.Character.Torso)
replicate.Attachment1 = Instance.new("Attachment",vispet)
replicate.Length = math.huge
local function customtwn(input, offset)
local input = input or error("input is nil");
local offset = offset or CFrame.new(0,0,0);
local vec3, cframe;
if typeof(input) == "table" then
vec3 = Vector3.new(unpack(input)); cframe = CFrame.new(unpack(input));
elseif typeof(input) ~= "Instance" then
return error("wrong format used");
end;
local Time = 0.5
local twn = game.TweenService:Create(pet, TweenInfo.new(Time,Enum.EasingStyle.Quad), {CFrame = (cframe or input.CFrame) * offset});
twn:Play();
end;
local change = 0.01
local high = 0
local clock = 0
local offX = math.random(-3,3)
local offY = math.random(-2,3)
local offZ = math.random(-3,3)
local clkrst = math.random(100,300)
coroutine.wrap(function()
while task.wait() do
vispet.CFrame = pet.CFrame
end
end)()
coroutine.wrap(function()
while wait(0.01) do
clock = clock + 1
if clock == clkrst then
offX = math.random(-3,3)
offY = math.random(-2,3)
offZ = math.random(-3,3)
clock = 0
clkrst = math.random(100,300)
end
high = high + change
if high > 0.5 then
change = -0.02
end
if high < -0.5 then
change = 0.02
end
customtwn(player.Character.HumanoidRootPart, CFrame.new(offX,offY + high,offZ))
end
end)()
end
while wait(0.1) do
if player.Character.Humanoid.Health == 0 then
folder:Destroy()
script:Destroy()
end
end
end)