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

Lightning Spell Glitch ?

Asked by 9 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

I have a script that can launch a Lightning by hand to the desired place, but there is a problem in the vector that will position it in a certain position of the map.

how can I fix?

The script:

01math.randomseed(tick())
02 
03function lightning(startPos,endPos,details)
04 
05    local mag = (startPos-endPos).magnitude
06    local step = details.Step
07    local waitTime = details.WaitTime
08 
09    local lightningModel = Instance.new("Model" , workspace)
10    lightningModel.Name = "Lightning"
11 
12    local lastStart = startPos
13    local debugMode = details.DebugMode
14    local lightningEnd = endPos
15 
View all 63 lines...

Full module >.>

0
You need to include way more of your code and actually explain what's going on BlueTaslem 18071 — 9y
0
ok Rodrigo2003 76 — 9y
0
:P try to understand now Rodrigo2003 76 — 9y
0
You need to include ALL code necessary for us to answer this. I see there's a function lightning(), however I see no define function. Shawnyg 4330 — 9y
View all comments (3 more)
0
Need more code post all of your code so we can actually understand what is going on and the error from output Prioxis 673 — 9y
0
well if it is to fix Rodrigo2003 76 — 9y
0
You need Local script too? Rodrigo2003 76 — 9y

Answer this question