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

How to change from key activation to mouse activation?

Okey, so i feel really stupid for not knowing this but here we go... ;-;

I'm working on a Star Wars themed game and after coding lightsabers, force abilities and crouch buttons I realized that the mobile version would be full of buttons (sigh) and now, i've been sitting here for allmost an hour to try and make the lightsabers work with a mouseclick instead... AND IT DOSEN'T WORK!

So, i could use some help... XD. Here's the code...

mouse.KeyDown:connect(function(key)
	--Toggling
	local saber = character:FindFirstChild(ls)
	if key == "q" and enabled then
		if active == false and activating == false and not blocking and not attacking then
			activating = true
			active = true
			pose:Play()
			wait(0.2)
			saber.Aura.Glow.Enabled = true

//Thank you! :D

2 comments

0

Well, that made me even more confused X_X

1 answer

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