Hey.
I have this passenger boarding ramp I am working on. I am trying to have some support stuts which come down and make sure the ramp is stable and level but a little confused.
The ramp is NOT anchored. I have triple checked this and gone through to make sure nothing is stopping it but I can confirm that the ramp is free to move. However when the legs come down they just go into the floor rather than lifting the ramp. And when I switch the legs off the ramp pops up onto the legs and they retract.
I have no idea what’s causing this. I don’t think it’s a script issue, however I have put the relevant code below;
Anchoron = false
AnchorSwitch.ClickDetector.MouseClick:Connect(function(Player)
if Player:GetRankInGroup(GroupID) >= RankID or table.find(WhitelistIDs,Player.UserId) then
if Anchoron == false and script.Parent.ANCHOR.Anchored == false then
AnchorMotor.DesiredAngle = 1.6
AnchorFX:Play()
moveAllDown()
wait(2)
script.Parent.ANCHOR.Anchored = true
AnchorLight.Material = Enum.Material.Neon
UnAnchorLight.Material = Enum.Material.SmoothPlastic
Anchoron = true
elseif Anchoron == true and script.Parent.ANCHOR.Anchored == true then
AnchorMotor.DesiredAngle = 0
AnchorFX:Play()
script.Parent.ANCHOR.Anchored = false
wait(1)
moveAllUp()
AnchorLight.Material = Enum.Material.SmoothPlastic
UnAnchorLight.Material = Enum.Material.Neon
Anchoron = false
end
end
end)
Sorry for the quality of the video, I didn’t want to open OBS XD
For reference, I click the entire model and toggle anchor several times before then leaving it off to make sure the entire model is unanchored.
robloxapp-20241201-1648311.wmv (1.4 MB)