Why wont this work?!! Your help would be greatly appreciated! (SOLVED)
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
So I did the fallowing code, and put it inside a tree and made it so that every player spawns with a "AxSpeed" Value within there Character, and I tryed it out but it wont work for some reason... can someone help me?
01 | script.Parent.MouseClick:connect( function (player) |
02 | local AxSpeed = player.Character.AxSpeed.Value |
03 | player.Character.Torso.Anchored = true |
05 | Tree.Trunk.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ( 0 , 0 , 100 ) |
06 | Tree.Foliage 1. CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ( 0 , 0 , 100 ) |
07 | Tree.Foliage 2. CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ( 0 , 0 , 100 ) |
08 | Tree.Foliage 3. CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ( 0 , 0 , 100 ) |
09 | Tree.Foliage 4. CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ( 0 , 0 , 100 ) |
12 | Tree.Foliage 1. Anchored = false |
13 | Tree.Foliage 2. Anchored = false |
14 | Tree.Foliage 3. Anchored = false |
15 | Tree.Foliage 4. Anchored = false |
16 | Tree.Trunk.Anchored = false |
18 | player.Character.Torso.Anchored = false |
21 | Tree = script.Parent.Parent |
Thank you