Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- mouse.Button1Down:Connect(function()
- script.Parent.Holding.Value = true
- end)
- mouse.Button1Up:Connect(function()
- script.Parent.Holding.Value = false
- end)
- mouse.Move:Connect(function()
- if script.Parent.Holding.Value == true then
- script.Parent.Frame.Position = UDim2.new(0,mouse.X,0,mouse.Y)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment