Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How i can make an wand that use chat spells?

Asked by 1 year ago

Hey! I have been trying to make a magic game where you hold a wand, say a spell and the spell that you said shoots from the tip of your wand to where your mouse is at. Like Wizard Wars game. But i don't know how to make them. And i hope someone can give me some help.

2 answers

Log in to vote
2
Answered by 1 year ago

You'd most likely have to use the Player.Chatted event. It will tell you when a player has chatted, and you would be able to check if their message is a spell.

Here is an example:

player.Chatted:Connect(function(message)

    if message == "Magic!" then

        --Code for certain spell goes here

    end

end)
Ad
Log in to vote
0
Answered by 1 year ago

I did 2 spells in one script levicorpus and avada kedavra, but i dont know how to add trails to spells. Maybe you have an idea?

0
Move an invisible part with a trail inside it maybe virushunter9 943 — 1y

Answer this question