local J=script.Parent local v=Instance.new("\083\111\117\110\100")v.Name="\071\108\097\115\115\066\114\101\097\107"v.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\054\057\055\054\049\056\057"v.Volume=1 v.Parent=J.Handle function onActivated()if not J.Enabled then return end J.Enabled=false wait(1)local L=game.Players:GetPlayerFromCharacter(J.Parent)local Y=J.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if Y==nil or L==nil then J.Enabled=true return end local b=J.Parent local m=b:FindFirstChild("\084\111\114\115\111")or b:FindFirstChild("\085\112\112\101\114\084\111\114\115\111")local N=b:FindFirstChild("\082\105\103\104\116 \065\114\109")or b:FindFirstChild("\082\105\103\104\116\085\112\112\101\114\065\114\109")local S=m:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")or N:FindFirstChild("\082\105\103\104\116\083\104\111\117\108\100\101\114")local R=J.Handle:Clone()v.Parent=R R.Transparency=0 S.MaxVelocity=.7 S.DesiredAngle=3.6 wait(.1)S.MaxVelocity=1 local V=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")V.Value=L V.Name="\084\111\115\115\101\114"V.Parent=R local Q=Y.Parent.Head.CFrame.lookVector R.Velocity=Q*70+Vector3.new(0,70,0)R.CanCollide=true;(J.Glass:Clone()).Parent=R R.Glass.Disabled=false R.Parent=game.Workspace wait(14)R.Transparency=1 J.Enabled=true end function onEquipped() end script.Parent.Activated:connect(onActivated)script.Parent.Equipped:connect(onEquipped)
--Updated for R15 avatars by StarWars
local Tool = script.Parent

local GlassBreak = Instance.new("Sound")
GlassBreak.Name = "GlassBreak"
GlassBreak.SoundId = "http://www.roblox.com/asset/?id=16976189"
GlassBreak.Volume = 1
GlassBreak.Parent = Tool.Handle

function onActivated()
	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false

	wait(1)

	local player = game.Players:GetPlayerFromCharacter(Tool.Parent)
	local h = Tool.Parent:FindFirstChild("Humanoid")
	if h == nil or player == nil then
		Tool.Enabled = true
		return
	end

	local Character = Tool.Parent
	local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso")
	local RightArm = Character:FindFirstChild("Right Arm") or Character:FindFirstChild("RightUpperArm")
	local RightShoulder = Torso:FindFirstChild("Right Shoulder") or RightArm:FindFirstChild("RightShoulder")

	local p = Tool.Handle:Clone()
	GlassBreak.Parent = p
	p.Transparency = 0

	RightShoulder.MaxVelocity = 0.7
	RightShoulder.DesiredAngle = 3.6
	wait(0.1)
	RightShoulder.MaxVelocity = 1

	local tosser = Instance.new("ObjectValue")
	tosser.Value = player
	tosser.Name = "Tosser"
	tosser.Parent = p

	local dir = h.Parent.Head.CFrame.lookVector
	p.Velocity = (dir * 70) + Vector3.new(0, 70, 0)
	p.CanCollide = true
	Tool.Glass:Clone().Parent = p
	p.Glass.Disabled = false
	p.Parent = game.Workspace

	wait(14)
	p.Transparency = 1
	Tool.Enabled = true
end

function onEquipped()
	--Tool.Handle.OpenSound:play()
end

script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)
