All pastes #797752 Raw Edit

Anonymous

public text v1 · immutable
#797752 ·published 2007-11-26 06:16 UTC
rendered paste body
bin = script.Parent
w = game.Lighting.GRENADE [4]
ww = game.Lighting.Rocket
debounce = false

function onTouched(part)
	local h = part.Parent:findFirstChild("Humanoid")
	if h~=nil and debounce == false then
	debounce = true
		if game.Players:findFirstChild(h.Parent.Name).leaderstats.Level.Value >= 5 then
		w:clone().Parent = game.Players:findFirstChild(h.Parent.Name).Backpack
		ww:clone().Parent = game.Players:findFirstChild(h.Parent.Name).Backpack
		game.Players:findFirstChild(h.Parent.Name).Job.Value = 4
		else
		local m = Instance.new("Hint")
		m.Parent = game.Players:findFirstChild(h.Parent.Name)
		m.Text = "You Need To Be Atleast Level 5 To Change Jobs."
		wait(3)
		m:remove()
		end
	wait(1)
	debounce = false
	end
end

script.Parent.Touched:connect(onTouched)