local Z=game:GetService("\068\101\098\114\105\115")local w=game:GetService("\080\108\097\121\101\114\115")local z=Random.new()local A=script.Parent local M=(A:WaitForChild("\079\119\110\101\114")).Value local S=A.Hit local I=M.Name local v=23 local D=10 local g local function Y(w)local z=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")z.Name="\099\114\101\097\116\111\114"z.Value=M z.Parent=w Z:AddItem(z,2)end local function U(Z)return Z and(M and(not Z.Neutral and(not M.Neutral and Z.TeamColor==M.TeamColor)))end local function W(Z,w)local z=Instance.new("\087\101\108\100")z.Part0=Z z.Part1=w local A=CFrame.new(Z.Position)z.C0=Z.CFrame:ToObjectSpace(A)z.C1=w.CFrame:ToObjectSpace(A)z.Parent=Z end A.Touched:Connect(function(Z)if not g then W(A,Z)g=true S:Play()local z=Z.Parent:FindFirstChildWhichIsA("\072\117\109\097\110\111\105\100")or Z.Parent.Parent:FindFirstChildWhichIsA("\072\117\109\097\110\111\105\100")if z and z.Health>0 then local Z=z.Parent if Z then if Z.Name~=I then local A=w:GetPlayerFromCharacter(Z)if A and U(A)then return end Y(z)z:TakeDamage(v*(Z:FindFirstChild("\078\105\110\106\097\077\097\115\107\079\102\083\104\097\100\111\119\115")and 2 or 1))end end end end end)Z:AddItem(A,D)
--[[ LawlR fix ]]
--

local ds = game:GetService("Debris")
local ps = game:GetService("Players")

local rng = Random.new()

local star = script.Parent
local starOwner = star:WaitForChild("Owner").Value
local hitSound = star.Hit

local ownerName = starOwner.Name
local dmg = 23
local lifetime = 10

local stuck

local function tagHum(hum)
	local tag = Instance.new("ObjectValue")
	tag.Name = "creator"
	tag.Value = starOwner
	tag.Parent = hum
	ds:AddItem(tag, 2)
end

local function isTeamMate(hitPlr)
	return (
		hitPlr
		and starOwner
		and not hitPlr.Neutral
		and not starOwner.Neutral
		and hitPlr.TeamColor == starOwner.TeamColor
	)
end

local function weld(obj, hit)
	local Weld = Instance.new("Weld")
	Weld.Part0 = obj
	Weld.Part1 = hit
	local HitCFrame = CFrame.new(obj.Position)
	Weld.C0 = obj.CFrame:ToObjectSpace(HitCFrame)
	Weld.C1 = hit.CFrame:ToObjectSpace(HitCFrame)
	Weld.Parent = obj
end

star.Touched:Connect(function(hit)
	if not stuck then
		weld(star, hit)
		stuck = true
		hitSound:Play()

		local hitHum = hit.Parent:FindFirstChildWhichIsA("Humanoid")
			or hit.Parent.Parent:FindFirstChildWhichIsA("Humanoid")
		if hitHum and hitHum.Health > 0 then
			local hitChr = hitHum.Parent
			if hitChr then
				if hitChr.Name ~= ownerName then
					local hitPlr = ps:GetPlayerFromCharacter(hitChr)
					if hitPlr and isTeamMate(hitPlr) then
						return
					end
					tagHum(hitHum)
					hitHum:TakeDamage(dmg * ((hitChr:FindFirstChild("NinjaMaskOfShadows") and 2) or 1))
				end
			end
		end
	end
end)

ds:AddItem(star, lifetime)
