Equipped Function not working?
Asked by
6 years ago Edited 6 years ago
I was making a kamehameha tool but I it doesn't print Equipped
1 | tool.Equipped:Connect( function () |
If you know why then tell me.
You asked for it, the whole script
002 | if debounce = = false and Equippe then |
003 | if toggle = = false then |
008 | print ( 'Will it play?' ) |
011 | startkame = Instance.new( "Part" ) |
013 | startkame.Shape = 'Ball' |
015 | startkame.Material = 'Neon' |
017 | startkame.Name = 'StartKame' |
019 | startkame.BrickColor = BrickColor.new( "Toothpaste" ) |
021 | startkame.CFrame = arm.CFrame |
023 | startkame.Size = Vector 3. new( 8 , 8 , 8 ) |
025 | startkame.CanCollide = false |
026 | startkame.Anchored = true |
028 | startkame.Parent = ctr |
039 | if toggle = = true then |
040 | print ( 'toggle is true' ) |
042 | launch = Instance.new( 'Part' , ctr) |
043 | launch.Shape = 'Cylinder' |
044 | launch.Size = Vector 3. new( 75 , 5 , 5 ) |
045 | launch.CFrame = ctr.Torso.CFrame |
046 | launch.BrickColor = BrickColor.new( 'Toothpaste' ) |
047 | launch.Material = 'Neon' |
048 | launch.CanCollide = false |
049 | launch.Anchored = true |
050 | launch.Orientation = ctr:FindFirstChild( 'Torso' ).CFrame.lookVector* 3 |
052 | ctr:WaitForChild( 'Humanoid' ).WalkSpeed = norm |
062 | charge = Instance.new( "Animation" ) |
066 | plr = script.Parent.Parent.Parent |
067 | ctr = plr.Character or plr.CharacterAdded:Wait() |
069 | hum = ctr:WaitForChild( 'Humanoid' ) |
073 | chargetrack = ctr:WaitForChild( "Humanoid" ):LoadAnimation(charge) |
074 | arm = ctr:FindFirstChild( 'Right Arm' ) or ctr:FindFirstChild( 'RightHand' ) |
075 | print ( 'variables are fine' ) |
077 | tool.Equipped:Connect( function () |
083 | m.Button 1 Down:Connect(startkame) |
085 | m.Button 1 Up:Connect( function () |
087 | if Equippe = = true then |
091 | tool.Unequipped:Connect( function () |
095 | if hax and toggle then |