--Stickmasterluke



sp=script.Parent


taseduration=5
rate=.4


local s=Instance.new("Sound")
s.SoundId="http://www.roblox.com/asset/?id=82277505"
s.Looped=true

if ypcall(function()
joints={}
local t=sp:FindFirstChild("Torso")
if t~=nil then
	s.Parent=t
	s:Play()
	for i,v in ipairs(t:GetChildren()) do
		if v.className=="Motor" or v.className=="Motor6D" or v.className=="Weld" or v.className=="ManualWeld" then
			table.insert(joints,v)
		end
	end
end

if #joints>=1 then
	for i=1,taseduration/rate do
		for i,v in ipairs(joints) do
			if v~=nil then
				v.CurrentAngle=(math.random()-.5)*5
			end
		end
		local h=sp:FindFirstChild("Humanoid")
		local t=sp:FindFirstChild("Torso")
		if t~=nil and h~=nil then
			h.Sit=true
			h.Torso.Anchored = true
			t.CFrame=t.CFrame*CFrame.Angles((math.random()-.5)*.5,(math.random()-.5)*.5,(math.random()-.5)*.5)
			wait(rate)
		end
	end
	local h=sp:FindFirstChild("Humanoid")
	h.Torso.Anchored = false
	h.Sit=false
end
s:Stop()
script:remove()


end) ~= true then wait() script:remove() end
