Advertisement
Hektz

Doodle

Feb 22nd, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1.  
  2. local Hop = Instance.new("HopperBin")
  3. Hop.Parent = game.Players.killer5802.Backpack
  4. Hop.Name = "Draw"
  5. local Scr = Instance.new("Script")
  6. Scr.Parent = Hop
  7.  
  8. Scr.Source = [[
  9. local Place0 = CFrame.new()
  10. local CreateMode = true
  11. local M = Instance.new("Model")
  12. M.Name = "MeeloTool"
  13. M.Parent = game.Workspace
  14. function KeyDown(Key)
  15. Key:lower()
  16. if(Key == "c")then
  17. CreateMode = not CreateMode
  18. end
  19. end
  20. function Clicked(Target)
  21. if(CreateMode)then
  22. if(Place0 == CFrame.new())then
  23. Place0 = Target.Hit
  24. else
  25. local P = Instance.new("Part")
  26. P.Name = "MeeloSBDrawer"
  27. P.formFactor = 0
  28. P.Size = Vector3.new(1,1,(Place0.p - Target.Hit.p).magnitude)
  29. P.CFrame = CFrame.new((Place0.p + Target.Hit.p)/2,Place0.p)
  30. P.Parent = game.Workspace.MeeloTool
  31. P.Color = Color3.new(1,0,0)
  32. P.Anchored = true
  33. Place0 = CFrame.new()
  34. end
  35. else
  36. if(Target.Target.Name == "MeeloSBDrawer")then
  37. Target.Target:Remove()
  38. end
  39. end
  40. end
  41. function Selected(Mouse)
  42. Mouse.Button1Down:connect(function()Clicked(Mouse)end)
  43. Mouse.KeyDown:connect(KeyDown)
  44. end
  45. script.Parent.Selected:connect(Selected)
  46. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement