Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. run = game:GetService("RunService")
  2. local MyMouse = game.Players.epiclightining:GetMouse()
  3. plr = game.Players.SageOfSevenPaths7
  4. Player = game.Players.SageOfSevenPaths7
  5. RightShoulder = plr.Character.Torso["Right Shoulder"]
  6. LeftShoulder = plr.Character.Torso["Left Shoulder"]
  7. Run = game:GetService("RunService")
  8. lantern = false
  9. g = Instance.new("Part", game.Players.epiclightining.Character)
  10. g.Name = "cy"
  11. g.CFrame = plr.Character.cy.CFrame *CFrame.new(.5, .5, .5)
  12. f = Instance.new("SpecialMesh", g)
  13. f.MeshId = "http://www.roblox.com/asset/?id=3270017"
  14. f.Scale = Vector3.new(.26, .26, .26)
  15. g.BrickColor = BrickColor.Green()
  16. Shirt = Instance.new("Shirt", plr.Character)
  17. Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=235998635"
  18. Pant = Instance.new("Pants", plr.Character)
  19. Pant.PantsTemplate = "http://www.roblox.com/asset/?id=225445597"
  20. function Weld()
  21. local w = Instance.new("Weld")
  22. w.Part0 = plr.Character.cy
  23. w.Part1 = plr.Character["Right Arm"]
  24. w.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) --First CFrame is rotation, second Cframe is where it goes.
  25. w.C1 = CFrame.fromEulerAnglesXYZ(1.6, 0, 0) * CFrame.new(.3, .1, 1.1) --This is the second brick (the one you want to move most of the
  26. w.Parent = game.Workspace
  27. end
  28. Weld()
  29. lantern = true
  30. MyMouse.KeyDown:connect(function(key)
  31. if string.lower(key) == "f" then
  32. local z = Instance.new("Part", game.Workspace)
  33. z.Size = Vector3.new(7, 7, 0)
  34. z.CFrame = plr.Character.Torso.CFrame *CFrame.new(0, 0, -4)
  35. wait(.01)
  36. z.Transparency = .5
  37. z.BrickColor = BrickColor.new("Lime green")
  38. z.Name = "Block"
  39. local function Welds()
  40. local w = Instance.new("Weld")
  41. w.Part0 = z
  42. w.Part1 = plr.Character.Torso
  43. w.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 4) --First CFrame is rotation, second Cframe is where it goes.
  44. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 2, 0) --This is the second brick (the one you want to move most of the
  45. w.Parent = game.Workspace
  46. z.Anchored = true
  47. end
  48. --Welds()
  49.  
  50. end
  51.  
  52. end)
  53. MyMouse.KeyUp:connect(function(key)
  54. if string.lower(key) == "f" then
  55. local z = game.Workspace.Block
  56. z:Destroy()
  57. end
  58. end)
  59. -- if not string.reverse(key) == "f" then if string.lower(key) == "f" and lantern == true then
  60. -- z:Destroy()
  61. -- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement