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

How do I make a GUI that casts a spell?

1 answer

I don't understand what you mean whit a GUI that does the same thing whit hotkeys. But I am guessing you're trying to make a script where if you press a button it fires.

Note. It must be written in a local script. And script must be placed in starterplayer.StarterPlayerScripts

--Localplayers Mouse
local mouse = game.Players.LocalPlayer:GetMouse()
--checks if keyisdown.
mouse.KeyDown:connect(function(button)
	--Where is says r. Change the key to whatever you want.
	if button == "r" then
	--Type the magic script here
	end
end)

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