i mean :Clone(), heres my script
local prevactive = false
local timesclicked = 0
script.Parent.MaxActivationDistance = 10
script.Parent.MouseClick:Connect(function(PlayerMain)
if not PlayerMain.Character:FindFirstChildOfClass("Humanoid"):HasTag("Hidden") and not PlayerMain.Character:FindFirstChildOfClass("Humanoid"):HasTag("Died") and prevactive == false then
prevactive = true
timesclicked += 1
if timesclicked == 2 then
print("Error.")
end
script.Parent.MaxActivationDistance = 0
local Rooms = workspace.Rooms:GetChildren()
local RustedRooms = workspace.RustedRooms:GetChildren()
Room = RustedRooms[math.random(1, #RustedRooms)]:Clone()
game.Lighting.Offset.Brightness -= 0.001
if workspace.RoomValue.Value <= 98 or math.random(1, 35) == 1 then
Room = Rooms[math.random(1, #Rooms)]:Clone()
game.Lighting.Offset.Brightness -= 0.001
end
if workspace.RoomValue.Value == 24 then
Room = workspace["20throom"]:Clone()
end
if workspace.RoomValue.Value == 39 then
Room = workspace["Room40"]:Clone()
end
workspace.RoomValue.Value += 1
Room.PrimaryPart = Room:WaitForChild("Entrance")
Room:SetPrimaryPartCFrame(workspace.Room.Value.Exit.CFrame)
Room.Exit.Transparency = 1
Room.Exit.CanCollide = false
Room.Entrance.Transparency = 1
Room.Entrance.CanCollide = false
Room.Parent = workspace.CreatedRooms
if Room:FindFirstChild("Label") then
local Label = Room:FindFirstChild("Label")
if Label:FindFirstChildOfClass("SurfaceGui") and Label:FindFirstChildOfClass("SurfaceGui"):FindFirstChildOfClass("TextLabel") then
Label:FindFirstChildOfClass("SurfaceGui"):FindFirstChildOfClass("TextLabel").Text = "A/" .. workspace.RoomValue.Value + 1
end
end
if workspace.RoomValue.Value == 1 then
workspace.Music.Playing = true
end
if workspace.RoomValue.Value == 75 then
workspace.PowerOut1:Play()
wait(0.1)
workspace.PowerOut2:Play()
workspace.PowerOut3:Play()
game.Lighting.Offset.Brightness -= 0.1
end
if workspace.RoomValue.Value == 25 then
for i = 1, 10 do
workspace.Music.Volume = 1 - (1 / 10)
end
workspace.Music.Playing = false
end
if workspace.RoomValue.Value == 300 then
workspace.Complete.Playing = true
end
workspace.Room.Value = Room
local MeClone = script.Parent.Parent.Parent:Clone()
MeClone:PivotTo(workspace.Room.Value.Exit.CFrame)
MeClone.Parent = workspace
MeClone.Door.ClickDetector.MaxActivationDistance = 10
wait(0.1)
for i, decal in ipairs(MeClone.Door:GetChildren()) do
if decal.ClassName == "Decal" then
decal:Destroy()
end
end
script.Parent.MaxActivationDistance = 0
workspace.Start.SpawnLocation.Position = Room.WorldPivot.Position + Vector3.new(0, -2.5, 0)
if workspace.RoomValue.Value == 1 then
Tween = game:GetService("TweenService"):Create(script.Parent.Parent, TweenInfo.new(3, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, false, 0), {["Position"] = script.Parent.Parent.Position + Vector3.new((script.Parent.Parent.Size.X / 2) - 0.5, 0, (script.Parent.Parent.Size.Z / 2) + 1), ["Orientation"] = script.Parent.Parent.Orientation + Vector3.new(0, 90, 0)})
else
Tween = game:GetService("TweenService"):Create(script.Parent.Parent, TweenInfo.new(0.5, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, false, 0), {["Position"] = script.Parent.Parent.Position + Vector3.new((script.Parent.Parent.Size.X / 2) - 0.5, 0, (script.Parent.Parent.Size.Z / 2) + 1), ["Orientation"] = script.Parent.Parent.Orientation + Vector3.new(0, 90, 0)})
end
script.Parent.Parent.DoorStart:Play()
if workspace.RoomValue.Value == 1 then
script.Parent.Parent.DoorCreak.PlaybackSpeed = 0.5
else
script.Parent.Parent.DoorCreak.PlaybackSpeed = (math.random(-10000, 10000) / 100000) + 0.5
end
script.Parent.Parent.DoorMid:Play()
Tween:Play()
script.Parent.Parent.DoorCreak:Play()
wait(Tween.TweenInfo.Time)
script.Parent.Parent.DoorBang.PlaybackSpeed = (math.random(-500, 500) / 1000) + 0.5
script.Parent.Parent.DoorBang:Play()
local function A60Entity()
local A60 = game.ReplicatedStorage.Script:Clone()
A60.Parent = workspace
A60["A-60"].Position = script.Parent.Parent.Position - Vector3.new(0, 0, 1000)
A60["A-60"].Static.Playing = true
A60["A-60"].Rumble.Playing = true
local Tween60 = game:GetService("TweenService"):Create(A60["A-60"], TweenInfo.new(25, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {["Position"] = script.Parent.Parent.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
local Waypoints = workspace.Room.Value:FindFirstChild("Waypoints"):GetChildren()
local SelectPoint = Waypoints[1]
for i, way in pairs(Waypoints) do
if SelectPoint:IsA("Part") then
Tween60 = game:GetService("TweenService"):Create(A60["A-60"], TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {["Position"] = SelectPoint.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
local SelectPoint = Waypoints[i + 1]
end
end
Tween60 = game:GetService("TweenService"):Create(A60["A-60"], TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {["Position"] = MeClone.Door.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
for i, face in pairs(A60["A-60"].Art:GetChildren()) do
if face:IsA("ImageLabel") and face.Visible == true then
local Decal = Instance.new("Decal")
Decal.Face = "Front"
Decal.Texture = face.Image
Decal.Parent = MeClone.Door
Decal.Transparency = 0.75
Decal.Color3 = Color3.fromRGB(0, 0, 0)
end
end
A60:Destroy()
workspace["A-60Imprint"]:Play()
end
local function A200Entity()
for i, obj in pairs(Room:GetChildren()) do
if (obj.Name == "Locker" and obj.ClassName == "Model") or (obj.Name == "SafeLocker" and obj.ClassName == "Model") or (obj.Name == "Fridge" and obj.ClassName == "Model") then
obj:Destroy()
end
if (obj.Name == "Shelf" and obj.ClassName == "Model") then
obj:Destroy()
end
end
script.Parent.Parent.A200Cue:Play()
game.Lighting.Filmic.Enabled = true
wait(30)
local A200 = game.ReplicatedStorage.A200:Clone()
A200.Parent = workspace
A200["A-200"].Position = workspace.Start.Exit.Position
A200["A-200"].Static.Playing = true
A200["A-200"].Grumble.Playing = true
local Tween60 = game:GetService("TweenService"):Create(A200["A-200"], TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {["Position"] = script.Parent.Parent.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
Tween60 = game:GetService("TweenService"):Create(A200["A-200"], TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = MeClone.Door.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
workspace["A-200Imprint"]:Play()
wait(2.5)
for i, face in pairs(A200["A-200"].Art:GetChildren()) do
if face:IsA("ImageLabel") and face.Visible == true then
local Decal = Instance.new("Decal")
Decal.Face = "Front"
Decal.Texture = face.Image
Decal.Parent = MeClone.Door
Decal.Transparency = 0.75
Decal.Color3 = Color3.fromRGB(0, 0, 0)
end
end
Tween60 = game:GetService("TweenService"):Create(A200["A-200"], TweenInfo.new(10, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = workspace.Start.Exit.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
A200:Destroy()
game.Lighting.Filmic.Enabled = false
end
local function M60Entity()
game.Lighting.Filmic.Enabled = true
local A60 = game.ReplicatedStorage.M60:Clone()
workspace["M-60Spawn"]:Play()
A60.Parent = workspace
A60["A-60"].Position = script.Parent.Parent.Position - Vector3.new(0, 0, 1000)
A60["A-60"].Static.Playing = true
A60["A-60"].Rumble.Playing = true
local Tween60 = game:GetService("TweenService"):Create(A60["A-60"], TweenInfo.new(15, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {["Position"] = script.Parent.Parent.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
local Waypoints = workspace.Room.Value:FindFirstChild("Waypoints"):GetChildren()
local SelectPoint = Waypoints[1]
for i, way in pairs(Waypoints) do
if SelectPoint:IsA("Part") then
Tween60 = game:GetService("TweenService"):Create(A60["A-60"], TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {["Position"] = SelectPoint.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
local SelectPoint = Waypoints[i + 1]
end
end
Tween60 = game:GetService("TweenService"):Create(A60["A-60"], TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {["Position"] = MeClone.Door.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
for i, face in pairs(A60["A-60"].Art:GetChildren()) do
if face:IsA("ImageLabel") and face.Visible == true then
local Decal = Instance.new("Decal")
Decal.Face = "Front"
Decal.Texture = face.Image
Decal.Parent = MeClone.Door
Decal.Transparency = 0.75
Decal.Color3 = Color3.fromRGB(255, 255, 255)
end
end
A60:Destroy()
workspace["A-60Imprint"]:Play()
game.Lighting.Filmic.Enabled = false
end
local function M200Entity()
script.Parent.Parent.A200Cue:Play()
game.Lighting.Filmic.Enabled = true
wait(10)
local A200 = game.ReplicatedStorage.M200:Clone()
A200.Parent = workspace
A200["A-200"].Position = workspace.Start.Exit.Position
A200["A-200"].Static.Playing = true
A200["A-200"].Grumble.Playing = true
local Tween60 = game:GetService("TweenService"):Create(A200["A-200"], TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {["Position"] = script.Parent.Parent.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
Tween60 = game:GetService("TweenService"):Create(A200["A-200"], TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = MeClone.Door.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
workspace["A-200Imprint"]:Play()
wait(7)
for i, face in pairs(A200["A-200"].Art:GetChildren()) do
if face:IsA("ImageLabel") and face.Visible == true then
local Decal = Instance.new("Decal")
Decal.Face = "Front"
Decal.Texture = face.Image
Decal.Parent = MeClone.Door
Decal.Transparency = 0.75
Decal.Color3 = Color3.fromRGB(0, 0, 0)
end
end
Tween60 = game:GetService("TweenService"):Create(A200["A-200"], TweenInfo.new(10, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = workspace.Start.Exit.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
Tween60 = game:GetService("TweenService"):Create(A200["A-200"], TweenInfo.new(10, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = workspace.Start.Exit.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
A200:Destroy()
game.Lighting.Filmic.Enabled = false
end
local function A160Entity()
workspace["A-160"]:Play()
wait(10)
local A200 = game.ReplicatedStorage.A160:Clone()
A200.Parent = workspace
A200["A-160"].Position = workspace.Start.Exit.Position
A200["A-160"].Rumble.Playing = true
A200["A-160"].Static.Playing = true
local Tween60 = game:GetService("TweenService"):Create(A200["A-160"], TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {["Position"] = script.Parent.Parent.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
Tween60 = game:GetService("TweenService"):Create(A200["A-160"], TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = MeClone.Door.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
Tween60 = game:GetService("TweenService"):Create(A200["A-160"], TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = workspace.Start.Exit.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
Tween60 = game:GetService("TweenService"):Create(A200["A-160"], TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = MeClone.Door.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
Tween60 = game:GetService("TweenService"):Create(A200["A-160"], TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = workspace.Start.Exit.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
Tween60 = game:GetService("TweenService"):Create(A200["A-160"], TweenInfo.new(10, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = MeClone.Door.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
wait(7)
for i, face in pairs(A200["A-160"].Art:GetChildren()) do
if face:IsA("ImageLabel") and face.Visible == true then
local Decal = Instance.new("Decal")
Decal.Face = "Front"
Decal.Texture = face.Image
Decal.Parent = MeClone.Door
Decal.Transparency = 0
Decal.Color3 = Color3.fromRGB(255, 0, 0)
A200:Destroy()
workspace["A-60Kill"]:Play()
for i = 1, 70 do
wait(0.1)
Decal.Transparency = math.random(0, 100) / 100
end
Decal.Transparency = 0.75
end
end
game.Lighting.Filmic.Enabled = false
end
local function A190Entity()
local A200 = game.ReplicatedStorage.A190:Clone()
A200.Parent = workspace
script.Parent.Parent.A190Cue:Play()
A200["A-160"].Position = workspace.Start.Entrance.Position + Vector3.new(0, 0, 1000)
A200["A-160"].Rumble.Playing = true
A200["A-160"].Static.Playing = true
wait(15)
local Tween60 = game:GetService("TweenService"):Create(A200["A-160"], TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {["Position"] = script.Parent.Parent.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
Tween60 = game:GetService("TweenService"):Create(A200["A-160"], TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = MeClone.Door.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
Tween60 = game:GetService("TweenService"):Create(A200["A-160"], TweenInfo.new(15, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = workspace.Start.Entrance.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
game.Lighting.Ritual.Enabled = true
workspace["A-60Near"]:Play()
for i, face in pairs(A200["A-160"].Art:GetChildren()) do
if face:IsA("ImageLabel") and face.Visible == true then
local Decal = Instance.new("Decal")
Decal.Face = "Front"
Decal.Texture = face.Image
Decal.Parent = MeClone.Door
Decal.Transparency = 0
Decal.Color3 = Color3.fromRGB(255, 0, 0)
A200:Destroy()
for i = 1, 47 do
wait(0.1)
Decal.Transparency = math.random(0, 100) / 100
end
game.Lighting.Ritual.Enabled = false
Decal:Destroy()
end
end
if A200 then
A200:Destroy()
end
game.Lighting.Filmic.Enabled = false
end
local function A300Entity()
local A200 = game.ReplicatedStorage.A300:Clone()
A200.Parent = workspace
A200["A-160"].Position = workspace.Start.Entrance.Position + Vector3.new(0, 0, 1000)
A200["A-160"].Rumble.Playing = true
A200["A-160"].Static.Playing = true
local Tween60 = game:GetService("TweenService"):Create(A200["A-160"], TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {["Position"] = script.Parent.Parent.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
Tween60 = game:GetService("TweenService"):Create(A200["A-160"], TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {["Position"] = MeClone.Door.Position})
Tween60:Play()
wait(Tween60.TweenInfo.Time)
game.Lighting.Ritual.Enabled = true
workspace["A-60Near"]:Play()
for i, face in pairs(A200["A-160"].Art:GetChildren()) do
if face:IsA("ImageLabel") and face.Visible == true then
local Decal = Instance.new("Decal")
Decal.Face = "Front"
Decal.Texture = face.Image
Decal.Parent = MeClone.Door
Decal.Transparency = 0
Decal.Color3 = Color3.fromRGB(255, 0, 0)
A200:Destroy()
for i = 1, 47 do
wait(0.1)
Decal.Transparency = math.random(0, 100) / 100
end
game.Lighting.Ritual.Enabled = false
Decal:Destroy()
end
end
if A200 then
A200:Destroy()
end
game.Lighting.Filmic.Enabled = false
end
if workspace.RoomValue.Value == 100 then
for i, plr in pairs(game.Players:GetPlayers()) do
local char = plr.Character
if char and not char:FindFirstChildOfClass("Humanoid"):HasTag("Died") then
game:GetService("BadgeService"):AwardBadge(plr.UserId, 2862816869297626)
end
end
end
if workspace.RoomValue.Value == 200 then
for i, plr in pairs(game.Players:GetPlayers()) do
local char = plr.Character
if char and not char:FindFirstChildOfClass("Humanoid"):HasTag("Died") then
game:GetService("BadgeService"):AwardBadge(plr.UserId, 3143888930944135)
end
end
end
game.ReplicatedStorage.DoorTrigger:FireAllClients(workspace.RoomValue.Value)
if workspace.RoomValue.Value == 300 then
for i, plr in pairs(game.Players:GetPlayers()) do
local char = plr.Character
if char and not char:FindFirstChildOfClass("Humanoid"):HasTag("Died") then
game:GetService("BadgeService"):AwardBadge(plr.UserId, 2956407365981642)
wait(19)
plr.Character:BreakJoints()
A300Entity()
plr.PlayerGui.ScreenGui.WinFrame.Visible = true
end
end
end
if (math.random(1, 30) == 1 and workspace.RoomValue.Value > 25) or workspace.RoomValue.Value == 25 then
A60Entity()
end
if (math.random(1, 30) == 1 and workspace.RoomValue.Value > 50) or workspace.RoomValue.Value == 50 then
A200Entity()
end
if (math.random(1, 40) == 1 and workspace.RoomValue.Value > 75) or workspace.RoomValue.Value == 75 then
M60Entity()
end
if (math.random(1, 40) == 1 and workspace.RoomValue.Value > 100) or workspace.RoomValue.Value == 100 then
M200Entity()
end
if (math.random(1, 40) == 1 and workspace.RoomValue.Value > 150) or workspace.RoomValue.Value == 150 then
A160Entity()
end
if (math.random(1, 60) == 1 and workspace.RoomValue.Value > 200) or workspace.RoomValue.Value == 240 then
A190Entity()
end
if (math.random(1, 60) == 1 and workspace.RoomValue.Value > 300) then
A300Entity()
end
local Val = workspace.RoomValue.Value
while Val >= workspace.RoomValue.Value - 2 do
wait(1)
end
local TweenAlt = game:GetService("TweenService"):Create(script.Parent.Parent, TweenInfo.new(0.5, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, false, 0), {["Position"] = script.Parent.Parent.Position - Vector3.new((script.Parent.Parent.Size.X / 2) - 0.5, 0, (script.Parent.Parent.Size.Z / 2) + 1), ["Orientation"] = script.Parent.Parent.Orientation - Vector3.new(0, 90, 0)})
TweenAlt:Play()
while Val >= workspace.RoomValue.Value - 4 do
wait(1)
end
wait(TweenAlt.TweenInfo.Time)
local GlowTween = game:GetService("TweenService"):Create(workspace.Glowyman, TweenInfo.new(1, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, false, 0), {["Position"] = Room.Entrance.Position})
GlowTween:Play()
while Val >= workspace.RoomValue.Value - 6 do
wait(1)
end
Room:Destroy()
script.Parent.Parent.Parent:Destroy()
end
end)