Universal Script 📌
3.7k Views
691 Executions

Simple Desync

Universal Script 📌
Danny_
Danny_Published 10
10 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 is a very simple desync script for demonstrating how these work. I want to make it very clear that this WILL NOT be as good or robust as other desync scripts you can find here. I just wanted to make a simple desync to test my abilities. Activate the script with F1 or any keycode you set _G.desyncHotkey to.

View Raw
local hotkey = _G.desyncHotkey or Enum.KeyCode.F1

local uis = game:GetService("UserInputService")
local lp = game.Players.LocalPlayer
local desyncActive = false
local mainCharacter = nil
local deathConnections = {}


function deactivate()
	desyncActive = false
	
	for i, connection in pairs(deathConnections) do
		connection:Disconnect()
		table.remove(deathConnections, i)
	end
	
	mainCharacter.HumanoidRootPart.CFrame = lp.Character.HumanoidRootPart.CFrame
	lp.Character:Destroy()
	local oldctype = game.Workspace.CurrentCamera.CameraType
	game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
	task.wait()
	lp.Character = mainCharacter
	game.Workspace.CurrentCamera.CameraSubject = mainCharacter.Humanoid
	game.Workspace.CurrentCamera.CameraType = oldctype
	mainCharacter.Animate.Enabled = false
	mainCharacter.Animate.Enabled = true
end


uis.InputBegan:Connect(function(input, gameProcessed)
	if not gameProcessed and input.KeyCode == hotkey then
		if desyncActive then
			deactivate()
		else
			desyncActive = true
			mainCharacter = lp.Character
			local oldArchivable = mainCharacter.Archivable
			mainCharacter.Archivable = true
			local clone = mainCharacter:Clone()


Comments

3
Log in to join the conversation. Login
viralhack123's profile picture
viralhack12310 months ago

And what does the script actually do? I'm not sure I understood, but I suppose it's so that when someone tries to teleport to you, they teleport to another place instead, or am I wrong?

1
wowzerz's profile picture
wowzerz10 months ago

@viralhack123 the script is used in many games to make people think you are somewhere else or laggy, in fighting games and stealing games it allows a advantage cuz they cant see you but u can see them and kill them

1
viralhack123's profile picture
viralhack12310 months ago

@wowzerz Thank you so much for the explanation, brother.

1

More universal scripts

See all
Script hub
164.4k
561.9k
Bumped 1 hour ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Script hub
2.9k
3.7k
Bumped 2 hours ago
Script hub
210
862
12 hours ago
Key System
Universal Script 📌
110
34
Approved 4 hours ago
Script hub
123
288
Approved 4 hours ago
Script hub
60
70
Approved 5 hours ago
Universal Script 📌
83
106
Approved 5 hours ago