Categories > Coding > Lua >

Dragify Code (Smooth one)

Ovalodd

I working on sugery X

Posts: 7

Threads: 3

Joined: Mar, 2021

Reputation: 0

Posted

local UIS = game:GetService("UserInputService") function dragify(Frame) dragToggle = nil local dragSpeed = 0 dragInput = nil dragStart = nil local dragPos = nil function updateInput(input) local Delta = input.Position - dragStart local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y) game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play() end Frame.InputBegan:Connect(function(input) if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then dragToggle = true dragStart = input.Position startPos = Frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragToggle = false end end) end end) Frame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) game:GetService("UserInputService").InputChanged:Connect(function(input) if input == dragInput and dragToggle then updateInput(input) end end) end dragify(script.Parent)

  • 0

MINISHXP

[REDACTED]

Posts: 976

Threads: 3

Joined: Jan, 2021

Reputation: 9

Replied

any way to recreate that smoothness efx in c# wpf tho?

thats the real questuion

  • 0

Ovalodd

I working on sugery X

Posts: 7

Threads: 3

Joined: Mar, 2021

Reputation: 0

Replied

@MINISHXP no its just LUA code

  • 0

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

@MINISHXP ...That is a completely different question that cannot even be remotely related to how the lua one works

  • 0

MINISHXP

[REDACTED]

Posts: 976

Threads: 3

Joined: Jan, 2021

Reputation: 9

Replied

@63568The only related thing that i can think about them, is that they both where not built for security

yeah having to use an additional obfuscator on c# from vs sucks and i had to buy one

  • 0

Posts: 725

Threads: 58

Joined: Feb, 2021

Reputation: 3

Replied

You skidded beta's code

Also use code blocks

local UIS = game:GetService("UserInputService")
function dragify(Frame)
dragToggle = nil
local dragSpeed = 0
dragInput = nil
dragStart = nil
local dragPos = nil
function updateInput(input)
local Delta = input.Position - dragStart
local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y) game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play() 
end 
Frame.InputBegan:Connect(function(input)
if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then dragToggle = true dragStart = input.Position startPos = Frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragToggle = false end end) end end) Frame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) game:GetService("UserInputService").InputChanged:Connect(function(input) if input == dragInput and dragToggle then updateInput(input) end end) end dragify(script.Parent)
  • 0

no

Error: The signature must be between 3-200 characters

TaxiDriver08

JustMarie

Posts: 1547

Threads: 39

Joined: Dec, 2020

Reputation: 6

Replied

:eyes:

 

i want some proof that this code is urs or i will make you kiss my dog's behind

  • 0

JustMarie#0709

 

TERIHAX

i say im gay as a joke 🙀

Posts: 2240

Threads: 102

Joined: Jul, 2020

Reputation: 32

Replied

  • 0

TaxiDriver08

JustMarie

Posts: 1547

Threads: 39

Joined: Dec, 2020

Reputation: 6

Replied

@TERIHAX

Do

not 

question

my

methods

  • 0

JustMarie#0709

 

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )