Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Hop = Instance.new("HopperBin")
- Hop.Parent = game.Players.killer5802.Backpack
- Hop.Name = "Draw"
- local Scr = Instance.new("Script")
- Scr.Parent = Hop
- Scr.Source = [[
- local Place0 = CFrame.new()
- local CreateMode = true
- local M = Instance.new("Model")
- M.Name = "MeeloTool"
- M.Parent = game.Workspace
- function KeyDown(Key)
- Key:lower()
- if(Key == "c")then
- CreateMode = not CreateMode
- end
- end
- function Clicked(Target)
- if(CreateMode)then
- if(Place0 == CFrame.new())then
- Place0 = Target.Hit
- else
- local P = Instance.new("Part")
- P.Name = "MeeloSBDrawer"
- P.formFactor = 0
- P.Size = Vector3.new(1,1,(Place0.p - Target.Hit.p).magnitude)
- P.CFrame = CFrame.new((Place0.p + Target.Hit.p)/2,Place0.p)
- P.Parent = game.Workspace.MeeloTool
- P.Color = Color3.new(1,0,0)
- P.Anchored = true
- Place0 = CFrame.new()
- end
- else
- if(Target.Target.Name == "MeeloSBDrawer")then
- Target.Target:Remove()
- end
- end
- end
- function Selected(Mouse)
- Mouse.Button1Down:connect(function()Clicked(Mouse)end)
- Mouse.KeyDown:connect(KeyDown)
- end
- script.Parent.Selected:connect(Selected)
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement