Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Vars
- local WS = game:GetService("Workspace")
- local PS = game:GetService("Players")
- local Lootables = WS:WaitForChild("Lootables")
- local HumRoot = PS.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
- local NewO = Instance.new("Part", workspace)
- NewO.CFrame = HumRoot.CFrame
- NewO.CanCollide = false
- NewO.Anchored = true
- function Interact(O)
- local Event = game:GetService("ReplicatedStorage").Remotes.CompleteInteraction
- Event:FireServer(O)
- end
- PS.LocalPlayer.Character.Humanoid:ChangeState(11)
- for _,v in pairs (workspace:GetDescendants()) do
- if v.Name == "LootablePainting" then
- local Picture = v:FindFirstChild("Picture")
- repeat wait() HumRoot.CFrame = Picture.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "Artifact" then
- local Handle = v:FindFirstChild("Handle")
- repeat wait() HumRoot.CFrame = Handle.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "Samurai" then
- local Part = v:FindFirstChildWhichIsA("Part")
- repeat wait() HumRoot.CFrame = Part.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "Coke" then
- local Cola = v:FindFirstChild("Cola")
- repeat wait() HumRoot.CFrame = Cola.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "WeaponBagger" then
- local Barrel = v:FindFirstChild("Barrel")
- repeat wait() HumRoot.CFrame = Barrel.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "GoldBars" then
- local Bar = v:FindFirstChild("Bar")
- repeat wait() HumRoot.CFrame = Bar.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "Money" then
- local Buck = v:FindFirstChild("Bucks")
- repeat wait() HumRoot.CFrame = Buck.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "SmallJewels2" then
- local Part = v:FindFirstChildWhichIsA("Part")
- repeat wait() HumRoot.CFrame = Part.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "Jewels" then
- local Part = v:FindFirstChildWhichIsA("Part")
- repeat wait() HumRoot.CFrame = Part.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "Cash Register" then
- local Drawer = v:WaitForChild("Drawer")
- repeat wait() HumRoot.CFrame = Drawer.CFrame Interact(v) until v.Name == "OpenedRegister"
- end
- if v.Name == "SmallJewels" then
- local Ring = v:WaitForChild("Part")
- repeat wait() HumRoot.CFrame = Ring.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "DepositMoney" then
- local Hitbox = v:WaitForChild("Hitbox")
- repeat wait() HumRoot.CFrame = Hitbox.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "DepositMoneyStack" then
- local Hitbox = v:WaitForChild("Hitbox")
- repeat wait() HumRoot.CFrame = Hitbox.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "DepositGoldBar" then
- local Hitbox = v:WaitForChild("Hitbox")
- repeat wait() HumRoot.CFrame = Hitbox.CFrame Interact(v) until v.Parent == nil
- end
- if v.Name == "DepositRing" then
- local Hitbox = v:WaitForChild("Hitbox")
- repeat wait() HumRoot.CFrame = Hitbox.CFrame Interact(v) until v.Parent == nil
- end
- end
- PS.LocalPlayer.Character.Humanoid:ChangeState(11)
- warn("Teleported")
- HumRoot.CFrame = NewO.CFrame
- NewO:Remove()
Add Comment
Please, Sign In to add comment