Universal Script πŸ“Œ
37 Views
51 Executions

Fix Velocity Drawing

Universal Script πŸ“Œ
z0lupo4ka
z0lupo4kaPublished 10
9 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!

Tags

More universal scripts

See all
Universal Script πŸ“Œ
10.3k
269
Bumped 1 hour ago
High QualityΒ Offering
Universal Script πŸ“Œ
8.4k
32.8k
Bumped 1 hour ago
Key System
Universal Script πŸ“Œ
1.4k
5.9k
Bumped 2 hours ago
Script hub
22.0k
4.3k
Bumped 3 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
1.1k
2.2k
Bumped 3 hours ago
Universal Script πŸ“Œ
1.6k
5.9k
Bumped 3 hours ago
Script hub
164.7k
566.3k
Bumped 6 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT