So i’ve made a proximity prompt that triggers an if statement.
The problem is that the statement is true, but it doesn’t work.
local folder = script.Parent.Parent.IntValues
local eng = folder.Engine
local stabilizer = folder.Stabilizer
local walls = folder.Walls
local windows = folder.Windows
local fueltank = folder.FuelTank
local guidance = folder.Guidance
script.Parent.ProximityPrompt.Triggered:Connect(function()
if eng == 1 and stabilizer == 2 and walls == 4 and windows == 4 and fueltank == 3 and guidance == 1 then
script.Parent.ProximityPrompt:Destroy()
script.Parent.BrickColor = BrickColor.new("Really red")
script.Parent.Built:Play() --Audio
game.ReplicatedStorage.RocketParts.Rocket.Parent = workspace
script.Parent.Parent.PartsTextures:Destroy()
end
end)