Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can someone help with it?There is tool and when you equip character flies and goes invisible.

So i have tool and i need script when like you equip tool and character goes invisible until tool will not be unequipped and plus when the same tool is equipped character flies until tool is not unequipped. Please help me. My discord : Aleksandre [Aka] Faxot#0599 Message me there

I tried to script but i failed coz i can't script

If player equips "..."

Then

game.workspace.player.transparency = true

end

1 answer

Uh the flying part i don't know sorry, the invisible part i can help here:

Should work for R6

Make sure this is a script (NOT A LOCALSCRIPT) inside the tool

tool = script.Parent
tool.Equipped:connect(function() 
	Player = script.Parent.Parent
	Player.Head.Transparency = 0.5 wait(0.1) Player.Head.Transparency = 1
	Player.Torso.Transparency = 0.5 wait(0.1) Player.Torso.Transparency = 1
	Player["Left Arm"].Transparency = 0.5 wait(0.1) Player["Left Arm"].Transparency = 1
	Player["Right Arm"].Transparency = 0.5 wait(0.1) Player["Right Arm"].Transparency = 1
	Player["Right Leg"].Transparency = 0.5 wait(0.1) Player["Right Leg"].Transparency = 1
	Player["Left Leg"].Transparency = 0.5 wait(0.1) Player["Left Leg"].Transparency = 1
	Player.Head.face.Transparency = 0.5 wait(0.1) Player.Head.face.Transparency = 1
		for i,v in pairs(Player:GetChildren()) do
		if v:IsA("Accessory") then
			v.Handle.Transparency = 0.5 wait(0.1) v.Handle.Transparency =1 
		end
	end
end)

tool.Unequipped:connect(function() 
	Player.Head.Transparency = 0.5 wait(0.1) Player.Head.Transparency = 0
	Player.Torso.Transparency = 0.5 wait(0.1) Player.Torso.Transparency = 0
	Player["Left Arm"].Transparency = 0.5 wait(0.1) Player["Left Arm"].Transparency = 0
	Player["Right Arm"].Transparency = 0.5 wait(0.1) Player["Right Arm"].Transparency = 0
	Player["Right Leg"].Transparency = 0.5 wait(0.1) Player["Right Leg"].Transparency = 0
	Player["Left Leg"].Transparency = 0.5 wait(0.01) Player["Left Leg"].Transparency = 0
	Player.Head.face.Transparency = 0.5 wait(0.1) Player.Head.face.Transparency = 0
	for i,v in pairs(Player:GetChildren()) do
		if v:IsA("Accessory") then
			v.Handle.Transparency = 0.5 wait(0.1) v.Handle.Transparency = 0 
		end
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.