false Trying to call method on object of type: `Script` with incorrect arguments?
Asked by
6 years ago Edited 6 years ago
Hey! So i'm trying to use a very short and simple talky script for a spell system i'm working on, and i'm trying to move and old system over to a module. Now My problem right now is that for some reason it wont call the script. its just not working i dunno why! I keep getting this error
false Trying to call method on object of type: Script
with incorrect arguments.
Can anyone help!
01 | local wand = script.Parent |
04 | local Mag = require(game.SeverScriptService.MagicModule) |
10 | game.Players.PlayerAdded:connect( function (player) |
11 | if player.Name = = wand.Parent.Name then |
12 | player.Chatted:connect( function (msg) |
15 | wand.CurrentSpell.Value = "Orlora" |
Module
006 | if Mode.Value = = "Orlora" then |
011 | script.Disabled = false |
012 | local c = wand.Parent.Humanoid:LoadAnimation(Magic.Animations.SummonSmoke 1 ) |
015 | local r = ArchFolder.Architype:Clone() |
016 | r.Parent = person.RightHand |
019 | local L = ArchFolder.Architype:Clone() |
020 | L.Parent = person.LeftHand |
025 | local q = Instance.new( "Sound" ) |
032 | q.Parent = person.UpperTorso |
038 | local p = Instance.new( "Part" ) |
039 | p.formFactor = "Symmetric" |
041 | p.Size = Vector 3. new( 1 , 1 , 1 ) |
042 | p.TopSurface = "Smooth" |
043 | p.BottomSurface = "Smooth" |
049 | ArchFolder.Architype:Clone().Parent = p |
050 | p.Architype.Enabled = true |
051 | ArchFolder.Sparkles:Clone().Parent = p |
052 | p.Sparkles.Enabled = true |
053 | ArchFolder.SpellLight:Clone().Parent = p |
054 | p.SpellLight.Enabled = true |
056 | coroutine.resume(coroutine.create( function () |
062 | script.Disabled = false |
074 | local cf = CFrame.new(person.UpperTorso.Position, person.Humanoid.TargetPoint) |
075 | local bv = Instance.new( "BodyVelocity" ) |
078 | p.CFrame = cf + cf.lookVector * 4 |
090 | bv.velocity = ((person.Humanoid.TargetPoint - p.Position).unit) * 100 |
093 | p.Touched:connect( function (part) |
095 | local nm = p.Architype |
096 | p.Architype.Enabled = false |
097 | p.Architype.Parent = part |
099 | local sm = p.Sparkles |
100 | p.Sparkles.Enabled = false |
101 | p.Sparkles.Parent = part |
103 | local s = Instance.new( "Sound" ) |