Skip to content

Commit 1c3aff3

Browse files
So it turns one of the core features is only half done
Programmer Moment
1 parent 094d01d commit 1c3aff3

File tree

2 files changed

+61
-2
lines changed

2 files changed

+61
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
local service = {}
2+
3+
function service:CreateUIObject(type,target)
4+
if target then
5+
if type == "Instrument" then
6+
local par = Instance.new("ScreenGui")
7+
par.Parent = target
8+
par.Name = type
9+
local maintain = Instance.new("UIAspectRatioConstraint")
10+
maintain.AspectRatio = 1.779
11+
maintain.AspectType = Enum.AspectType.FitWithinMaxSize
12+
maintain.DominantAxis = Enum.DominantAxis.Width
13+
maintain.Parent = par
14+
local fram = Instance.new("Frame")
15+
fram.Size = UDim2.new(0.223, 0,0.832, 0)
16+
fram.BackgroundColor3 = Color3.fromRGB(46, 46, 46)
17+
fram.BackgroundTransparency = 0.3
18+
fram.Position = UDim2.new(0.772, 0,0.156, 0)
19+
fram.Parent = par
20+
local raintain = Instance.new("UIAspectRatioConstraint")
21+
raintain.AspectRatio = 0.478
22+
raintain.AspectType = Enum.AspectType.FitWithinMaxSize
23+
raintain.DominantAxis = Enum.DominantAxis.Width
24+
raintain.Parent = fram
25+
local edges = Instance.new("UICorner")
26+
edges.CornerRadius = UDim.new(0,35)
27+
local fram2 = Instance.new("Frame")
28+
fram2.Size = UDim2.new(0.223, 0,0.832, 0)
29+
fram2.BackgroundColor3 = Color3.fromRGB(52, 52, 52)
30+
fram2.BorderColor3 = Color3.fromRGB(30,30,30)
31+
fram2.BorderSizePixel = 1
32+
fram2.Position = UDim2.new(0.772, 0,0.156, 0)
33+
fram2.Parent = fram
34+
end
35+
else
36+
warn("Type Error Occured")
37+
return nil
38+
end
39+
end
40+
41+
return service

src/Workspace/Installer/init.server.lua

+20-2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ local ErrorMessage = [[
2929
Try redownloading the kit or inserting it. If the issue persists create a ticket on the github page or DM ShipmasterKyle#8071
3030
]]
3131

32+
--Installer Details for people who use the rblx file instead of the rbxm
33+
local brass = {
34+
"Tuba",
35+
"Trumpet",
36+
"Trombone"
37+
}
38+
39+
local line = {
40+
"Cymbals",
41+
"TenorDrum",
42+
"BassDrum",
43+
"Snare"
44+
}
45+
3246
local main = Instance.new("ScreenGui")
3347
local frame = Instance.new("Frame")
3448
local btn = Instance.new("TextButton")
@@ -101,12 +115,16 @@ nextbtn.MouseButton1Click:Connect(function()
101115
mainBox.Text = "Models Not Found, Attempting to build from scratch."
102116
wait(1)
103117
local instruments = game.ServerStorage:GetDescendants()
104-
if #instruments ~= 0 or not game.ServerStorage:FindFirstOfClass then --Check for the Instruments scripts.
118+
if #instruments ~= 0 or not game.ServerStorage:FindFirstOfClass("Tool") then --Check for the Instruments scripts.
105119
mainBox.Text = [[No recoverable scripts founds.]]..ErrorMessage
106120
else
107121
mainBox.Text = "Scripts Found! Attempting to rebuild. This may take a few minutes"
108122
for i,v in pairs(game.ServerStorage:GetDescendants()) do
109-
if
123+
if v.ClassName == "Tool" then
124+
if table.find(brass, v.Name) then
125+
print("Coming Soon")
126+
end
127+
end
110128
end
111129
end
112130
end

0 commit comments

Comments
 (0)