of     1   

EricClem
#141758119Sunday, July 27, 2014 8:41 PM GMT

game.Workspace.BasePlate.Transparency = 0 wait (0.1) game.Workspace.BasePlate.Transparency = 0.1 wait (0.1) game.Workspace.BasePlate.Transparency = 0.2 wait (0.1) game.Workspace.BasePlate.Transparency = 0.3 wait (0.1) game.Workspace.BasePlate.Transparency = 0.4 wait (0.1) game.Workspace.BasePlate.Transparency = 0.5 wait (0.1) game.Workspace.BasePlate.Transparency = 0.6 wait (0.1) game.Workspace.BasePlate.Transparency = 0.7 wait (0.1) game.Workspace.BasePlate.Transparency = 0.8 wait (0.1) game.Workspace.BasePlate.Transparency = 0.9 wait (0.1) game.Workspace.BasePlate.Transparency = 1 wait (0.1) game.Workspace.BasePlate.Transparency = 0.9 wait (0.1) game.Workspace.BasePlate.Transparency = 0.8 wait (0.1) game.Workspace.BasePlate.Transparency = 0.7 wait (0.1) game.Workspace.BasePlate.Transparency = 0.6 wait (0.1) game.Workspace.BasePlate.Transparency = 0.5 wait (0.1) game.Workspace.BasePlate.Transparency = 0.4 wait (0.1) game.Workspace.BasePlate.Transparency = 0.3 wait (0.1) game.Workspace.BasePlate.Transparency = 0.2 wait (0.1) game.Workspace.BasePlate.Transparency = 0.1 wait (0.1) game.Workspace.BasePlate.Transparency = 0 while wait(0.1) do local TargetPart = game:GetService("Workspace"):FindFirstChild("BasePlate") if TargetPart then for i = 0, 1, 0.1 do TargetPart.Transparency = i wait(0.1) end for i = 1, 0, -0.1 do TargetPart.Transparency = i wait(0.1) end end end if game.Workspace.BasePlate.Transparency = 0 then game.Workspace.Player1.Head:Destroy Can't find out what is wrong with script. Please help. (sorry I ask too much)
InfiltrationFox
#141758186Sunday, July 27, 2014 8:42 PM GMT

When using if and then, use "==" instead of "=".
EricClem
#141758381Sunday, July 27, 2014 8:44 PM GMT

Now the other part of the script won't work. D: I need to learn better
CounterCrysis
#141759829Sunday, July 27, 2014 8:58 PM GMT

The issue is on the last two lines. --YOUR SCRIPT-- if game.Workspace.BasePlate.Transparency = 0 then game.Workspace.Player1.Head:Destroy --------------- First, there are "=" and "==". The first is used to set the value of something, while the second ("==") is used when checking if it equals something. For this reason you would use == instead on = there. Second, the "then" needs to follow on the same line as the "if". For example, if 1==1 then. Third, when using methods such as Destroy, Clone, FindFirstChild, etc... You need to state that it is a method by using parenthesis. For example Part:Destroy() Forth, because you started a conditional statement (if ... then), you must also let the code know where the end of that statment is. We do that by including "end". Example: if 1+1 == 2 then print("Hello World") end --------------- Recommendations: > You can use Workspace.BasePlate instead of game.Workspace.BasePlate. > You could shorten your code by about 12 lines by using a For Loop.
EricClem
#141844514Monday, July 28, 2014 4:21 PM GMT

Thank you. Now the main script still works, but the Head:Destroy() wont work.
EricClem
#141844557Monday, July 28, 2014 4:21 PM GMT

game.Workspace.BasePlate.Transparency = 0 wait (0.1) game.Workspace.BasePlate.Transparency = 0.1 wait (0.1) game.Workspace.BasePlate.Transparency = 0.2 wait (0.1) game.Workspace.BasePlate.Transparency = 0.3 wait (0.1) game.Workspace.BasePlate.Transparency = 0.4 wait (0.1) game.Workspace.BasePlate.Transparency = 0.5 wait (0.1) game.Workspace.BasePlate.Transparency = 0.6 wait (0.1) game.Workspace.BasePlate.Transparency = 0.7 wait (0.1) game.Workspace.BasePlate.Transparency = 0.8 wait (0.1) game.Workspace.BasePlate.Transparency = 0.9 wait (0.1) game.Workspace.BasePlate.Transparency = 1 wait (0.1) game.Workspace.BasePlate.Transparency = 0.9 wait (0.1) game.Workspace.BasePlate.Transparency = 0.8 wait (0.1) game.Workspace.BasePlate.Transparency = 0.7 wait (0.1) game.Workspace.BasePlate.Transparency = 0.6 wait (0.1) game.Workspace.BasePlate.Transparency = 0.5 wait (0.1) game.Workspace.BasePlate.Transparency = 0.4 wait (0.1) game.Workspace.BasePlate.Transparency = 0.3 wait (0.1) game.Workspace.BasePlate.Transparency = 0.2 wait (0.1) game.Workspace.BasePlate.Transparency = 0.1 wait (0.1) game.Workspace.BasePlate.Transparency = 0 while wait(0.1) do local TargetPart = game:GetService("Workspace"):FindFirstChild("BasePlate") if TargetPart then for i = 0, 1, 0.1 do TargetPart.Transparency = i wait(0.1) end for i = 1, 0, -0.1 do TargetPart.Transparency = i wait(0.1) end end end if game.Workspace.BasePlate.Transparency == 0 then game.Workspace.Player1.Head:Destroy() end
RoAnt
#141845351Monday, July 28, 2014 4:31 PM GMT

The last if statement didn't work because you put it after a loop. The code never got pass the loop because... well, it's a loop. Therefore, it did not run the next line (the if statement with the Head being destroyed).
CounterCrysis
#141860256Monday, July 28, 2014 7:24 PM GMT

Workspace.BasePlate.Changed:connect(function() local player = Workspace:FindFirstChild("Player1"):FindFirstChild("Head") if Workspace.BasePlate.Transparency == 0 and player then player:Destroy() end end) while wait(0.1) do local TargetPart = game:GetService("Workspace"):FindFirstChild("BasePlate") if TargetPart then for i = 0, 1, 0.1 do TargetPart.Transparency = i wait(0.1) end for i = 1, 0, -0.1 do TargetPart.Transparency = i wait(0.1) end end end

    of     1