Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Loadstring: loadstring(game:HttpGet("https://pastebin.com/raw/aGdhCevn"))()
- -- Note: If your mouse cursor doesn't show on the screen, try opening and then closing the game menu. Stay close to the target point you want to draw on, as there is a range limit for placing a marker. Too much markers may lag everyone
- local StarterGui = game:GetService("StarterGui")
- local Client = game:GetService("Players").LocalPlayer
- local Mouse = Client:GetMouse()
- local MarkRemoteEvent = game:GetService("ReplicatedStorage"):WaitForChild("Mark")
- local CurrentDrawTool
- local MouseButton1Down = game:GetService("UserInputService"):IsMouseButtonPressed(Enum.UserInputType.MouseButton1)
- Mouse.Button1Down:Connect(function()
- MouseButton1Down = true
- end)
- Mouse.Button1Up:Connect(function()
- MouseButton1Down = false
- end)
- game:GetService("RunService").Heartbeat:Connect(function()
- StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
- if CurrentDrawTool and CurrentDrawTool.Parent == Client.Character and MouseButton1Down then
- MarkRemoteEvent:FireServer(Mouse.Hit)
- end
- end)
- function CreateDrawTool()
- local character = Client.Character
- local backpack = Client:WaitForChild("Backpack")
- if not CurrentDrawTool or (CurrentDrawTool.Parent ~= backpack and (not character or CurrentDrawTool.Parent ~= character)) then
- local drawTool = Instance.new("Tool")
- drawTool.CanBeDropped = false
- drawTool.RequiresHandle = false
- drawTool.ToolTip = "Scribble Scribble!"
- drawTool.Name = "Draw"
- drawTool.Parent = backpack
- CurrentDrawTool = drawTool
- end
- end
- Client.CharacterAdded:Connect(CreateDrawTool)
- if Client.Character then
- CreateDrawTool()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement