Universal Script 📌
30 Views
48 Executions

Fix Velocity Drawing

Universal Script 📌
z0lupo4ka
z0lupo4kaPublished 10
8 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

This script implements the Drawing.new function

View Raw
local ScreenSize = Vector2.new(1920, 1080)  -- Write down your screen resolution and open Roblox in full screen mode

if not getgenv().Fix then
	local obj = Drawing.new("Circle")
	local mt = getrawmetatable(obj)
	setreadonly(mt, false)
	local old_newindex = mt.__newindex

	mt.__newindex = function(self, key, value)
		if table.find({"Position", "PointA", "PointB", "PointC", "PointD", "To", "From"}, key) and typeof(value) == "Vector2" then
			local viewport = workspace.CurrentCamera.ViewportSize

			value = Vector2.new(
				value.X / viewport.X * ScreenSize.X,
				value.Y / viewport.Y * ScreenSize.Y
			)
		end

		return old_newindex(self, key, value)
	end
	obj:Destroy()
	getgenv().Fix = true
end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!