of     1   

MIGHTYFIREMAN104
#218181204Sunday, June 04, 2017 11:36 PM GMT

local player = game.Players.LocalPlayer local character = player.Character local CanAttack = true Tool = script.Parent sword = script.Parent.Handle Tool.Equipped:connect(function(mouse) local equip = script.Parent.Parent.Humanoid:LoadAnimation(script.Equip) local UnsheathSound = Instance.new("Sound") UnsheathSound.SoundId = "rbxassetid://821439273" UnsheathSound.Parent = sword UnsheathSound.Volume = 1 print("A tool was equipped") equip:Play() UnsheathSound:play() local Power = script.parent:WaitForChild("powercall") local Effects = Power:FindFirstChild("ParticleEmitter") Power.Position = character:WaitForChild("Torso").Position Power.Anchored = true do Effects.Enabled = true wait(2.5) Effects.Enabled = false end end) script.Parent.Activated:connect(function() local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack) local SlashSound = Instance.new("Sound") SlashSound.SoundId = "rbxassetid://187747824" SlashSound.Parent = sword SlashSound.Volume = .7 if CanAttack == true then attack:Play() SlashSound:play() CanAttack = false wait(1) attack:Stop() CanAttack = true script.Parent.CanDamage.Value = true end end) Error Message - 16:35:22.217 - Players.Player1.Backpack.Lighting Of Power.LocalScript:24: attempt to index upvalue 'character' (a nil value)
MIGHTYFIREMAN104
#218181350Sunday, June 04, 2017 11:39 PM GMT

whats supposed to happen is lightiing comes out when you equip the sword, works on solo in studio but not in The Server.
MIGHTYFIREMAN104
#218186584Monday, June 05, 2017 12:31 AM GMT

bump1
SinisterMemories
#218192532Monday, June 05, 2017 4:59 PM GMT

replace your local character with this > local character = player:WaitForChild("Character") #code print("oh no an errorz!")

    of     1