Script
local brick = script.Parent
brick.Changed:connect(function()
if brick.Velocity.magnitude > 2 then
if script.Parent.Touched then
brick:Breakjoints()
end
end
end
Error code
18:19:14.977 - Workspace.Part.Script:8: ')' expected (to close '(' at line 2) near '<eof>'
thank you for your time
######Edited 15:41 11/8/17

3 comments
Tab correctly in the future.
The error means that you need a parenthesis after the last end. And
Touchedis not a property - it is an event that triggers, likeChanged.Adding onto Goulstem, eof just means end of file, or in this case, end of the script. You make a new function for one of the arguments, but forgot to close the argument list.