Universal Script 📌
387 Views
152 Executions

Gun

Universal Script 📌
ramadanopeyemi2boys
ramadanopeyemi2boys100K executions
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

Xphxdhydxufuf

View Raw
local tool = script.Parent
local allowedPlayerName = "YOUR_USERNAME_HERE" -- change this to your Roblox username
local damage = 100 -- 100 will instantly kill most players
local debounce = false

tool.Activated:Connect(function()
	if debounce then return end
	debounce = true
	
	local character = tool.Parent
	local player = game.Players:GetPlayerFromCharacter(character)
	
	-- Only allow you to use it
	if not player or player.Name ~= allowedPlayerName then
		debounce = false
		return
	end
	
	local handle = tool:FindFirstChild("Handle")
	if not handle then return end
	
	-- Raycast shooting
	local origin = handle.Position
	local direction = handle.CFrame.LookVector * 500
	
	local raycastParams = RaycastParams.new()
	raycastParams.FilterDescendantsInstances = {character}
	raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
	
	local result = workspace:Raycast(origin, direction, raycastParams)
	
	if result then
		local hitPart = result.Instance
		local hitCharacter = hitPart:FindFirstAncestorOfClass("Model")
		
		if hitCharacter then
			local humanoid = hitCharacter:FindFirstChildrbxassetid://12221720


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
3.0M
1.1M
Bumped 3 hours ago
Key System

Script hub

#6 today

CanHub V2 200 GAMES KEYLESS

Script hub
160
7
22 hours ago
Script hub
277.5k
165.4k
Bumped 3 hours ago
Key System
Universal Script 📌
6.7k
17.0k
Bumped 4 hours ago
Script hub
1.7M
431.9k
Bumped 5 hours ago
Key System

Script hub

#7 today

Verified script badgeAxonic Hub | 50+ Games Supported

Universal Script 📌
2.5k
7.1k
Bumped 10 hours ago
Script hub
5.9k
86.5k
Bumped 10 hours ago

Script hub

SAGAZx Hub

Script hub
77.7k
274.5k
Bumped 11 hours ago
Key System