evannik23

Roville retsock function

Aug 28th, 2024 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.85 KB | None | 0 0
  1.  
  2. local AE=game:GetService("ReplicatedStorage").ActionEvents
  3. local plr=game.Players.LocalPlayer
  4.  
  5.  
  6.  
  7.     local HumRoot=plr.Character.HumanoidRootPart
  8.     local PrevPos=HumRoot.CFrame
  9.     local House = workspace.Properties[plr.Name]
  10.     for i, v in pairs(House.Builds:GetChildren()) do
  11.         if v.Name == "Jewelry Display" then
  12.             if v["Meshes/ringbox_Icosphere"].Transparency == 1 then
  13.                 local Part=v["Meshes/ringbox_Icosphere"]
  14.                 repeat
  15.                  HumRoot.CFrame=Part.CFrame
  16.                 AE[v.ActionEvent.ActionName.Value]:FireServer(v)
  17.                 task.wait()
  18.                 until Part.Transparency==0
  19.             end
  20.         elseif v.Name=="Fashion Aisle" then
  21.             local Part=v:GetChildren()[8].Coathanger.Torso
  22.             if Part.Transparency==1 then
  23.                 repeat
  24.                 HumRoot.CFrame=Part.CFrame
  25.                  AE[v.ActionEvent.ActionName.Value]:FireServer(v)
  26.                 task.wait()
  27.                 until Part.Transparency==0
  28.             end
  29.         elseif v.Name=="Electronics Section" then
  30.             local Part=v:GetChildren()[7]:GetChildren()[3]["Meshes/smartphone_Cube.001"]
  31.             if Part.Transparency==1 then
  32.                 repeat
  33.                 HumRoot.CFrame=Part.CFrame
  34.                  AE[v.ActionEvent.ActionName.Value]:FireServer(v)
  35.                 task.wait()
  36.                 until Part.Transparency==0
  37.             end        
  38.        
  39.         elseif v.Name=="Food Aisle" then
  40.             local Part=v.Union
  41.             if Part.Transparency==1 then
  42.                 repeat
  43.                 HumRoot.CFrame=Part.CFrame
  44.                  AE[v.ActionEvent.ActionName.Value]:FireServer(v)
  45.                 task.wait()
  46.                 until Part.Transparency==0
  47.             end        
  48.         end        
  49.     end
  50.     HumRoot.CFrame=PrevPos
  51.  
Advertisement
Add Comment
Please, Sign In to add comment