Help me fix my script

local v3 = game.Players.LocalPlayer
local v41 = v3.Character
if v41 then
v41 = v3.CharacterAdded
local v4 = v41:Wait()
end
v3:GetMouse().Icon = “rbxassetid://00000000”
local v10 = UDim2.new(0, 190, 0, 100)
local v16 = UDim2.new(0, 50, 0, 50)
game[“Run Service”].RenderStepped:Connect(function()
local v20 = v4
local v21 = v20.HumanoidRootPart
local v23 = v21.Velocity.X
local v39 = 0
if v39 <= v23 then
v20 = v4
v21 = v20.HumanoidRootPart
v39 = v21.Velocity
v23 = v39.Z
v39 = 0
if v39 <= v23 then
v20 = v4
v21 = v20.HumanoidRootPart
v39 = v21.Velocity
v23 = v39.Z
v39 = 0
if v23 <= v39 then
v20 = v4
v21 = v20.HumanoidRootPart
v39 = v21.Velocity
v23 = v39.X
v39 = 0
if v39 > v23 then
v21 = script
v39 = v21.Parent
v23 = v39.Crosshair
v21 = v10
v20 = Enum.EasingDirection.Out
v23:TweenSize(v21, v20, Enum.EasingStyle.Sine, 0.2, false)
return
end
local v27 = v4
local v28 = v27.HumanoidRootPart
v39 = v28.Velocity
local v29 = v39.Y
v39 = 0
if v29 > v39 then
v28 = script
v39 = v28.Parent
v29 = v39.Crosshair
v28 = v10
v27 = Enum.EasingDirection.Out
v29:TweenSize(v28, v27, Enum.EasingStyle.Sine, 0.2, false)
return
end
v39 = script.Parent
v39.Crosshair:TweenSize(v16, Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.2, false)
return
end
end
end
end)

Is this from a free model? Cause it looks like it has been stolen from a game with exploits (based on how the variables are written it looks like it is decompiled).

Its a big mess and hard to fix (without at least breaking something) and read. I recommend rewriting it.

Here are some resources that are useful for what you wanted to achieve: GuiObject | Roblox Creator Documentation
RunService | Roblox Creator Documentation

1 Like

May I ask what is this script is supposed to do…

the asset id has not been filled

and this is likely a free model (I’m fine with it, not hating the models)

spread the crosshair i think. bc the script not made by me its from my assistant

Your assistant is an exploiter, this is what synapse X decompiler looks like when you take a script from another game.

ouh now i know so i just scammed can anyone help me make a new script?