Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spawn(function()
- while true do
- wait(1)
- local chest = workspace.Chests:getChildren()
- for i=1,#chest do
- if chest[i]:findFirstChild("ChestBottom") then
- if chest[i].ChestBottom:findFirstChild("MetalOutline") then
- if chest[i].ChestBottom.MetalOutline:findFirstChild("Trigger") then
- if chest[i].ChestBottom.MetalOutline.Trigger:findFirstChild("TriggerRemoteEvent") then
- game.Players.LocalPlayer.Character:MoveTo(chest[i].ChestBottom.MetalOutline.Position)
- wait()
- chest[i].ChestBottom.MetalOutline.Trigger.TriggerRemoteEvent:FireServer()
- end
- end
- end
- end
- end
- end
- end)
- spawn(function()
- game.Players.LocalPlayer.Character.ChildAdded:connect(function(sword)
- if sword.Name == "Sword" then
- while true do
- wait()
- local cframe = sword.Handle.CFrame
- local size = sword.Handle.Size
- local player = workspace:GetChildren()
- for i=1,#player do
- if player[i]:findFirstChild("Head") then
- if player[i].Name ~= game.Players.LocalPlayer.Name then
- if player[i].HumanoidRootPart:findFirstChild("RootRigAttachment") then
- player[i].HumanoidRootPart.RootRigAttachment:remove()
- end
- player[i].HumanoidRootPart.Transparency = 1
- player[i].HumanoidRootPart.CanCollide = false
- player[i].HumanoidRootPart.Anchored = true
- player[i].HumanoidRootPart.Size = size
- player[i].HumanoidRootPart.CFrame = cframe
- end
- end
- end
- end
- end
- end)
- end)
Add Comment
Please, Sign In to add comment