Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Weld()
- local w = Instance.new("Weld")
- w.Part0 = game.Workspace.Summon
- w.Part1 = game.Workspace.Summon.R
- w.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) --First CFrame is rotation, second Cframe is where it goes.
- w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -2.5, 0) --This is the second brick (the one you want to move most of the time)
- w.Parent = game.Workspace
- end
- Player = game.Players.LocalPlayer
- run = game:GetService("RunService")
- local MyMouse = game.Players.LocalPlayer:GetMouse()
- MyMouse.KeyDown:connect(function(key)
- if string.lower(key) == "l" then
- RightShoulder = Player.Character.Torso["Right Shoulder"]
- LeftShoulder = Player.Character.Torso["Left Shoulder"]
- Run = game:GetService("RunService")
- for i = 1, 1 do
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -0.16)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0.16)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, -0.1, 0)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0.1, 0)
- Run.Stepped:wait(0.01)
- end
- game:GetService("Chat"):Chat(Player.Character.Head, "Summon:Spike")
- wait(1)
- --local m = Instance.new("Model", game.Workspace)
- local k = Instance.new("Part", game.Workspace)
- k.Size = Vector3.new(1, 1, 1)
- k.Color = Color3.new(0, 0, 0)
- k.Anchored = true
- k.Name = "Summon"
- k.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, -2.5, -6)
- local i = Instance.new("Decal", k)
- i.Texture = "http://www.roblox.com/asset/?id=153485522"
- i.Face = "Top","Bottom","Back","Front","Left","Right"
- local m = Instance.new("CylinderMesh", k)
- m.Scale = Vector3.new(7, 1, 7)
- wait(.1)
- local f = Instance.new("Part", k)
- f.Name = "R"
- f.Size = Vector3.new(1, 2, 1)
- f.CanCollide = true
- wait(.5)
- for i = 4, 10 do
- f.CFrame = game.Workspace.Summon.CFrame*CFrame.new(0, i, 0)
- end
- local j = Instance.new("SpecialMesh", f)
- j.MeshId = "http://www.roblox.com/asset/?id=9756362"
- j.Scale = Vector3.new(3, 3, 3)
- j.MeshType = "FileMesh"
- j.VertexColor = Vector3.new(5, 4, 0)
- wait(.3)
- f.Anchored = true
- wait(.5)
- Weld()
- --[[local q = Instance.new("Part", k)
- q.Name = "L"
- q.Size = Vector3.new(1, 2, 1)
- q.CFrame = game.Workspace.Summon.CFrame*CFrame.new(0, 2, 0)]]
- --wait(2)
- --Weld()
- --f.CanCollide = true
- --f.Anchored = true
- wait(0)
- --k:Remove()
- for i = 1, 12 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -0.1, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0.1, 0)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0.16)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -0.16)
- Run.Stepped:wait(0.005)
- end
- wait(5)
- k:Remove()
- end
- end
- end)
- if Weld() then
- print("yes")
- else
- print("no")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement