Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local AE=game:GetService("ReplicatedStorage").ActionEvents
- local plr=game.Players.LocalPlayer
- local HumRoot=plr.Character.HumanoidRootPart
- local PrevPos=HumRoot.CFrame
- local House = workspace.Properties[plr.Name]
- for i, v in pairs(House.Builds:GetChildren()) do
- if v.Name == "Jewelry Display" then
- if v["Meshes/ringbox_Icosphere"].Transparency == 1 then
- local Part=v["Meshes/ringbox_Icosphere"]
- repeat
- HumRoot.CFrame=Part.CFrame
- AE[v.ActionEvent.ActionName.Value]:FireServer(v)
- task.wait()
- until Part.Transparency==0
- end
- elseif v.Name=="Fashion Aisle" then
- local Part=v:GetChildren()[8].Coathanger.Torso
- if Part.Transparency==1 then
- repeat
- HumRoot.CFrame=Part.CFrame
- AE[v.ActionEvent.ActionName.Value]:FireServer(v)
- task.wait()
- until Part.Transparency==0
- end
- elseif v.Name=="Electronics Section" then
- local Part=v:GetChildren()[7]:GetChildren()[3]["Meshes/smartphone_Cube.001"]
- if Part.Transparency==1 then
- repeat
- HumRoot.CFrame=Part.CFrame
- AE[v.ActionEvent.ActionName.Value]:FireServer(v)
- task.wait()
- until Part.Transparency==0
- end
- elseif v.Name=="Food Aisle" then
- local Part=v.Union
- if Part.Transparency==1 then
- repeat
- HumRoot.CFrame=Part.CFrame
- AE[v.ActionEvent.ActionName.Value]:FireServer(v)
- task.wait()
- until Part.Transparency==0
- end
- end
- end
- HumRoot.CFrame=PrevPos
Advertisement
Add Comment
Please, Sign In to add comment