Universal Script 📌
377 Views
104 Executions

Gun

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