---
title: "Good Hookfunction for bad executors | Universal Roblox Script - ScriptBlox"
description: "Good Hookfunction for bad executors for any Roblox game: Credits : Jazmine (Skyhub)"
canonical_url: "https://scriptblox.com/script/Universal-Script-Good-Hookfunction-for-bad-executors-17155"
meta:
  "og:description": "Good Hookfunction for bad executors for any Roblox game: Credits : Jazmine (Skyhub)"
  "og:image": "https://scriptblox.com/images/script/1634902-1723552124341.png"
  "og:title": "Good Hookfunction for bad executors | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Good Hookfunction for bad executors for any Roblox game: Credits : Jazmine (Skyhub)"
  "twitter:image": "https://scriptblox.com/images/script/1634902-1723552124341.png"
  "twitter:title": "Good Hookfunction for bad executors | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/1634902-1723552124341.png)

# **Good Hookfunction for bad executors**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![UnnesscaryInventions](https://scriptblox.com/images/photo/6678169b794e634f0700eaa2-1719146257838.jpg) [UnnesscaryInventions](https://scriptblox.com/u/UnnesscaryInventions)1M views**

2 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=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

Credits : Jazmine (Skyhub)

## **Updates **

1. Mar 27, 2025

   ****Script edited:**** Create script

[View Raw](https://scriptblox.com/raw/Universal-Script-Good-Hookfunction-for-bad-executors-17155)

```
getgenv().hookfunction = function(func, rep)
	for i,v in pairs(getfenv()) do
		if v == func then
			getfenv()[i] = rep
		end
	end
end


```

## **Comments **

**4**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-Good-Hookfunction-for-bad-executors-17155)

![pomnigyat's profile picture](https://scriptblox.com/images/photo/66606cd2366af8558ddbfb34-1724681918224.png)

[**pomnigyat**](https://scriptblox.com/u/pomnigyat)2 years ago(edited)

that is most certainly NOT hookfunction

2

![alex\_'s profile picture](https://scriptblox.com/images/photo/622644e6a476a5e7b39522f3-1743046525766.png)

[**alex\_**](https://scriptblox.com/u/alex_)Verified

![Verified Badge](https://scriptblox.com/_ipx/_/images/verified.webp)

2 years ago(edited)

not rlly a good hookfunction

1

![68856432's profile picture](https://scriptblox.com/images/photo/62c97e03f1c6420928a7472d-1783714142308.jpg)

[**68856432**](https://scriptblox.com/u/68856432)2 years ago(edited)

dis is so basic, it only hooks functions in the current scope

1

![nokey's profile picture](https://scriptblox.com/images/photo/668ba12a3890752919e9a0c9-1723095205895.png)

[**nokey**](https://scriptblox.com/u/nokey)2 years ago(edited)

put a return with the original func

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Good-Hookfunction-for-bad-executors-17155#script","url":"https://scriptblox.com/script/Universal-Script-Good-Hookfunction-for-bad-executors-17155","name":"Good Hookfunction for bad executors","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"UnnesscaryInventions","url":"https://scriptblox.com/u/UnnesscaryInventions"},"datePublished":"2024-08-13T12:28:44.380Z","image":"https://scriptblox.com/images/script/1634902-1723552124341.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Good-Hookfunction-for-bad-executors-17155#webpage","@type":"WebPage","description":"Good Hookfunction for bad executors for any Roblox game: Credits : Jazmine (Skyhub)","name":"Good Hookfunction for bad executors | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Good-Hookfunction-for-bad-executors-17155","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Good-Hookfunction-for-bad-executors-17155#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Good-Hookfunction-for-bad-executors-17155#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Good-Hookfunction-for-bad-executors-17155"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Good-Hookfunction-for-bad-executors-17155#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Good Hookfunction for bad executors","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
